Trading API (1.0.0)
Download OpenAPI specification:Download
Create a bid
Create a bid
Authorizations:
Request Body schema: application/json
listingId required | string |
expiresAtUTC required | string |
required | Array of objects |
required | object |
reference | string or null |
Array of objects or null |
Responses
Request samples
- Payload
{- "listingId": "string",
- "expiresAtUTC": "string",
- "options": [
- {
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}
}
], - "terms": {
- "weight": {
- "min": 1,
- "max": 1
}, - "paymentDays": 1,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "deliveryPostcode": "string",
- "sellerNotes": "string"
}, - "reference": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Search bids
Search bids
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
format | string Format for the endpoint response, supports JSON (default) or CSV |
status | string Filter by status |
f:commodity | string Filter by commodity |
f:commodityGrade | string Filter records by commodity grade |
f:commodityType | string Filter by commodity type |
f:commodityTags | string Filter records by commodity tags |
f:harvestYear | string Filter by harvest year |
f:sellerOrganisationId | string Filter by seller |
accepted | boolean Deprecated Filter by accepted bid |
listingId | string Filter by listing |
listingStatus | string Filter by listing status |
f:status | string Filter by status |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "docs": [
- {
- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
], - "custom": { },
- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "clearUrl": "string",
- "activeFilters": [
- {
- "name": "string",
- "clearUrl": "string",
- "terms": [
- {
- "name": "string",
- "clearUrl": "string"
}
]
}
], - "facets": [
- {
- "displayName": "string",
- "clearUrl": "string",
- "disabled": true,
- "name": "string",
- "selected": true,
- "active": true,
- "terms": [
- {
- "name": "string",
- "url": "string",
- "hits": "string",
- "selected": "string",
- "id": "string",
- "state": "checked disabled",
- "aggregations": {
- "property1": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}, - "property2": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}
}
}
]
}
], - "aggregations": [
- {
- "name": "string",
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0,
- "count": 0,
- "range": "string",
- "hits": 0,
- "unit": "string"
}
]
}
Get Bid Details
Get Bid Details
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Update a bid
Withdraws a bid, updates and returns a new bid
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
expiresAtUTC required | string |
required | Array of objects |
required | object |
Responses
Request samples
- Payload
{- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}
}
], - "terms": {
- "weight": {
- "min": 1,
- "max": 1
}, - "paymentDays": 1,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "deliveryPostcode": "string",
- "sellerNotes": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Accepts a bid
Accepts a bid
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
optionId required | number |
weight required | number |
price | number |
Responses
Request samples
- Payload
{- "optionId": 0,
- "weight": 0,
- "price": 0
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Withdraws a bid
Withdraws a bid
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Adds a contract to the bid
Adds a contract to the bid
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
reference required | string |
required | Array of objects or null |
Responses
Request samples
- Payload
{- "reference": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Creates an expired bid offer
Creates an expired bid offer for an expired bid
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
optionId required | number |
weight required | number |
Responses
Request samples
- Payload
{- "optionId": 0,
- "weight": 0
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Accepts an expired bid offer
Accepts an expired bid offer for an expired bid
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Declines an expired bid offer
Declines an expired bid offer for an expired bid
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "listingId": "string",
- "listing": {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}, - "userId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "organisationsInNetwork": true,
- "createdAtUTC": "string",
- "status": "active",
- "expiresAtUTC": "string",
- "options": [
- {
- "id": 0,
- "status": "active",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "expiredOffer": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "isAdvancePayEligible": true,
- "advancePayContractId": "string"
}
], - "terms": {
- "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "paymentDays": 0,
- "paymentType": "base",
- "haulageType": "ex-farm",
- "sellerNotes": "string",
- "deliveryPostcode": "string"
}, - "contract": {
- "id": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "reference": "string"
}, - "isAdvancePayEligible": true,
- "advancePayContract": {
- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}, - "buyerContact": {
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string"
}
}
Gets an Advance Pay contract
Gets an Advance Pay offer for a bid option
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "finmidPaymentId": "string",
- "status": "pending",
- "inventory": {
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "trade": {
- "listingId": "string",
- "bidId": "string",
- "buyer": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "seller": {
- "userId": "string",
- "organisationId": "string",
- "organisationName": "string"
}, - "movement": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "settlementDateUTC": "string",
- "buyerTermDays": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}, - "offer": {
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}
}
}, - "payments": {
- "advance": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string",
- "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}
}, - "intermediate": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string",
- "dueAtUTC": "string"
}, - "settlement": {
- "percentage": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "status": "pending",
- "capturedAtUTC": "string"
}
}, - "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "tags": [
- "string"
]
}
Upload a collection receipt
Upload a collection receipt to an advance pay contract
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
required | Array of objects or null |
movementDateUTC required | string |
Responses
Request samples
- Payload
{- "collectionReceipts": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "movementDateUTC": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Request an Advance Pay offer
Request an Advance Pay offer for a bid option
Authorizations:
path Parameters
id required | string Id of the resource |
bidOptionId required | number Bid option ID |
query Parameters
tonnesToSell | number Tonnes to sell |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "totalTradeValue": {
- "amount": 0,
- "currency": "string"
}, - "totalSellerReceivable": {
- "amount": 0,
- "currency": "string"
}, - "movementTermUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "payments": {
- "fees": {
- "amount": 0,
- "currency": "string"
}, - "advance": {
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "amountAfterFees": {
- "amount": 0,
- "currency": "string"
}, - "percentage": 0,
- "type": "advance"
}, - "intermediate": {
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "percentage": 0,
- "type": "advance"
}, - "settlement": {
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "percentage": 0,
- "type": "advance"
}
}
}
Create a contract
Create a contract
Authorizations:
Request Body schema: application/json
buyerOrganisationId required | string |
buyerOrganisationName | string |
businessUnitIds | Array of strings |
required | object |
required | object |
Responses
Request samples
- Payload
{- "buyerOrganisationId": "string",
- "buyerOrganisationName": "string",
- "businessUnitIds": [
- "string"
], - "details": {
- "reference": "string",
- "priceType": "base",
- "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": 0,
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "notes": "string",
- "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string"
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "id": 0,
- "type": 0,
- "grade": 0,
- "variety": "string",
- "tags": [
- 0
]
}, - "measures": [
- {
- "specificationId": 0,
- "min": 0,
- "max": 0
}
]
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Search contracts
Search contracts
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
format | string Format for the endpoint response, supports JSON (default) or CSV |
status | string Filter by status |
query | string Free text search field for querying |
f:commodity | string Filter by commodity |
f:commodityGrade | string Filter records by commodity grade |
f:commodityType | string Filter by commodity type |
f:commodityVariety | string Filter records by commodity variety |
f:commodityTags | string Filter records by commodity tags |
f:harvestYear | string Filter by harvest year |
f:businessUnitIds | string Filter by business units |
f:tags | string Filter by tags |
f:status | string Filter by status |
priceType | string Filter contracts by price type |
f:regionISO | string Filter by region ISO |
f:tagl | string Filter by location tag |
f:tagm | string Filter by management type tag |
premiumContractId | string Filter by premium contract id |
buyerOrganisationId | string Buyer Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "docs": [
- {
- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [ ],
- "file": { },
- "files": [ ],
- "commodityGradeId": null,
- "id": null
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": null,
- "currency": null
}, - "priceVAT": {
- "amount": null,
- "currency": null
}, - "priceGross": {
- "amount": null,
- "currency": null
}, - "priceNet": {
- "amount": null,
- "currency": null
}, - "deductions": [
- { }
], - "bonuses": [
- { }
], - "files": [
- { }
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
], - "custom": {
- "ranges": [
- {
- "type": "month",
- "name": "string",
- "sold": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "percentSold": 0,
- "averagePrice": {
- "amount": 0,
- "currency": "string"
}, - "totalValue": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "clearUrl": "string",
- "activeFilters": [
- {
- "name": "string",
- "clearUrl": "string",
- "terms": [
- {
- "name": "string",
- "clearUrl": "string"
}
]
}
], - "facets": [
- {
- "displayName": "string",
- "clearUrl": "string",
- "disabled": true,
- "name": "string",
- "selected": true,
- "active": true,
- "terms": [
- {
- "name": "string",
- "url": "string",
- "hits": "string",
- "selected": "string",
- "id": "string",
- "state": "checked disabled",
- "aggregations": {
- "property1": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}, - "property2": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}
}
}
]
}
], - "aggregations": [
- {
- "name": "string",
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0,
- "count": 0,
- "range": "string",
- "hits": 0,
- "unit": "string"
}
]
}
Get Contract Details
Get Contract Details
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Update a contract
Update a contract
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
businessUnitIds | Array of strings |
required | object |
commodityGrade | number |
Array of objects or null |
Responses
Request samples
- Payload
{- "businessUnitIds": [
- "string"
], - "details": {
- "reference": "string",
- "priceType": "base",
- "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": 0,
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "notes": "string",
- "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string"
}, - "commodityGrade": 0,
- "measures": [
- {
- "specificationId": 0,
- "min": 0,
- "max": 0
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Update a contracts pricing
Update a contracts pricing
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
commodityGrade required | number |
priceType required | string Enum: "base" "fixed" "unpriced" "premium" |
totalWeight required | number |
required | object or null |
required | object or null |
Responses
Request samples
- Payload
{- "commodityGrade": 0,
- "priceType": "base",
- "totalWeight": 0,
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Create or update a contract file
Create or update a contract file
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
name | string |
id required | string |
url | string or null |
userName | string or null |
createdAtUTC | string or null |
Responses
Request samples
- Payload
[- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Set status of allRecorded to true
Toggles the status of allRecorded to true which indicates all deliveries have been recorded for a contract
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Set status of allRecorded to false
Toggles the status of allRecorded to false which indicates all deliveries have not been recorded for a contract
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Roll-over a contract
Roll-over a contract
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
startDateUTC required | string |
endDateUTC required | string |
type required | string Enum: "date" "month" |
totalWeight required | number |
required | object or null |
paymentExpectedUTC required | string or null |
pickUpByUTC required | string or null |
notes required | string or null |
Responses
Request samples
- Payload
{- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": 0,
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "sellerOrganisationId": "string",
- "createdById": "string",
- "createdByName": "string",
- "createdAtISO": "string",
- "status": "pending",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "details": {
- "bidId": "string",
- "userId": "string",
- "listingId": "string",
- "reference": "string",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "priceType": "base",
- "totalPrice": {
- "amount": 0,
- "currency": "string"
}, - "paymentDays": 0,
- "haulageType": "ex-farm",
- "contractDateUTC": "string",
- "contractDateISO": "string",
- "movementMonth": {
- "month": 0,
- "year": 0
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "movementPeriods": [
- {
- "id": 0,
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date",
- "totalWeight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "premiumPrice": {
- "amount": 0,
- "currency": "string"
}, - "premiumPriceMax": {
- "amount": 0,
- "currency": "string"
}, - "paymentExpectedUTC": "string",
- "pickUpByUTC": "string",
- "notes": "string",
- "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": null,
- "value": null,
- "metric": null
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": null,
- "id": null,
- "url": null,
- "userName": null,
- "createdAtUTC": null
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": null,
- "currency": null
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
]
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "terms": "string",
- "premiumContractId": "string",
- "premiumWeight": 0,
- "linkedCount": 0
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "buyer": {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}, - "deliveries": [
- {
- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "allRecorded": true,
- "sellerNotes": "string",
- "buyerNotes": "string",
- "regionISO": "string",
- "businessId": "string",
- "amendments": [
- {
- "fields": {
- "property1": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}, - "property2": {
- "original": "string",
- "updated": "string",
- "unit": "string"
}
}, - "createdAtUTC": "string",
- "createdBy": "string",
- "userName": "string"
}
]
}
Create a delivery
Create a delivery
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
recordId | string or null |
movementId | number or null |
reference required | string or null |
validate | boolean or null Default: false |
moveAtUTC required | string |
weightPlanned required | number |
weightActual required | number or null |
vehicleRegistration required | string or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "validate": false,
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
Update a delivery and settlement
Update a delivery and settlement
Authorizations:
path Parameters
id required | string Id of the resource |
deliveryId required | number Delivery id |
Request Body schema: application/json
reference required | string or null |
moveAtUTC required | string |
vehicleRegistration required | string or null |
weightActual required | number |
required | object |
Responses
Request samples
- Payload
{- "reference": "string",
- "moveAtUTC": "string",
- "vehicleRegistration": "string",
- "weightActual": 0,
- "settlement": {
- "reference": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "deductions": [
- {
- "reasonId": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
Updates a delivery settlement to be marked as paid
Updates a delivery settlement to be marked as paid
Authorizations:
path Parameters
id required | string Id of the resource |
deliveryId required | number Delivery id |
Request Body schema: application/json
paymentReceivedDateUTC | string or null |
Responses
Request samples
- Payload
{- "paymentReceivedDateUTC": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
Updates a delivery settlement to be marked as unpaid
Updates a delivery settlement to be marked as unpaid
Authorizations:
path Parameters
id required | string Id of the resource |
deliveryId required | number Delivery id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
Add a sample to this delivery
Add a sample to this delivery
Authorizations:
path Parameters
id required | string Id of the resource |
deliveryId required | number Delivery id |
Request Body schema: application/json
Array of objects Array of sample fields | |
object or null | |
Array of objects or null or null | |
commodityGradeId | number If adjusting the grade, the new grade for the record. |
Responses
Request samples
- Payload
{- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": 0,
- "movementPeriodId": 0,
- "recordId": "string",
- "movementId": 0,
- "reference": "string",
- "status": "undelivered",
- "moveAtUTC": "string",
- "weightPlanned": 0,
- "weightActual": 0,
- "vehicleRegistration": "string",
- "samples": [
- {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
], - "settlement": {
- "reference": "string",
- "status": "unpaid",
- "paymentReceivedDateUTC": "string",
- "invoiceDateUTC": "string",
- "invoiceDueDateUTC": "string",
- "pricePerUnit": {
- "amount": 0,
- "currency": "string"
}, - "priceVAT": {
- "amount": 0,
- "currency": "string"
}, - "priceGross": {
- "amount": 0,
- "currency": "string"
}, - "priceNet": {
- "amount": 0,
- "currency": "string"
}, - "deductions": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "bonuses": [
- {
- "reasonId": 0,
- "description": "string",
- "amount": {
- "amount": 0,
- "currency": "string"
}
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
]
}
}
Deletes a sample on a delivery
Deletes a sample on a delivery
Authorizations:
path Parameters
id required | string Id of the resource |
deliveryId required | number Delivery id |
sampleId required | number Sample ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
link a contract to base contracts
link a contract
Authorizations:
Request Body schema: application/json
premiumContractId required | string |
required | Array of objects |
Responses
Request samples
- Payload
{- "premiumContractId": "string",
- "baseContractIds": [
- {
- "baseContractId": "string",
- "fixedPrice": 0
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
unlink a premium contract and base contract
unlink contracts
Authorizations:
Request Body schema: application/json
premiumContractId required | string |
baseContractId required | string |
Responses
Request samples
- Payload
{- "premiumContractId": "string",
- "baseContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Create a listing
Create a listing
Authorizations:
Request Body schema: application/json
public | boolean Default: false |
Array of objects or null | |
businessUnitId required | string or null |
required | object |
required | object |
Array of objects or null | |
tags | Array of strings or null |
tradeRequestId | string Default: null |
Responses
Request samples
- Payload
{- "public": false,
- "bidAlerts": [
- {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": "string",
- "organisationId": "string",
- "userId": "string"
}
], - "businessUnitId": "string",
- "details": {
- "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "price": {
- "amount": 0,
- "currency": "string"
}, - "targetPrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "commodity": {
- "id": 0,
- "type": 0,
- "grade": 0,
- "variety": "string",
- "tags": [
- 0
]
}, - "harvestYear": "string",
- "measures": [
- {
- "specificationId": 0,
- "min": 0,
- "max": 0
}
], - "type": "crop",
- "weight": {
- "min": 0,
- "max": 0
}
}, - "marketBuyers": [
- {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": "string",
- "organisationId": "string",
- "userId": "string"
}
], - "tags": [
- "string"
], - "tradeRequestId": null
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
Search listings
Search listings
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
format | string Format for the endpoint response, supports JSON (default) or CSV |
status | string Filter by status |
f:commodity | string Filter by commodity |
f:commodityGrade | string Filter records by commodity grade |
f:commodityType | string Filter by commodity type |
f:commodityVariety | string Filter records by commodity variety |
f:commodityTags | string Filter records by commodity tags |
f:harvestYear | string Filter by harvest year |
f:businessUnitIds | string Filter by business units |
f:tags | string Filter by tags |
tradeRequestId | string Filter by trade request Id |
bidStatus | string Filter listings by bid status |
f:tagl | string Filter by location tag |
f:tagm | string Filter by management type tag |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "docs": [
- {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
], - "custom": { },
- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "clearUrl": "string",
- "activeFilters": [
- {
- "name": "string",
- "clearUrl": "string",
- "terms": [
- {
- "name": "string",
- "clearUrl": "string"
}
]
}
], - "facets": [
- {
- "displayName": "string",
- "clearUrl": "string",
- "disabled": true,
- "name": "string",
- "selected": true,
- "active": true,
- "terms": [
- {
- "name": "string",
- "url": "string",
- "hits": "string",
- "selected": "string",
- "id": "string",
- "state": "checked disabled",
- "aggregations": {
- "property1": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}, - "property2": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}
}
}
]
}
], - "aggregations": [
- {
- "name": "string",
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0,
- "count": 0,
- "range": "string",
- "hits": 0,
- "unit": "string"
}
]
}
Get Listing Details
Get Listing Details
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
Close a listing
Close a listing
Authorizations:
path Parameters
id required | string Id of the resource |
query Parameters
reasonId | number Reason Id for db reason |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
Converts a listing from private to public
Converts a listing from private to public
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
Appends market buyers to a private listing
Appends market buyers to a private listing
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
required | Array of objects or null | ||||||||||||
Array
|
Responses
Request samples
- Payload
{- "marketBuyers": [
- {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": "string",
- "organisationId": "string",
- "userId": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
Appends bid alerts to a listing
Appends bid alerts to a listing
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
required | Array of objects or null | ||||||||||||
Array
|
Responses
Request samples
- Payload
{- "bidAlerts": [
- {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": "string",
- "organisationId": "string",
- "userId": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "settlementDeductionReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "settlementBonusReasons": [
- {
- "id": 0,
- "description": "string"
}
], - "exFarmPriceCommodities": [
- {
- "id": 0,
- "name": "string",
- "commodityId": 0,
- "grades": [
- 0
], - "default": true
}
], - "closeListingReasons": [
- {
- "id": 0,
- "description": "string"
}
]
}
Endpoint to receive a webhook event from finmid
Create a trade request
Authorizations:
query Parameters
environment required | string Environment name, i.e sandbox, dev |
Request Body schema: application/json
webhook_id required | string |
timestamp required | string |
required | Array of objects or null |
Responses
Request samples
- Payload
{- "webhook_id": "string",
- "timestamp": "string",
- "events": [
- {
- "event_id": "string",
- "timestamp": "string",
- "type": "string",
- "data": { }
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Create a trade request
Create a trade request
Authorizations:
Request Body schema: application/json
businessUnitId | string or null |
requestType | string Enum: "everyone" "farms" "merchants" |
required | object |
regionISOs | Array of strings |
harvestYear required | string |
type | string Enum: "crop" "produce" |
farmAssured | boolean |
sellerNotes | string or null |
required | object |
required | object |
weight required | number |
object or null | |
tags | Array of strings or null |
Responses
Request samples
- Payload
{- "businessUnitId": "string",
- "requestType": "everyone",
- "commodity": {
- "id": 0,
- "type": 0,
- "grade": 0,
- "variety": "string",
- "tags": [
- 0
]
}, - "regionISOs": [
- "string"
], - "harvestYear": "string",
- "type": "crop",
- "farmAssured": true,
- "sellerNotes": "string",
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "haulageTerms": {
- "haulageType": "ex-farm",
- "deliveryPostcode": "string"
}, - "weight": 0,
- "guidePrice": {
- "amount": 0,
- "currency": "string"
}, - "tags": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "status": "active",
- "commodityName": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "type": "crop",
- "farmAssured": true,
- "sellerNotes": "string",
- "regions": [
- "string"
], - "listingsReceived": 0,
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "haulageTerms": {
- "haulageType": "ex-farm",
- "deliveryPostcode": "string"
}, - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "buyer": {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": {
- "callingCode": "string",
- "number": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "userId": "string"
}, - "createdAtUTC": "string",
- "requestType": "everyone",
- "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}
Search trade requests
Search trade requests
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
format | string Format for the endpoint response, supports JSON (default) or CSV |
status | string Filter by status |
f:commodity | string Filter by commodity |
f:commodityGrade | string Filter records by commodity grade |
f:commodityType | string Filter by commodity type |
f:commodityTags | string Filter records by commodity tags |
f:harvestYear | string Filter by harvest year |
f:tags | string Filter by tags |
owner | boolean Default: false Filter by own requests or not - default is false |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "docs": [
- {
- "id": "string",
- "status": "active",
- "commodityName": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "type": "crop",
- "farmAssured": true,
- "sellerNotes": "string",
- "regions": [
- "string"
], - "listingsReceived": 0,
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "haulageTerms": {
- "haulageType": "ex-farm",
- "deliveryPostcode": "string"
}, - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "buyer": {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": {
- "callingCode": "string",
- "number": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "userId": "string"
}, - "createdAtUTC": "string",
- "requestType": "everyone",
- "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}
], - "custom": { },
- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "clearUrl": "string",
- "activeFilters": [
- {
- "name": "string",
- "clearUrl": "string",
- "terms": [
- {
- "name": "string",
- "clearUrl": "string"
}
]
}
], - "facets": [
- {
- "displayName": "string",
- "clearUrl": "string",
- "disabled": true,
- "name": "string",
- "selected": true,
- "active": true,
- "terms": [
- {
- "name": "string",
- "url": "string",
- "hits": "string",
- "selected": "string",
- "id": "string",
- "state": "checked disabled",
- "aggregations": {
- "property1": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}, - "property2": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}
}
}
]
}
], - "aggregations": [
- {
- "name": "string",
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0,
- "count": 0,
- "range": "string",
- "hits": 0,
- "unit": "string"
}
]
}
Get Trade Request Details
Get Details for a single Trade Request
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "status": "active",
- "commodityName": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "type": "crop",
- "farmAssured": true,
- "sellerNotes": "string",
- "regions": [
- "string"
], - "listingsReceived": 0,
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "haulageTerms": {
- "haulageType": "ex-farm",
- "deliveryPostcode": "string"
}, - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "buyer": {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": {
- "callingCode": "string",
- "number": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "userId": "string"
}, - "createdAtUTC": "string",
- "requestType": "everyone",
- "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}
Close a trade request
Close a trade request and any open listings related
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "status": "active",
- "commodityName": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "type": "crop",
- "farmAssured": true,
- "sellerNotes": "string",
- "regions": [
- "string"
], - "listingsReceived": 0,
- "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "haulageTerms": {
- "haulageType": "ex-farm",
- "deliveryPostcode": "string"
}, - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "buyer": {
- "authPlatformId": "string",
- "emailAddress": "string",
- "fullName": "string",
- "mobileNumber": {
- "callingCode": "string",
- "number": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "userId": "string"
}, - "createdAtUTC": "string",
- "requestType": "everyone",
- "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}
Get News Feed
Get ordered list of articles for News Feed
Authorizations:
query Parameters
limit | integer Limit page size of results |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "title": "string",
- "summary": "string",
- "imageUrl": "string",
- "articleUrl": "string",
- "source": "AHDB",
- "publishDate": "string"
}
]
Create Market Update
Create Market Update from payload and store
Authorizations:
Request Body schema: application/json
content required | string |
required | object or null |
notification required | boolean |
visibleUntil required | string |
required | object or null |
Responses
Request samples
- Payload
{- "content": "string",
- "audience": {
- "userType": "buyer",
- "commodities": [
- 0
], - "regionISOs": [
- "string"
]
}, - "notification": true,
- "visibleUntil": "string",
- "template": {
- "id": "string",
- "variables": [
- {
- "name": "string",
- "value": "string"
}
]
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "content": "string",
- "visibleUntil": "string",
- "publishedAt": "string",
- "notification": true,
- "audienceUserType": "string",
- "audienceCommodityIds": [
- 0
], - "audienceRegionISOs": [
- "string"
], - "templateId": "string"
}
Update Market Update
Update Market Update with new data
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
content | string |
object or null | |
notification | boolean |
visibleUntil | string |
Responses
Request samples
- Payload
{- "content": "string",
- "audience": {
- "userType": "buyer",
- "commodities": [
- 0
], - "regionISOs": [
- "string"
]
}, - "notification": true,
- "visibleUntil": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "content": "string",
- "visibleUntil": "string",
- "publishedAt": "string",
- "notification": true,
- "audienceUserType": "string",
- "audienceCommodityIds": [
- 0
], - "audienceRegionISOs": [
- "string"
], - "templateId": "string"
}
Get Latest Market Updates
Get Latest relevent Market Updates from DB for user and return
Authorizations:
query Parameters
startDateUTC | string Filter market update by start date |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "content": "string",
- "visibleUntil": "string",
- "publishedAt": "string",
- "notification": true,
- "audienceUserType": "string",
- "audienceCommodityIds": [
- 0
], - "audienceRegionISOs": [
- "string"
], - "templateId": "string"
}
]
Get Latest Prices
Retrieves the latest grain prices from the insight database, this queries a view and will return the latest 20 bids
Authorizations:
query Parameters
commodity | string Filter by commodity |
region | string Filter by region |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "contractTerm": "string",
- "created": "string",
- "pricePerUnit": 0,
- "currency": "string",
- "movementMonth": 0,
- "movementYear": 0,
- "category": "string",
- "group": "string",
- "targetPrice": 0,
- "priceCurrency": "string",
- "bidsMinAmount": 0,
- "bidsMaxAmount": 0,
- "spread": 0,
- "region": "string",
- "countryIso": "string"
}
Get Latest Commodity Futures and Historical Prices
Retrieves the latest commodity prices
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "historical": [
- {
- "commodityId": 0,
- "name": "string",
- "lastUpdatedUTC": "string",
- "prices": [
- {
- "price": 0,
- "dt": "string"
}
]
}
], - "futures": [
- {
- "commodityId": 0,
- "name": "string",
- "lastUpdatedUTC": "string",
- "prices": [
- {
- "month": "string",
- "last": 0,
- "high": 0,
- "low": 0,
- "change": 0,
- "dir": "up"
}
]
}
]
}
Get Livestock Taxonomy
Retrieve the data needed to build the criteria selection form elements for livestock pricing (species, breeds etc
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "species": [
- {
- "id": "string",
- "name": "string",
- "breeds": [
- {
- "id": 0,
- "name": "string"
}
], - "types": [
- {
- "id": 0,
- "name": "string"
}
], - "genders": [
- {
- "id": 0,
- "name": "string"
}
]
}
]
}
Get Current Livestock Price
Retrieve average price for livestock based on criteria provided
Authorizations:
query Parameters
species required | string Filter by species |
breed required | number Filter by breed |
gender | number Filter by gender |
purpose | number Filter by purpose |
pedigree | boolean Filter by pedigree |
minAge | number Filter by minimum age |
maxAge | number Filter by maximum age |
region | string Filter by region |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "price": 0
}
Get Buyer Listings
Get Listings for a buyer, filtered by buyer preferences
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
status | string Filter by status |
f:commodity | string Filter by commodity |
f:commodityGrade | string Filter records by commodity grade |
f:commodityType | string Filter by commodity type |
f:commodityVariety | string Filter records by commodity variety |
f:harvestYear | string Filter by harvest year |
f:tags | string Filter by tags |
f:sellerOrganisationId | string Filter by seller |
wanted | boolean Filter by wanted listings |
f:wanted | boolean Deprecated Filter by wanted listings |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "docs": [
- {
- "id": "string",
- "public": true,
- "status": "active",
- "substatus": "unsold",
- "business": {
- "organisationId": "string",
- "organisationName": "string",
- "organisationLogo": "string",
- "organisationVetted": true,
- "businessUnitId": "string",
- "businessUnitName": "string",
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "holdingNumber": "string",
- "assuranceScheme": "RT",
- "sqc": {
- "number": "string",
- "isAssured": true
}
}, - "details": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}, - "movementPeriod": {
- "startDateUTC": "string",
- "endDateUTC": "string",
- "type": "date"
}, - "buyerNotes": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}
], - "targetPrice": {
- "amount": 0,
- "currency": "string"
}, - "guidePrice": {
- "amount": 0,
- "currency": "string"
}
}, - "inventory": {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "tags": [
- 0
], - "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "weight": {
- "min": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "max": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}, - "activeBids": 0,
- "bidInfo": {
- "count": 0,
- "acceptedCount": 0,
- "activeCount": 0,
- "expiredCount": 0,
- "nextExpiryUTC": "string",
- "prevExpiryUTC": "string",
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "soldWeight": 0,
- "bids": {
- "property1": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}, - "property2": {
- "userId": "string",
- "status": "active",
- "weight": {
- "min": 0,
- "max": 0
}, - "options": [
- {
- "id": 0,
- "soldWeightKG": 0,
- "soldWeight": 0
}
]
}
}
}, - "tradeRequestId": "string"
}
], - "custom": { },
- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "clearUrl": "string",
- "activeFilters": [
- {
- "name": "string",
- "clearUrl": "string",
- "terms": [
- {
- "name": "string",
- "clearUrl": "string"
}
]
}
], - "facets": [
- {
- "displayName": "string",
- "clearUrl": "string",
- "disabled": true,
- "name": "string",
- "selected": true,
- "active": true,
- "terms": [
- {
- "name": "string",
- "url": "string",
- "hits": "string",
- "selected": "string",
- "id": "string",
- "state": "checked disabled",
- "aggregations": {
- "property1": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}, - "property2": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}
}
}
]
}
], - "aggregations": [
- {
- "name": "string",
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0,
- "count": 0,
- "range": "string",
- "hits": 0,
- "unit": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "updatedAtUTC": "string",
- "configuration": {
- "commodities": [
- {
- "commodity": "Milling Wheat",
- "price": 0
}
], - "dates": [
- {
- "commodity": "Milling Wheat",
- "date": "string",
- "carryPrice": 0
}
], - "regionGroups": [
- {
- "commodity": "Milling Wheat",
- "groups": [
- "string"
], - "differentialPrice": 0
}
]
}, - "groups": [
- {
- "group": "string",
- "prices": [
- {
- "id": 0,
- "commodity": "Milling Wheat",
- "date": "string",
- "price": 0,
- "delta": 0,
- "commodityId": 0,
- "commodityGrades": [
- 0
], - "default": true
}
]
}
], - "regions": [
- {
- "region": "string",
- "prices": [
- {
- "id": 0,
- "commodity": "Milling Wheat",
- "date": "string",
- "price": 0,
- "delta": 0,
- "commodityId": 0,
- "commodityGrades": [
- 0
], - "default": true
}
]
}
]
}
Publish ex-farm pricing data
Publish ex-farm pricing data
Authorizations:
Request Body schema: application/json
required | Array of objects |
required | Array of objects |
required | Array of objects |
Responses
Request samples
- Payload
{- "commodities": [
- {
- "commodity": "Milling Wheat",
- "price": 0
}
], - "dates": [
- {
- "commodity": "Milling Wheat",
- "date": "string",
- "carryPrice": 0
}
], - "regionGroups": [
- {
- "commodity": "Milling Wheat",
- "groups": [
- "string"
], - "differentialPrice": 0
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "updatedAtUTC": "string",
- "configuration": {
- "commodities": [
- {
- "commodity": "Milling Wheat",
- "price": 0
}
], - "dates": [
- {
- "commodity": "Milling Wheat",
- "date": "string",
- "carryPrice": 0
}
], - "regionGroups": [
- {
- "commodity": "Milling Wheat",
- "groups": [
- "string"
], - "differentialPrice": 0
}
]
}, - "groups": [
- {
- "group": "string",
- "prices": [
- {
- "id": 0,
- "commodity": "Milling Wheat",
- "date": "string",
- "price": 0,
- "delta": 0,
- "commodityId": 0,
- "commodityGrades": [
- 0
], - "default": true
}
]
}
], - "regions": [
- {
- "region": "string",
- "prices": [
- {
- "id": 0,
- "commodity": "Milling Wheat",
- "date": "string",
- "price": 0,
- "delta": 0,
- "commodityId": 0,
- "commodityGrades": [
- 0
], - "default": true
}
]
}
]
}
Creates or updates one or more target prices
Creates or updates one or more target prices
Authorizations:
Request Body schema: application/json
additional property | Array of objects | ||||||||
Array
|
Responses
Request samples
- Payload
{- "property1": [
- {
- "exFarmCommodityId": 0,
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "receiveAlerts": true
}
], - "property2": [
- {
- "exFarmCommodityId": 0,
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "receiveAlerts": true
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "property1": [
- {
- "exFarmCommodityId": 0,
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "receiveAlerts": true
}
], - "property2": [
- {
- "exFarmCommodityId": 0,
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "receiveAlerts": true
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "property1": [
- {
- "exFarmCommodityId": 0,
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "receiveAlerts": true
}
], - "property2": [
- {
- "exFarmCommodityId": 0,
- "minPrice": {
- "amount": 0,
- "currency": "string"
}, - "maxPrice": {
- "amount": 0,
- "currency": "string"
}, - "receiveAlerts": true
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "content": "string",
- "visibleUntil": "string",
- "publishedAt": "string",
- "notification": true,
- "audienceUserType": "string",
- "audienceCommodityIds": [
- 0
], - "audienceRegionISOs": [
- "string"
], - "templateId": "string"
}
]
Update system settings
Change the system settings document in the trading module
Authorizations:
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "logging": {
- "level": "string",
- "filter": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}