Field | Type | Required | Description |
---|---|---|---|
first_name | char | Yes | First name of the Farmer |
last_name | char | Yes | Last name of the farmer |
street | char | No | Street name |
city | char | Yes | City or village |
country | char | Yes | Country |
province | char | Yes | Province or State |
post_code | char | No | Postcode |
latitude | float | No | Latitude of the farm location |
longitude | float | No | Longitude of the farm location |
country_code | char | No | Phone Country code |
phone | char | No | Phone or mobile number |
char | No | Email address | |
gender | char | No | Gender of the farmer |
dob | date | No | Date of birth |
house_hold_size | int | No | Number of family members |
description_short | char | No | Short description of farmer |
description_long | char | No | Long description of farmer |
Field | Type | Required | Description |
---|---|---|---|
source_id | char | Yes | Transaction source name or code. |
destination_id | char | Yes | Transaction destination name or code. |
product_code | char | Yes | Unique product name or code. |
quantity | float | Yes | Total transaction quantity. |
unit | char | Yes | Product unit. |
price | float | No | The total price paid to the farmer. |
currency | char | Yes | ISO currency code. |
date | date | Yes | Transaction date. |
invoice | file | No | Invoice number. |
buyer_ref_no | char | No | The number used by the buyer to identify the stock. |
seller_ref_no | char | No | The number used by the seller to refer to the stock. |
Name | Methode | Description |
---|---|---|
List Farmers | GET | Retrieve a list of all farmers. |
Create farmer | POST | Create a new farmer. |
Update farmer | PUT | Update an existing farmer’s information. |
Delete farmer | DELETE | Delete a farmer. |
List transaction | GET | Retrieve a list of all transactions. |
Create transaction | POST | Create a new transaction. |
Attach transaction invoice | PUT | Attach an invoice to a transaction. |
List payments | GET | Retrieve a list of all payments. |
Create payments | POST | Create a new payment. |
Attach payment invoice | PUT | Attach an invoice to a payment. |
List premiums | GET | Retrieve a list of all premiums. |
List products | GET | Retrieve a list of all products. |
Attach farmer card | POST | Attach a card to a farmer. |