Inventory API (1.0.0)
Download OpenAPI specification:Download
Search Movements Between Dates
Search Movements Between Dates
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 |
startDateISO | string Filter by start date ISO |
endDateISO | string Filter by end date ISO |
f:type | string Filter by type |
f:commodity | string Filter by commodity |
f:commodityType | string Filter by commodity type |
f:commodityGrade | string Filter records by commodity grade |
f:status | string Filter by status |
f:storageSourceId | string Filter by movement source |
f:storageDestinationId | string Filter by movement destination |
conflicts | boolean Calculate conflicts if true |
type | string Enum: "intake" "internal" "outbound" Filter by movement type |
actions | boolean Filter by movements requiring action |
storageContractId | string Id of a storage contract |
format | string Format for the endpoint response, supports JSON (default) or CSV |
noContract | boolean Default: false Filter if not connected to a contract already |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "docs": [
- {
- "id": 0,
- "type": "internal",
- "status": "incomplete",
- "movementDateISO": "string",
- "inventory": {
- "recordId": "string",
- "name": "string",
- "storage": {
- "source": {
- "area": 0,
- "organisationId": "string",
- "organisationName": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}, - "destination": {
- "area": 0,
- "organisationId": "string",
- "organisationName": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}
}, - "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "uid": "string",
- "contractId": "string",
- "contractReference": "string",
- "sold": true,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "weighbridge": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "actionsRequired": {
- "status": "none",
- "outstanding": 0,
- "weighbridge": {
- "empty": true,
- "full": true
}, - "driver": true
}, - "storageContract": {
- "id": "string",
- "ownerOrganisationId": "string",
- "storerOrganisationId": "string",
- "requiresCleaning": true,
- "requiresDrying": true,
- "postDryingMoistureLevelPercentage": 0
}, - "weightRemaining": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
Create A Movement
Create A Movement
Authorizations:
Request Body schema: application/json
recordId required | string |
organisationId | string |
organisationName | string |
movementDateISO required | string |
weight required | number |
adjustToZero | boolean Default: false |
object or null | |
required | object |
object or null | |
storageContractId | string or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "destination": {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string"
}, - "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}, - "storageContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Create Movements
Create Movements
Authorizations:
Request Body schema: application/json
required | Array of objects |
organisationId | string |
organisationName | string |
movementDateISO required | string |
adjustToZero | boolean Default: false |
object or null | |
required | object |
storageContractId | string or null |
Responses
Request samples
- Payload
{- "records": [
- {
- "id": "string",
- "weight": 0,
- "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}
}
], - "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "destination": {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string"
}, - "storageContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Create A Movement
Create A Movement
Authorizations:
Request Body schema: application/json
recordId required | string |
contractId | string or null |
contractReference | string or null |
organisationId | string |
organisationName | string |
movementDateISO required | string |
weight required | number |
sold required | boolean |
adjustToZero | boolean Default: false |
object or null | |
required | object |
object or null | |
storageContractId | string or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "contractId": "string",
- "contractReference": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "sold": true,
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "destination": {
- "organisationId": "string",
- "organisationName": "string"
}, - "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}, - "storageContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Create Movements
Create Movements
Authorizations:
Request Body schema: application/json
required | Array of objects |
organisationId | string |
organisationName | string |
movementDateISO required | string |
sold required | boolean |
adjustToZero | boolean Default: false |
object or null | |
required | object |
contractId | string or null |
contractReference | string or null |
storageContractId | string or null |
Responses
Request samples
- Payload
{- "records": [
- {
- "id": "string",
- "weight": 0,
- "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}
}
], - "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "sold": true,
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "destination": {
- "organisationId": "string",
- "organisationName": "string"
}, - "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Delete Movement
Delete Movement
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
recordId | string |
Responses
Request samples
- Payload
{- "recordId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Edit Movement
Edit Movement
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
recordId required | string |
contractId | string or null |
contractReference | string or null |
organisationId | string |
organisationName | string |
movementDateISO required | string |
weight required | number |
adjustToZero | boolean Default: false |
object or null | |
required | object |
storageContractId | string or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "contractId": "string",
- "contractReference": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "destination": {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string"
}, - "storageContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Edit Movement
Edit Movement
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
recordId required | string |
contractId | string or null |
contractReference | string or null |
organisationId | string |
organisationName | string |
movementDateISO required | string |
weight required | number |
adjustToZero | boolean Default: false |
object or null | |
required | object |
storageContractId | string or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "contractId": "string",
- "contractReference": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "destination": {
- "organisationId": "string",
- "organisationName": "string"
}, - "storageContractId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Update Movement Actions
Update Movement Actions
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
recordId required | string |
isComplete | boolean |
adjustToZero | boolean Default: false |
object or null | |
object |
Responses
Request samples
- Payload
{- "recordId": "string",
- "isComplete": true,
- "adjustToZero": false,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "weighbridge": {
- "empty": 0,
- "full": 0,
- "file": {
- "id": "string",
- "name": "string"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "docs": [
- {
- "id": 0,
- "type": "internal",
- "status": "incomplete",
- "movementDateISO": "string",
- "inventory": {
- "recordId": "string",
- "name": "string",
- "storage": {
- "source": {
- "area": 0,
- "organisationId": "string",
- "organisationName": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}, - "destination": {
- "area": 0,
- "organisationId": "string",
- "organisationName": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}
}, - "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
}, - "uid": "string",
- "contractId": "string",
- "contractReference": "string",
- "sold": true,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string",
- "loadReference": "string"
}, - "weighbridge": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "actionsRequired": {
- "status": "none",
- "outstanding": 0,
- "weighbridge": {
- "empty": true,
- "full": true
}, - "driver": true
}, - "storageContract": {
- "id": "string",
- "ownerOrganisationId": "string",
- "storerOrganisationId": "string",
- "requiresCleaning": true,
- "requiresDrying": true,
- "postDryingMoistureLevelPercentage": 0
}, - "weightRemaining": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
Duplicate a movement
Duplicate a movement
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
recordId required | string |
count required | number |
Responses
Request samples
- Payload
{- "recordId": "string",
- "count": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Get Record
Get Record
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
Update Record
Update Record
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
commodityGrade | number or null Adjustment to commodity grade |
harvestYear | string Adjustment to harvest year |
tags | Array of numbers |
plantingAtUTC | string or null |
plantingAtDateType | string or null Enum: "date" "month" |
plantingExpectedYield | number or null |
Responses
Request samples
- Payload
{- "commodityGrade": 0,
- "harvestYear": "string",
- "tags": [
- 0
], - "plantingAtUTC": "string",
- "plantingAtDateType": "date",
- "plantingExpectedYield": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
Get Records by id
Get Records by id
Authorizations:
query Parameters
ids required | string Comma separated list of ids |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
]
Create adjustments for one or more records
Create adjustments for one or more records
Authorizations:
Request Body schema: application/json
required | Array of objects Array of records to adjust |
Array of objects or null A list of files to associate with the adjustments | |
reasonId required | number or null Reason for the adjustment, from dropdown of managed reasons |
Responses
Request samples
- Payload
{- "records": [
- {
- "id": "string",
- "adjustTo": 0
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "reasonId": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
]
Creates or updates a file on an adjustment
Creates or updates a file on an adjustment
Authorizations:
path Parameters
id required | string Id of the resource |
adjustmentId required | number Adjustment ID |
Request Body schema: application/json
name | string |
id required | string |
url | string or null |
userId | string or null |
userName | string or null |
organisationId | string or null |
createdAtUTC | string or null |
Responses
Request samples
- Payload
{- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Deletes a file on an adjustment
Deletes a file on an adjustment
Authorizations:
path Parameters
id required | string Id of the resource |
adjustmentId required | number Adjustment ID |
fileId required | string File ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Add a sample to this record
Add a sample to this record
Authorizations:
path Parameters
id required | string Id of the resource |
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",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
Search Inventory Record
Search Inventory Record
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 |
f:type | string Filter by type |
f:tags | string Filter by tags |
f:commodity | string Filter by commodity |
f:commodityGrade | string Filter records by commodity grade |
f:commodityTags | string Filter records by commodity tags |
f:commodityType | string Filter by commodity type |
f:commodityVariety | string Filter records by commodity variety |
f:harvestYear | string Filter by harvest year |
f:organisationId | string Filter records by inventory owner |
f:storageOrganisationId | string Filter records by storage owner |
f:storageId | string Filter by storage location |
f:storageType | string records storage type |
format | string Format for the endpoint response, supports JSON (default) or CSV |
ownerStatus | string Filter records by owned by or stored by |
f:businessUnitIds | string Filter by business units |
requiresCleaning | boolean Requires Cleaning |
f:location | string Filter by location |
f:regionISO | string Filter by region ISO |
f:tagl | string Filter by location tag |
f:tagm | string Filter by management type tag |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "docs": [
- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
], - "custom": {
- "commodities": [
- {
- "commodity": {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0
}, - "types": [
- {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0,
- "grades": [
- {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0
}
]
}
]
}
], - "businesses": [
- {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0
}
], - "locations": [
- {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0
}
], - "areas": [
- {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0
}
], - "regions": [
- {
- "id": "string",
- "name": "string",
- "soldWeight": 0,
- "totalWeight": 0
}
]
}, - "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"
}
]
}
Create a new inventory record
Create a new inventory record
Authorizations:
Request Body schema: application/json
rowNumber | number Row number identifier |
name | string or null Name of the commodity |
adjustToZero | boolean or null Default: false Automatically adjust store to zero if it contains inventory from a different harvest year. |
owned required | boolean Default: true Represents whether the owner of the inventory record owns the commodity stored or is storing on behalf of another organisation. |
bulkPlanting | boolean or null Default: false Is this a bulk planting |
Array of objects or null Array of storage locations where the new inventory record is being stored | |
type required | string Enum: "crop" "produce" Type of commodity |
harvestYear required | string |
required | object |
required | object |
tags | Array of strings Custom tags to help organise inventory |
Responses
Request samples
- Payload
{- "rowNumber": 0,
- "name": "string",
- "adjustToZero": false,
- "owned": true,
- "bulkPlanting": false,
- "storage": [
- {
- "storageId": "string",
- "area": 0,
- "substorageId": 0,
- "type": "string",
- "weight": 0
}
], - "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "id": 0,
- "grade": 0,
- "tags": [
- 0
], - "type": 0,
- "variety": "string",
- "harvestYear": "string"
}, - "source": {
- "type": "planting",
- "owner": {
- "id": "string",
- "name": "string"
}, - "storer": {
- "id": "string",
- "name": "string"
}, - "planting": {
- "plantingAtUTC": "2019-08-24T14:15:22Z",
- "plantingAtDateType": "date",
- "expectedYield": 0,
- "type": "internal"
}, - "intake": {
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "sender": {
- "id": "string",
- "name": "string"
}, - "driverName": "string",
- "vehicleRegistration": "string",
- "loadReference": "string",
- "weighbridgeRecord": {
- "empty": 0,
- "full": 0,
- "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0
}, - "storageContract": {
- "id": "string",
- "dryingAgreed": true,
- "cleaningAgreed": true
}
}, - "importWeight": 0,
- "importDateUTC": "string"
}, - "tags": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
Create new plantings
Create new plantings
Authorizations:
Request Body schema: application/json
rowNumber required | number Row number identifier |
name | string or null Name of the commodity |
type required | string Enum: "crop" "produce" Type of commodity |
harvestYear required | string |
owned required | boolean Default: true Represents whether the owner of the inventory record owns the commodity stored or is storing on behalf of another organisation. |
required | object |
required | object |
required | object or null |
adjustToZero | boolean or null Default: false Automatically adjust store to zero if it contains inventory from a different harvest year. |
tags | Array of strings Custom tags to help organise inventory |
Responses
Request samples
- Payload
[- {
- "rowNumber": 0,
- "name": "string",
- "type": "crop",
- "harvestYear": "string",
- "owned": true,
- "commodity": {
- "id": 0,
- "grade": 0,
- "tags": [
- 0
], - "type": 0,
- "variety": "string",
- "harvestYear": "string"
}, - "field": {
- "storageId": "string",
- "area": 0,
- "substorageId": 0,
- "type": "string",
- "weight": 0
}, - "planting": {
- "plantingAtUTC": "2019-08-24T14:15:22Z",
- "plantingAtDateType": "date",
- "expectedYield": 0,
- "type": "internal"
}, - "adjustToZero": false,
- "tags": [
- "string"
]
}
]
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Suggest varieties
Suggest varieties based on term
Authorizations:
query Parameters
commodityType | string Filter by commodity type |
commodity | string Filter by commodity |
query required | string Free text search field for querying |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "key": "string",
- "value": "string"
}
]
Get organisations with commodity
Returns list of organisations that have the specified commodity in store
Authorizations:
query Parameters
commodityType | string Filter by commodity type |
commodity | string Filter by commodity |
commodityGrade | string Filter by commodity grade |
regionISOs | string Filter by region ISO, comma seperated list |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "organisationsWithInventory": [
- "string"
], - "organisationsWithCommodity": [
- "string"
]
}
Get Storage
Get storage facilities
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
Update a storage location
Update a storage location
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
businessUnitIds | Array of strings |
name | string |
object or null | |
tags | Array of strings Custom tags to help organise storage |
Array of objects or null | |
area | number or null |
Responses
Request samples
- Payload
{- "businessUnitIds": [
- "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
}
}, - "tags": [
- "string"
], - "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "weight": 0,
- "commodityName": "string"
}
], - "storageNote": {
- "reasonId": 0,
- "note": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
]
}
}
], - "area": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
Get substorage and all future movements with conflict status if any
Authorizations:
path Parameters
id required | string Id of the resource |
query Parameters
substorageId | string Filter by substorage id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Get storage locations by inventory record ids
Get storage locations by inventory record ids
Authorizations:
query Parameters
ids required | string Comma separated list of ids |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
]
Search storage facilities
Search Storage
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 |
query | string Free text search field for querying |
f:type | string Filter by type |
f:commodity | string Filter by commodity |
f:commodityType | string Filter by commodity type |
f:commodityGrade | string Filter records by commodity grade |
f:commodityVariety | string Filter records by commodity variety |
f:tags | string Filter by tags |
f:hasInventory | boolean Filter by has inventory |
f:harvestYear | string Filter by harvest year |
f:ownerOrganisationId | string Filter records by inventory owner |
f:storageId | string Filter by storage location |
f:inventoryType | string Filter by inventory type (crop / produce |
conflict | boolean Filter by conflicted storage locations if set |
f:businessUnitIds | string Filter by business units |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "docs": [
- {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
], - "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"
}
]
}
Create a new storage location
Create a new storage location
Authorizations:
Request Body schema: application/json
name required | string |
area | number or null |
type required | string Enum: "field" "store" |
businessUnitIds | Array of strings |
required | object or null |
tags | Array of strings Custom tags to help organise storage |
required | Array of objects |
Responses
Request samples
- Payload
{- "name": "string",
- "area": 0,
- "type": "field",
- "businessUnitIds": [
- "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
}
}, - "tags": [
- "string"
], - "substorage": [
- {
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "weight": 0,
- "commodityName": "string"
}
], - "storageNote": {
- "reasonId": 0,
- "note": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
]
}, - "record": {
- "rowNumber": 0,
- "name": "string",
- "adjustToZero": false,
- "owned": true,
- "bulkPlanting": false,
- "storage": [
- {
- "storageId": "string",
- "area": 0,
- "substorageId": 0,
- "type": "string",
- "weight": 0
}
], - "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "id": 0,
- "grade": 0,
- "tags": [
- 0
], - "type": 0,
- "variety": "string",
- "harvestYear": "string"
}, - "source": {
- "type": "planting",
- "owner": {
- "id": "string",
- "name": "string"
}, - "storer": {
- "id": "string",
- "name": "string"
}, - "planting": {
- "plantingAtUTC": "2019-08-24T14:15:22Z",
- "plantingAtDateType": "date",
- "expectedYield": 0,
- "type": "internal"
}, - "intake": {
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "sender": {
- "id": "string",
- "name": "string"
}, - "driverName": "string",
- "vehicleRegistration": "string",
- "loadReference": "string",
- "weighbridgeRecord": {
- "empty": 0,
- "full": 0,
- "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0
}, - "storageContract": {
- "id": "string",
- "dryingAgreed": true,
- "cleaningAgreed": true
}
}, - "importWeight": 0,
- "importDateUTC": "string"
}, - "tags": [
- "string"
]
}
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
List Storage
List storage facilities
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
type | string Filter by type |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
format | string Format for the endpoint response, supports JSON (default) or CSV |
query | string Free text search field for querying |
conflict | boolean Filter by conflicted storage locations if set |
storeCommodity | number Filter stores by supported store commodities |
businessUnitIds | string Filter by business units |
commodity | string Filter by commodity |
commodityType | string Filter by commodity type |
commodityGrade | string Filter records by commodity grade |
tags | string Filter by tags |
harvestYear | string Filter by harvest year |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "docs": [
- {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
], - "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"
}
]
}
List Storage Facility Names
Return a list of storage facility id and name and location summary for an organisation
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "location": "string"
}
]
add commodity to storage
adds the desired commodity as a storable option on the sotage
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
substorageId required | number |
commodityId required | number |
weight required | number |
Responses
Request samples
- Payload
{- "substorageId": 0,
- "commodityId": 0,
- "weight": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "commodityName": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "record": {
- "id": "string",
- "inventoryType": "crop",
- "owned": true,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "harvestYear": "string"
}, - "conflict": {
- "recordId": "string",
- "movementId": 0,
- "movementDateUTC": "string",
- "status": "string"
}, - "remainingCapacity": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
Updates business units of storage locations in bulk
Authorizations:
Request Body schema: application/json
businessUnitId required | string |
storageIds required | Array of strings |
Responses
Request samples
- Payload
{- "businessUnitId": "string",
- "storageIds": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Split a field into multiple fields
Authorizations:
Request Body schema: application/json
source required | string |
name required | string |
hectares required | number |
variety | string or null |
rowNumber | number |
Responses
Request samples
- Payload
[- {
- "source": "string",
- "name": "string",
- "hectares": 0,
- "variety": "string",
- "rowNumber": 0
}
]
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Lookup storage contract
Lookup available storage contract for an intake
Authorizations:
query Parameters
commodity required | string Filter by commodity |
commodityType required | string Filter by commodity type |
commodityGrade | string Filter records by commodity grade |
dateISO required | string Filter by date |
ownerOrganisationId required | string Filter records by inventory owner |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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,
- "rejected": true,
- "isMerchant": true,
- "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 0,
- "intakeSampleLossMatrix": [
- {
- "moistureMinPercentage": 0,
- "moistureMaxPercentage": 0,
- "weightLossPercentage": 0
}
]
}
}
}, - "inventory": {
- "weight": 0,
- "type": "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
}
}
}
}
Search Storage Contracts
Search Storage 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 |
status | string Filter by status |
format | string Format for the endpoint response, supports JSON (default) or CSV |
query | string Free text search field for querying |
f:tags | string Filter by tags |
f:commodity | string Filter by commodity |
f:commodityType | string Filter by commodity type |
f:commodityGrade | string Filter records by commodity grade |
f:ownerOrganisationId | string Filter records by inventory owner |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "docs": [
- {
- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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,
- "rejected": true,
- "isMerchant": true,
- "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 0,
- "intakeSampleLossMatrix": [
- {
- "moistureMinPercentage": 0,
- "moistureMaxPercentage": 0,
- "weightLossPercentage": 0
}
]
}
}
}, - "inventory": {
- "weight": 0,
- "type": "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
}
}
}
}
], - "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"
}
]
}
Create a new Storage Contract
Create a new storageContractUpdate contract
Authorizations:
Request Body schema: application/json
ownerOrganisationId required | string |
ownerOrganisationName required | string |
required | object |
required | object |
Responses
Request samples
- Payload
{- "ownerOrganisationId": "1-A",
- "ownerOrganisationName": "Andrews Farm",
- "details": {
- "reference": "abc123",
- "startDateISO": "2022-10-31",
- "endDateISO": "2023-10-30",
- "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 10
}
}
}, - "inventory": {
- "weightKG": 100,
- "commodity": {
- "id": 1,
- "type": 9
}, - "variety": [
- "beluga"
]
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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,
- "rejected": true,
- "isMerchant": true,
- "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 0,
- "intakeSampleLossMatrix": [
- {
- "moistureMinPercentage": 0,
- "moistureMaxPercentage": 0,
- "weightLossPercentage": 0
}
]
}
}
}, - "inventory": {
- "weight": 0,
- "type": "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
}
}
}
}
Retrieve a Storage Contract
Retrieves a single Storage Contract using the id
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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,
- "rejected": true,
- "isMerchant": true,
- "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 0,
- "intakeSampleLossMatrix": [
- {
- "moistureMinPercentage": 0,
- "moistureMaxPercentage": 0,
- "weightLossPercentage": 0
}
]
}
}
}, - "inventory": {
- "weight": 0,
- "type": "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
}
}
}
}
Update storage contract
Update storage contract
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
required | object |
required | object |
Responses
Request samples
- Payload
{- "details": {
- "reference": "string",
- "startDateUTC": "2019-08-24T14:15:22Z",
- "endDateUTC": "2019-08-24T14:15:22Z",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 0,
- "intakeSampleLossMatrix": [
- {
- "moistureMinPercentage": 0,
- "moistureMaxPercentage": 0,
- "weightLossPercentage": 0
}
]
}
}
}, - "inventory": {
- "weight": 0,
- "commodity": {
- "id": 0,
- "type": 0,
- "grade": 0,
- "variety": [
- "string"
]
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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,
- "rejected": true,
- "isMerchant": true,
- "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "services": {
- "cleaning": {
- "agreed": true
}, - "drying": {
- "agreed": true,
- "preAgreedMoistureLevelPercentage": 0,
- "intakeSampleLossMatrix": [
- {
- "moistureMinPercentage": 0,
- "moistureMaxPercentage": 0,
- "weightLossPercentage": 0
}
]
}
}
}, - "inventory": {
- "weight": 0,
- "type": "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
}
}
}
}
Retrieve commodities
Retrieve commodities
query Parameters
countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "countryISO": "GB",
- "items": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "grades": [
- {
- "id": 0,
- "name": "string",
- "varieties": [
- "string"
]
}
]
}
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "weight": {
- "name": "string",
- "conversion": 0
}
}
], - "type": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}, - "weighbridgeWeight": {
- "name": "string",
- "conversion": 0
}
}
]
Retrieve commodity info by organisation
Retrieve commodity info by organisation
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "harvestYears": [
- {
- "id": 0,
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "commodities": [
- {
- "id": 0,
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
]
Retrieve commodity default specifications
Retrieve commodity default specifications
Authorizations:
path Parameters
id required | string Id of the resource |
query Parameters
commodityGrade | string Filter records by commodity grade |
commodityType | string Filter by commodity type |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "commodity": {
- "id": 0,
- "name": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "grade": {
- "id": 0,
- "name": "string"
}
}, - "measures": [
- {
- "specification": {
- "id": 0,
- "name": "string",
- "unit": "string"
}, - "min": 0,
- "max": 0
}
]
}
]
Create adjustments for one or more records
Create adjustments for one or more records
Authorizations:
Request Body schema: application/json
required | Array of objects Array of records to adjust |
Array of objects or null A list of files to associate with the adjustments | |
reasonId required | number or null Reason for the adjustment, from dropdown of managed reasons |
Responses
Request samples
- Payload
{- "records": [
- {
- "id": "string",
- "adjustTo": 0
}
], - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "reasonId": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
]
Creates or updates a file on an adjustment
Creates or updates a file on an adjustment
Authorizations:
path Parameters
id required | string Id of the resource |
adjustmentId required | number Adjustment ID |
Request Body schema: application/json
name | string |
id required | string |
url | string or null |
userId | string or null |
userName | string or null |
organisationId | string or null |
createdAtUTC | string or null |
Responses
Request samples
- Payload
{- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Deletes a file on an adjustment
Deletes a file on an adjustment
Authorizations:
path Parameters
id required | string Id of the resource |
adjustmentId required | number Adjustment ID |
fileId required | string File ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Add a sample to this record
Add a sample to this record
Authorizations:
path Parameters
id required | string Id of the resource |
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",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "id": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "name": "string",
- "area": 0,
- "type": "field",
- "isConflicted": true,
- "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
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "subtype": "adjustment",
- "createdAtUTC": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "organisationName": "string",
- "userName": "string",
- "details": {
- "id": 0,
- "moveAtUTC": "2019-08-24T14:15:22Z",
- "weighbridgeRecord": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}, - "driverName": "string",
- "status": "complete",
- "statusMessage": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "loadReference": "string",
- "contractId": "string",
- "contractReference": "string",
- "storageContractId": "string",
- "sold": true,
- "merge": {
- "sourceRecordId": "string",
- "sourceMovementId": 0
}
}
}
]
}
Create a new Storage Note
Create a new informative note relating to a specific store or substore
Authorizations:
Request Body schema: application/json
storageId required | string |
substorageId | number or null |
reasonId required | number |
note required | string |
Array of objects or null or null |
Responses
Request samples
- Payload
{- "storageId": "string",
- "substorageId": 0,
- "reasonId": 0,
- "note": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "storageId": "string",
- "substorageId": 0,
- "reasonId": 0,
- "reasonDescription": "string",
- "note": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "createdBy": "string",
- "createdByName": "string",
- "createdAtUTC": "string"
}
Query Storage Note by StorageId and SubstorageId
Queries the storage notes using storageId and substorageId returning a timeline
Authorizations:
query Parameters
storageId required | string Filter by storage id |
substorageId | string Filter by substorage id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "storageId": "string",
- "substorageId": 0,
- "reasonId": 0,
- "reasonDescription": "string",
- "note": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "createdBy": "string",
- "createdByName": "string",
- "createdAtUTC": "string"
}
]
Create Trade Availability Inventory Records
Create trade availability inventory records
Authorizations:
Request Body schema: application/json
required | Array of objects | ||||||||||||||
Array
|
Responses
Request samples
- Payload
{- "commodities": [
- {
- "type": "crop",
- "harvestYear": "string",
- "commodity": {
- "id": 0,
- "grade": 0,
- "tags": [
- 0
], - "type": 0,
- "variety": "string",
- "harvestYear": "string"
}, - "weight": 0,
- "soldWeight": 0,
- "businessUnitIds": [
- "string"
], - "tags": [
- "string"
]
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
Patch Trade Availability Inventory Record
Patch trade availability inventory record
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
businessUnitIds | Array of strings |
commodityGrade | number or null |
commodityWeight | number |
soldWeight | number or null |
tags | Array of strings |
Responses
Request samples
- Payload
{- "businessUnitIds": [
- "string"
], - "commodityGrade": 0,
- "commodityWeight": 0,
- "soldWeight": 0,
- "tags": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
Create harvest plans for existings org records
Temporary endpoint to create harvest plans for existing org records
Authorizations:
Request Body schema: application/json
organisationId | string |
organisationName | string |
Responses
Request samples
- Payload
{- "organisationId": "string",
- "organisationName": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Search Harvest Plans
Search Harvest Plans
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 |
f:harvestYear | string Filter by harvest year |
f:commodity | string Filter by commodity |
f:commodityType | string Filter by commodity type |
f:businessUnitIds | string Filter by business units |
f:regionISO | string Filter by region ISO |
tags | string Filter by tags |
format | string Format for the endpoint response, supports JSON (default) or CSV |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "harvestYear": "string",
- "status": "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
}
}, - "businessUnit": {
- "id": "string",
- "name": "string",
- "type": "string"
}, - "businessUnitIds": [
- "string"
], - "summary": {
- "totalCount": 0,
- "totalSize": 0,
- "totalPredictedYield": 0,
- "totalProjectedYield": 0,
- "totalHarvestedYield": 0,
- "totalRemainingYield": 0,
- "averageMoistureContent": 0,
- "yieldVariance": 0,
- "areaHarvested": 0
}, - "records": [
- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
]
}
]
Get Harvest Plans
Get Harvest Plan
Authorizations:
path Parameters
id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "harvestYear": "string",
- "status": "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
}
}, - "businessUnit": {
- "id": "string",
- "name": "string",
- "type": "string"
}, - "businessUnitIds": [
- "string"
], - "summary": {
- "totalCount": 0,
- "totalSize": 0,
- "totalPredictedYield": 0,
- "totalProjectedYield": 0,
- "totalHarvestedYield": 0,
- "totalRemainingYield": 0,
- "averageMoistureContent": 0,
- "yieldVariance": 0,
- "areaHarvested": 0
}, - "records": [
- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
]
}
Search Harvest Plan History
Search Harvest Plan History
Authorizations:
query Parameters
f:harvestYear | string Filter by harvest year |
f:commodity | string Filter by commodity |
f:commodityType | string Filter by commodity type |
f:businessUnitIds | string Filter by business units |
f:regionISO | string Filter by region ISO |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "labels": [
- "string"
], - "datasets": [
- {
- "label": "string",
- "data": [
- 0
]
}
]
}
Adjusts estimated remaining area for fields in a harvest plan
Adjusts estimated remaining area for fields in a harvest plan
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
fieldId required | string |
areaRemaining required | number |
originalAreaRemaining required | number |
Responses
Request samples
- Payload
[- {
- "fieldId": "string",
- "areaRemaining": 0,
- "originalAreaRemaining": 0
}
]
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "harvestYear": "string",
- "status": "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
}
}, - "businessUnit": {
- "id": "string",
- "name": "string",
- "type": "string"
}, - "businessUnitIds": [
- "string"
], - "summary": {
- "totalCount": 0,
- "totalSize": 0,
- "totalPredictedYield": 0,
- "totalProjectedYield": 0,
- "totalHarvestedYield": 0,
- "totalRemainingYield": 0,
- "averageMoistureContent": 0,
- "yieldVariance": 0,
- "areaHarvested": 0
}, - "records": [
- {
- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "status": "string",
- "owned": true,
- "soldTo": "string",
- "soldWeight": 0,
- "soldWeightOnline": 0,
- "soldValueOnline": 0,
- "position": 0,
- "source": "planting",
- "type": "crop",
- "commodity": {
- "commodity": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "grade": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "variety": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "harvestYear": "string",
- "isRecordInStorage": true,
- "yield": {
- "unit": "string",
- "current": 0,
- "loss": 0,
- "sold": 0,
- "initial": 0,
- "harvested": 0,
- "total": 0
}, - "harvest": {
- "area": 0,
- "harvestPlanId": "string",
- "fieldId": "string",
- "fieldName": "string"
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnitIds": [
- "string"
], - "storageId": "string",
- "substorageId": 0,
- "type": "string",
- "regionISO": "string"
}
}
]
}
Search Harvest Plan Loads
Search Harvest Plan Loads
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 |
format | string Format for the endpoint response, supports JSON (default) or CSV |
docs | boolean Defaults to true, but if included and set to false, only fitlers will be returned for the search, no documents |
harvestPlanId required | string Filter by harvest plan |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "id": "string",
- "fieldId": "string",
- "fieldName": "string",
- "storageId": "string",
- "storageName": "string",
- "substorageId": 0,
- "substorageName": "string",
- "recordId": "string",
- "movementId": 0,
- "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
}
}, - "dateISO": "string",
- "weightNet": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "fieldArea": 0,
- "moisture": 0,
- "temperature": 0,
- "driverName": "string",
- "driverRegistration": "string",
- "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
}
]
Add a new load to a harvest plan
Add a new load to a harvest plan
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
fieldId required | string |
commodityId required | number |
commodityGroupId required | number |
storageId required | string |
substorageId required | number |
dateISO required | string |
weightNet required | number |
moisture required | number or null |
temperature required | number or null |
driverName required | string or null |
driverRegistration required | string or null |
required | object or null |
Responses
Request samples
- Payload
[- {
- "fieldId": "string",
- "commodityId": 0,
- "commodityGroupId": 0,
- "storageId": "string",
- "substorageId": 0,
- "dateISO": "string",
- "weightNet": 0,
- "moisture": 0,
- "temperature": 0,
- "driverName": "string",
- "driverRegistration": "string",
- "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0
}
}
]
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "fieldId": "string",
- "fieldName": "string",
- "storageId": "string",
- "storageName": "string",
- "substorageId": 0,
- "substorageName": "string",
- "recordId": "string",
- "movementId": 0,
- "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
}
}, - "dateISO": "string",
- "weightNet": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "fieldArea": 0,
- "moisture": 0,
- "temperature": 0,
- "driverName": "string",
- "driverRegistration": "string",
- "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}, - "files": [
- {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "string",
- "createdAtUTC": "string"
}
], - "commodityGradeId": 0,
- "id": 0
}
}
Deletes a load from a harvest plan
Deletes a load from a harvest plan
Authorizations:
path Parameters
id required | string Id of the resource |
Request Body schema: application/json
loadId required | string |
Responses
Request samples
- Payload
[- {
- "loadId": "string"
}
]
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}
Import a batch of fields
CSV Import endpoint to create a set of fields
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import a batch of stores
CSV Import endpoint to create a set of stores
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Split a field into multiple fields
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Fix field yields
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import a batch of existing inventory
CSV Import endpoint to create a set of inventory in existing storage locations
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import a batch of existing inventory
CSV Import endpoint to create a set of inventory in existing field locations
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import and overwrite commodity varieties
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Update system settings
Change the system settings document in the inventory module
Authorizations:
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "logging": {
- "level": "string",
- "filter": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "message": "string",
- "status": "string"
}