Documents
Get proof of delivery
Recipient, signature, photographs and time of a delivered order, as a PDF.
GET
/v1/orders/{orderId}/proof-of-deliveryBearer tokenReturns a PDF fileSuccess 200
Available once a delivery has been made. Before that the answer is not_found.
Request
Headers
| Field | Type | Description |
|---|---|---|
Authorizationrequired | string | The access token from Get token, as "Bearer <token>". |
Path parameters
| Field | Type | Description |
|---|---|---|
orderIdrequired | string | The order's id (the UUID, not the short Order ID). |
Example request
curl -X GET "https://api.swiftazu.com/v1/orders/dffcd25d-6eb3-4b90-868c-6deca160ad74/proof-of-delivery" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
--output getProofOfDelivery.pdfResponse
The response body is the PDF file itself (Content-Type: application/pdf), not JSON.
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 404 | order_not_found | No order of yours has this id or air waybill number. |
| 404 | document_unavailable | The file could not be read. Try again. |
| 404 | not_found | The record does not exist, or it is not yours. |
Every call can also return the shared errors listed on the Overview page. Overview