curl --request POST \
--url http://localhost:3001/v1/delivery \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"deliveryNumber": "247000-08",
"externalId": "1234567890",
"deliveryDate": "2024-06-21",
"purchaseOrderId": "1234567890",
"lineItems": [
{
"externalId": "1234567890",
"productCode": "1234567890",
"title": "Product Title",
"unit": "1234567890",
"quantity": 1,
"unitPrice": 1,
"totalPrice": 100,
"discount": 5,
"taxRate": 20,
"taxAmount": 150
}
]
}'
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deliveryNumber": "<string>",
"externalId": "<string>",
"deliveryDate": "2023-11-07T05:31:56Z",
"purchaseOrder": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"purchaseOrderNumber": "<string>",
"externalId": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"deliveryDate": "2023-11-07T05:31:56Z",
"supplierId": "<string>",
"lineItems": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"productCode": 123,
"title": "<string>",
"description": "<string>",
"quantity": 123,
"unit": 123,
"unitPrice": 123,
"totalPrice": 123,
"discount": 123,
"taxRate": 123,
"taxAmount": 123
}
]
},
"lineItems": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"productCode": 123,
"title": "<string>",
"description": "<string>",
"quantity": 123,
"unit": 123,
"unitPrice": 123,
"totalPrice": 123,
"discount": 123,
"taxRate": 123,
"taxAmount": 123
}
]
}
Create a new delivery.
curl --request POST \
--url http://localhost:3001/v1/delivery \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"deliveryNumber": "247000-08",
"externalId": "1234567890",
"deliveryDate": "2024-06-21",
"purchaseOrderId": "1234567890",
"lineItems": [
{
"externalId": "1234567890",
"productCode": "1234567890",
"title": "Product Title",
"unit": "1234567890",
"quantity": 1,
"unitPrice": 1,
"totalPrice": 100,
"discount": 5,
"taxRate": 20,
"taxAmount": 150
}
]
}'
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deliveryNumber": "<string>",
"externalId": "<string>",
"deliveryDate": "2023-11-07T05:31:56Z",
"purchaseOrder": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"purchaseOrderNumber": "<string>",
"externalId": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"deliveryDate": "2023-11-07T05:31:56Z",
"supplierId": "<string>",
"lineItems": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"productCode": 123,
"title": "<string>",
"description": "<string>",
"quantity": 123,
"unit": 123,
"unitPrice": 123,
"totalPrice": 123,
"discount": 123,
"taxRate": 123,
"taxAmount": 123
}
]
},
"lineItems": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"productCode": 123,
"title": "<string>",
"description": "<string>",
"quantity": 123,
"unit": 123,
"unitPrice": 123,
"totalPrice": 123,
"discount": 123,
"taxRate": 123,
"taxAmount": 123
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.