Apis related to Validation.
Interu API (v2_28)
Bodyapplication/jsonrequired
Any of:
- 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.
Identifies the input items to use in creating the outbound delivery.
Identifies details of the output items to be created in the outbound 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
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": [
{
"inputs": [
{
"item": "/organisations/{orgId}/items/{itemId}",
"currentLocation": "/organisations/{orgId}/locations/{locationId}"
}
],
"outputs": [
{
"id": "string",
"itemId": "string",
"quantity": 0
}
],
"inputDate": "2019-08-24T14:15:22Z",
"outputDate": "2019-08-24T14:15:22Z",
"processType": "/organisations/{orgId}/process-types/{processTypeId}"
}
]
}'The request has succeeded and will either return the newly created resource or where appropriate a record that reflects the success of the action.
The URI of the location from which the delivery is being delivered from.
List of agent organisation URIs that are associated with the delivery.
Response
application/json
{ "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" } }