Actions11
- Grains Actions
- Finance Actions
- ARCA Actions
Grains → Get Contracts
AI-generatedSummary
Retrieve grain contracts from the fyo API by either a date range or a broker contract number.
Inputs
- Search By (required) — Choose to search grain contracts by a date range or broker contract number.
- Date From (required) — Start date for the contract search range; required when searching by date range; maximum range of 1 month.
- Date To — Optional end date for the contract search range when searching by date range; must be within 1 month from the start date.
- Broker Contract Number (required) — The broker contract number to search for; required when searching by contract number.
Output shape
a list of grain contract records matching the search criteria
Returns an array of contract data objects from the fyo API. Each contract is returned as a separate n8n item. If an error occurs per item and "Continue On Fail" is enabled, the error message is returned instead of contract data for that item.
Examples
Example 1: Search contracts by date range
Set 'Search By' to 'Date Range'; provide 'Date From' (mandatory) and optionally 'Date To' within one month range to retrieve all contracts within this period.
Example 2: Search contract by broker contract number
Set 'Search By' to 'Broker Contract Number'; provide the contract number to retrieve the matching grain contract.