Apis related to Validation.
Interu API (v2_31)
Request
This allows for the creation of an 'outbound' delivery based on a variety of potential inputs and differing outputs.
- Create_Trade_Delivery_From_Items
- Create_Trade_Delivery_From_Batches
- Create_Trade_Delivery_From_Products
- Create_Production_Delivery_From_Items
- Create_Production_Delivery_From_Batches
- Create_Production_Delivery_From_Products
Supports the creation of a delivery with items that are selected directly from provided input items.
List of purchase order numbers that you want to associate with the delivery.
The line item definitions for the inputs and outputs for a delivery.
This is the supplier of the items that are to be used as input items and is required if you are utilising Predictive DDS.
Identifies the input items to use in creating the outbound delivery.
Identifies details of the output items to be created in the outbound delivery.
The quantity of item to include in the delivery.
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/workflows/deliveries
- UAThttps://api.uat.interu.io/organisations/{orgId}/workflows/deliveries
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Create_Trade_Delivery_From_Items
- Create_Trade_Delivery_From_Batches
- Create_Trade_Delivery_From_Products
- Create_Production_Delivery_From_Items
- Create_Production_Delivery_From_Batches
- Create_Production_Delivery_From_Products
curl -i -X POST \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/workflows/deliveries' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-H 'contentType: application/json' \
-d '{
"id": "string",
"deliveryId": "string",
"from": "/organisations/{orgId}/locations/{locationId}",
"to": "/organisations/{orgId}/locations/{locationId}",
"status": "DELIVERED",
"sent": "2019-08-24T14:15:22Z",
"delivered": "2019-08-24T14:15:22Z",
"purchaseOrderNumbers": [
"string"
],
"agents": [
"/organisations/{orgId}/connections/{connectionId}"
],
"lineItems": [
{
"supplier": "/organisations/{orgId}/connections/{connectionId}",
"inputs": [
{
"item": "/organisations/{orgId}/items/{itemId}",
"currentLocation": "/organisations/{orgId}/locations/{locationId}"
}
],
"outputs": [
{
"id": "string",
"itemId": "string",
"quantity": 0,
"additionalQuantities": [
{
"baseUnit": "string",
"conversionQuantity": 0,
"overrideQuantity": 0
}
]
}
],
"inputDate": "2019-08-24T14:15:22Z",
"outputDate": "2019-08-24T14:15:22Z",
"processType": "/organisations/{orgId}/process-types/{processTypeId}"
}
],
"dds": {
"existing": {
"resolve": true,
"ignoreMissing": true,
"references": [
{
"referenceNumber": "string",
"verificationNumber": "string"
}
]
},
"create": {
"resolve": true,
"internalReferenceNumber": "string",
"statementData": {
"operatorType": "OPERATOR",
"activityType": "IMPORT",
"countryOfActivity": "AT",
"borderCrossCountry": "AT",
"comment": "string",
"geoLocationConfidential": true,
"associatedStatements": [
{
"referenceNumber": "string",
"verificationNumber": "string"
}
]
}
},
"product": {
"filterBySupplier": true,
"ignoreMissing": true
}
}
}'The request has succeeded and will either return the newly created resource or where appropriate a record that reflects the success of the action.
This is the delivery that has been created by the workflow.
The URI of the location from which the delivery is being delivered from.
The current status of the delivery.
List of agent organisation URIs that are associated with the delivery.
{ "delivery": { "deliveryId": "string", "from": "/organisations/{orgId}/locations/{locationId}", "to": "/organisations/{orgId}/locations/{locationId}", "status": "DELIVERED", "sent": "2019-08-24T14:15:22Z", "delivered": "2019-08-24T14:15:22Z", "items": [ … ], "agents": [ … ], "purchaseOrderNumbers": [ … ], "id": "string", "createdBy": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedBy": "string", "updatedTime": "2019-08-24T14:15:22Z" }, "dds": [ { … } ] }