Trace Connect APIs
- Introduction
- Authentication using JWT
- OAuth 2.0
- Basic APIs
- Advanced APIs
List Farmers Endpoint
This API endpoint allows you to retrieve a list of farmers within the supply chain system. By sending a GET request to the specified endpoint, you can obtain information about multiple farmer submissions. The API supports secure authentication through an API key included in the request header.
Authorizations
Query Parameters
Filter by first name.
Filter by last name.
Filter by number.
Filter by updated timestamp after a specified time.
Filter by created timestamp after a specified time.
Number of results to return per page.
The initial index from which to return the results.
Response
The total count of farmers in the response.
An array containing details of farmers returned in the response.
First name of the farmer. This is part of the farmer's personal details.
1 - 100
Identifier of the buyer associated with the farmer. This indicates any buyer or customer linked to the farmer, if applicable.
Name of the city where the farmer resides. This is part of the farmer's address details.
500
Consent status of the farmer for data usage. This indicates whether the farmer has given consent for their data to be used.
GRANTED
, NOT_GRANTED
, UNKNOWN
Name of the country where the farmer resides. This is part of the farmer's address details.
500
Date and time when the farmer information was created. This field indicates when the farmer record was initially added to the system.
Identifier of the user who created the farmer entry. This indicates the user responsible for adding the farmer information to the system.
Date of birth of the farmer. This is part of the farmer's personal details.
Description or additional information about the farmer. This field allows for notes or comments to be added regarding the farmer.
500
Email address of the farmer. This is used for electronic communication with the farmer.
100
Information related to the Connect card of the farmer.
1
100
Gender of the farmer. This is part of the farmer's personal details.
50
Name of the house or building where the farmer resides. This could be useful for address clarification.
100
Unique identifier for the farmer. This identifier is used to distinguish one farmer from another in the system.
Identification number of the farmer. This could be a national identification number or any other form of identification.
100
URL to the photo of the farmer. This could be a link to a profile picture or any relevant image associated with the farmer.
Last name of the farmer. This is part of the farmer's personal details.
100
Latitude coordinate of the farmer's location. This is used for geolocation purposes.
Longitude coordinate of the farmer's location. This is used for geolocation purposes.
Additional number for reference. It will be a auto generated value field.
10
Phone number of the farmer. This is typically used for contacting the farmer if necessary.
Name of the province where the farmer resides. This is part of the farmer's address details.
500
Reference number associated with the farmer. This could be a reference to another system or database.
100
Name of the street where the farmer resides. This is part of the farmer's address details.
500
Name of the sub-province where the farmer resides. This is part of the farmer's address details.
500
Submission details related to the farmer. This could include any extra fields metioned in form associated with the company.
1
1 - 100
1 - 100
TEXT
, INTEGER
, FLOAT
, RADIO
, MULTI_SELECT
, EMAIL
, PHONE
, DATE
, BOOLEAN
, DROPDOWN
100
100
100
100
100
100
100
1 - 100
TEXT
, INTEGER
, FLOAT
, RADIO
, MULTI_SELECT
, EMAIL
, PHONE
, DATE
, BOOLEAN
, DROPDOWN
100
100
100
100
100
100
100
1 - 100
1 - 100
TRANSACTION
, FARMER
, PAYMENT
, PRODUCT
Name of the product.
1 - 500
Date and time when the product was created.
Identifier of the user who created the product.
Description of the product.
500
Unique identifier for the product.
URL to the image or photo of the product.
Indicates whether the product is currently active.
Premiums associated with the product.
Date and time when the product information was last updated.
Identifier of the user who last updated the product.
Date and time when the farmer information was last updated. This field is automatically generated and cannot be modified directly.
Identifier of the user who last updated the farmer entry. This indicates the user responsible for the latest modifications to the farmer information.
Postal code or ZIP code of the area where the farmer resides. This is part of the farmer's address details.
50
The URI for the next page of results, if available.
The URI for the previous page of results, if available.