Apis related to Validation.
Interu API (v2_31)
Request
This allows for the creation of a purchase order and a corresponding delivery as well as assigning DDS references.
The details of the purchase order that you wish to create.
The current status of the purchase order.
List of items included in the purchase order.
The URI of the product for the line item included in the purchase order.
The quantity of the product included in the purchase order.
The uri of the product variant if applicable to this purchase order line item.
Additiononal quantities can be specified directly on the item.
The additional quantity base unit of measurement.
The additional quantity calculated if the product has a conversion to that base unit.
Specify delivery configuration if you wish to create a delivery
Specify as true if you want to generate a delivery based on this PO. Defaults to false.
System assigned or user defined id field - if left out then the workflow will use the PO number.
User-assigned unique identifier for the delivery - if left out then the workflow will use the PO number.
The URI of the location from which the delivery is being delivered from.
The status of the delivery. If left out then it will default to PENDING.
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/workflows/orders
- UAThttps://api.uat.interu.io/organisations/{orgId}/workflows/orders
- 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/orders' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-H 'contentType: application/json' \
-d '{
"order": {
"number": "string",
"status": "OPEN",
"orderDate": "2019-08-24T14:15:22Z",
"expectedDeliveryDate": "2019-08-24T14:15:22Z",
"supplier": "/organisations/{orgId}/connections/{connectionId}",
"buyer": "/organisations/{orgId}/connections/{connectionId}",
"deliverToLocation": "/organisations/{orgId}/locations/{locationId}",
"lineItems": [
{
"lineItemId": "string",
"product": "/organisations/{orgId}/products/{productId}",
"quantity": 0,
"note": "string",
"productVariant": "/organisations/{orgId}/products/{productId}/variants/{variantId}",
"additionalQuantities": [
{
"baseUnit": "string",
"conversionQuantity": 0,
"overrideQuantity": 0
}
]
}
],
"note": "string",
"id": "string"
},
"delivery": {
"generate": true,
"id": "string",
"deliveryId": "string",
"from": "/organisations/{orgId}/locations/{locationId}",
"status": "DELIVERED",
"sent": "2019-08-24T14:15:22Z",
"delivered": "2019-08-24T14:15:22Z"
},
"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 Purchase Order that has been created by the workflow.
The current status of the purchase order.
List of items included in the purchase order.
The URI of the product for the line item included in the purchase order.
The quantity of the product included in the purchase order.
The uri of the product variant if applicable to this purchase order line item.
Additiononal quantities can be specified directly on the item.
The additional quantity base unit of measurement.
The additional quantity calculated if the product has a conversion to that base unit.
{ "order": { "number": "string", "status": "OPEN", "orderDate": "2019-08-24T14:15:22Z", "expectedDeliveryDate": "2019-08-24T14:15:22Z", "supplier": "/organisations/{orgId}/connections/{connectionId}", "buyer": "/organisations/{orgId}/connections/{connectionId}", "deliverToLocation": "/organisations/{orgId}/locations/{locationId}", "lineItems": [ … ], "note": "string", "id": "string", "createdBy": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedBy": "string", "updatedTime": "2019-08-24T14:15:22Z" }, "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": [ { … } ] }