Retrieve delivery plan
The GET /pic/link/purchase-orders/delivery-plan/:id
endpoint allows you obtain the delivery plan of a purchase order. ππΌπ€
Authorizationβ
This endpoint requires authentication through Basic Auth
with the username and password of the backend that will consume it. To create and configure a backend, follow the backends tutorial
Request parametersβ
- π£ Path
- π Query
- πͺ Body
Name | Type | Default | Description |
---|---|---|---|
id | string | Required | Identifier of the purchase order |
This request does not contain parameters of type Query
This request does not contain parameters of type Body
Examplesβ
- π₯οΈ cURL
curl --location 'https://<identifier>.api.appliqloud.com/pic/link/purchase-orders/delivery-plan/4500002' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <token>'
Responsesβ
- β 200
- β οΈ 404
- π 401
- π§ 500
The delivery plan was successfully retrieved
{
"purchaseOrderId":"450000001",
"deliveries":[
{
"date":"2024-08-11",
"items":[
{
"itemId":"10",
"quantity":3
}
]
},
{
"date":"2024-08-12",
"items":[
{
"itemId":"10",
"quantity":2
}
]
}
]
}
The delivery plan was not found
{
"traceId":"363b90413dae4b47932725f1e72907a5",
"cause":"PurchaseOrderDeliveryPlanNotFoundException",
"message":"Delivery plan for purchase order 450000001 in backend SAP not found",
"context":{
"backend_id":"SAP",
"purchase_order_id":"450000001"
}
}
Authorization required or credentials are not correct
{
"traceId": "3095a0a77f80436ba104eb2fc24ba343"
"cause": "UnauthorizedException",
"message": "Authorization required"
}
Internal server error (contact support@appliqloud.com or open a support ticket)
{
"traceId": "3095a0a77f80436ba104eb2fc24ba343"
"cause": "InternalServerError",
"message": "Internal server error"
}