Inventory API (1.0.0)
Download OpenAPI specification:Download
Retrieve commodities
Retrieve commodities
Authorizations:
query Parameters
| countryISO | string Filter by country |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "countryISO": "string",
- "items": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "grades": [
- {
- "id": 0,
- "name": "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 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
- 409
- 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
}
]
}
]Suggest commodities
Retrieve commodities based on input suggestions
Authorizations:
query Parameters
| type | string Filter by type |
| query required | string Free text search field for querying |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "countryISO": "string",
- "items": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "grades": [
- {
- "id": 0,
- "name": "string"
}
]
}
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "weight": {
- "name": "string",
- "conversion": 0
}
}
], - "type": "string",
- "defaultWeight": {
- "name": "string",
- "conversion": 0
}, - "weighbridgeWeight": {
- "name": "string",
- "conversion": 0
}
}
]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 Enum: "complete" "incomplete" Filter by movement 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 |
| format | string Format for the endpoint response, supports JSON (default) or CSV |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 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",
- "driver": {
- "name": "string",
- "registration": "string"
}, - "weighbridge": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "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
}
}
]
}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 |
object or null | |
required | object |
object or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "destination": {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "postcode": "string"
}, - "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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 |
object or null | |
required | object |
Responses
Request samples
- Payload
{- "records": [
- {
- "id": "string",
- "weight": 0,
- "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}
}
], - "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "destination": {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "postcode": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}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 |
| sold required | boolean |
object or null | |
required | object |
object or null |
Responses
Request samples
- Payload
{- "recordId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "sold": true,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "destination": {
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}, - "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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 |
object or null | |
required | object |
Responses
Request samples
- Payload
{- "records": [
- {
- "id": "string",
- "weight": 0,
- "adjustment": {
- "weight": 0,
- "reason": 0,
- "notes": "string"
}
}
], - "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "sold": true,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "destination": {
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Create A Harvest Plan
Create a harvest plan of planned movements from fields to stores
Authorizations:
Request Body schema: application/json
| movementDateISO required | string |
| recordIds required | Array of strings |
required | Array of objects |
Responses
Request samples
- Payload
{- "movementDateISO": "string",
- "recordIds": [
- "string"
], - "destinations": [
- {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "postcode": "string",
- "weight": 0
}
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Create A Harvest Plan
Create a harvest plan of planned movements from fields to stores
Authorizations:
Request Body schema: application/json
| movementDateISO required | string |
required | Array of objects |
required | Array of objects |
Responses
Request samples
- Payload
{- "movementDateISO": "string",
- "records": [
- {
- "id": "string",
- "weight": 0
}
], - "destinations": [
- {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "postcode": "string",
- "weight": 0
}
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Create A Harvest Plan
Create a harvest plan of planned movements from fields to an outbound organisation
Authorizations:
Request Body schema: application/json
| movementDateISO required | string |
| recordIds required | Array of strings |
required | Array of objects |
Responses
Request samples
- Payload
{- "movementDateISO": "string",
- "recordIds": [
- "string"
], - "destinations": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "region": "string",
- "postcode": "string",
- "weight": 0
}
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Create A Harvest Plan
Create a harvest plan of planned movements from fields to an outbound organisation
Authorizations:
Request Body schema: application/json
| movementDateISO required | string |
required | Array of objects |
required | Array of objects |
Responses
Request samples
- Payload
{- "movementDateISO": "string",
- "records": [
- {
- "id": "string",
- "weight": 0
}
], - "destinations": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "region": "string",
- "postcode": "string",
- "weight": 0
}
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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
- 409
- 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 |
| organisationId | string |
| organisationName | string |
| movementDateISO required | string |
| weight required | number |
object or null | |
required | object |
Responses
Request samples
- Payload
{- "recordId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "destination": {
- "storageId": "string",
- "substorageId": 0,
- "type": "store",
- "name": "string",
- "region": "string",
- "postcode": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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 |
| organisationId | string |
| organisationName | string |
| movementDateISO required | string |
| weight required | number |
| sold | boolean |
object or null | |
required | object |
Responses
Request samples
- Payload
{- "recordId": "string",
- "organisationId": "string",
- "organisationName": "string",
- "movementDateISO": "string",
- "weight": 0,
- "sold": true,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "destination": {
- "organisationId": "string",
- "organisationName": "string",
- "name": "string",
- "region": "string",
- "postcode": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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 |
object or null | |
object |
Responses
Request samples
- Payload
{- "recordId": "string",
- "isComplete": true,
- "driver": {
- "name": "string",
- "vehicleRegistration": "string"
}, - "weighbridge": {
- "empty": 0,
- "full": 0,
- "file": {
- "id": "string",
- "name": "string"
}
}
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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",
- "driver": {
- "name": "string",
- "registration": "string"
}, - "weighbridge": {
- "empty": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "full": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "file": {
- "name": "string",
- "id": "string",
- "url": "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
}
}
]
}Get Record
Get Record
Authorizations:
path Parameters
| id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 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
- 409
- 500
{- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 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
- 409
- 500
[- {
- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 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 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"
}
], - "reasonId": 0
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 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 |
Responses
Request samples
- Payload
{- "name": "string",
- "id": "string",
- "url": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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
- 409
- 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 | |
| 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"
}, - "commodityGradeId": 0
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 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 |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "docs": {
- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}
}, - "custom": {
- "commodities": [
- {
- "commodity": {
- "id": "string",
- "name": "string",
- "available": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}, - "types": [
- {
- "id": "string",
- "name": "string",
- "available": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "grades": [
- {
- "id": "string",
- "name": "string",
- "available": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
]
}
]
}
], - "businesses": [
- {
- "id": "string",
- "name": "string",
- "available": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}
}
], - "locations": [
- {
- "id": "string",
- "name": "string",
- "available": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}
]
}Create a new inventory record
Create a new inventory record
Authorizations:
Request Body schema: application/json
| name | string or null Name of the commodity |
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
{- "name": "string",
- "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"
}, - "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",
- "weighbridgeRecord": {
- "empty": 0,
- "full": 0,
- "file": {
- "name": "string",
- "id": "string",
- "url": "string"
}
}, - "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string"
}, - "commodityGradeId": 0
}, - "storageContract": {
- "dryingAgreed": true,
- "cleaningAgreed": true
}
}, - "importWeight": 0,
- "importDateUTC": "string"
}, - "tags": [
- "string"
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "storage": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "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
- 409
- 500
[- {
- "key": "string",
- "value": "string"
}
]Get Storage
Get storage facilities
Authorizations:
path Parameters
| id required | string Id of the resource |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 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 |
| type | string Enum: "field" "store" |
object or null | |
| tags | Array of strings Custom tags to help organise storage |
Array of objects or null |
Responses
Request samples
- Payload
{- "businessUnitIds": [
- "string"
], - "name": "string",
- "type": "field",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "tags": [
- "string"
], - "substorage": [
- {
- "id": 0,
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "weight": 0,
- "commodityName": "string"
}
]
}
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 0
}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
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 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
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 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
}
]
}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 |
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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "tags": [
- "string"
], - "substorage": [
- {
- "name": "string",
- "capacity": [
- {
- "commodityId": 0,
- "weight": 0,
- "commodityName": "string"
}
], - "record": {
- "name": "string",
- "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"
}, - "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",
- "weighbridgeRecord": {
- "empty": 0,
- "full": 0,
- "file": {
- "name": "string",
- "id": "string",
- "url": "string"
}
}, - "sample": {
- "fields": [
- {
- "name": "string",
- "value": "string",
- "metric": "string"
}
], - "file": {
- "name": "string",
- "id": "string",
- "url": "string"
}, - "commodityGradeId": 0
}, - "storageContract": {
- "dryingAgreed": true,
- "cleaningAgreed": true
}
}, - "importWeight": 0,
- "importDateUTC": "string"
}, - "tags": [
- "string"
]
}
}
]
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 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 |
| businessUnitIds | string Filter by business units |
| tags | string Filter by tags |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 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
}
]
}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
- 409
- 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
- 409
- 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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "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",
- "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
}
}
], - "substorageSeed": 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
- 409
- 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
- 409
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "region": "string",
- "postcode": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "name": "string",
- "status": "active",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "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
]
}
}
}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
- 409
- 500
{- "docs": {
- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "region": "string",
- "postcode": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "name": "string",
- "status": "active",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "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
]
}
}
}, - "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
}
]
}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
- 409
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "region": "string",
- "postcode": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "name": "string",
- "status": "active",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "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
]
}
}
}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
- 409
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "region": "string",
- "postcode": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "name": "string",
- "status": "active",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "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
]
}
}
}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"
}
], - "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
- 409
- 500
{- "id": "string",
- "status": "active",
- "owner": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "region": "string",
- "postcode": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "name": "string",
- "status": "active",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}, - "details": {
- "reference": "string",
- "startDateUTC": "string",
- "endDateUTC": "string",
- "files": [
- {
- "name": "string",
- "id": "string",
- "url": "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
]
}
}
}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 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"
}
], - "reasonId": 0
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 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 |
Responses
Request samples
- Payload
{- "name": "string",
- "id": "string",
- "url": "string"
}Response samples
- 200
- 400
- 401
- 403
- 409
- 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
- 409
- 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 | |
| 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"
}, - "commodityGradeId": 0
}Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "name": "string",
- "status": "string",
- "owners": [
- {
- "organisationId": "string",
- "name": "string",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 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
}, - "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",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "string"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "substorageCount": 0,
- "substorageId": 0,
- "substorageName": "string"
}, - "timeline": [
- {
- "type": "string",
- "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"
}
}, - "destination": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "origin": {
- "area": 0,
- "description": "string",
- "name": "string",
- "organisationId": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string"
}
], - "storageId": "string",
- "substorageId": 0,
- "type": "string"
}, - "driverName": "string",
- "status": "complete",
- "weight": {
- "name": "string",
- "conversion": 0,
- "weight": 0
}, - "vehicleRegistration": "string",
- "weightKG": 0
}
}
]
}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
- 409
- 500
{- "message": "string",
- "status": "string"
}