Request allows you to confirm the execution of the order. Confirmed order is marked with archived status.
It is available for sent orders only.
The order-id identification number in method call can be taken from response after creating the order or by downloading the order list.
PATCH
/ext/orders-api/v1/orders-created/{order-id}/confirm
Request Authorization
Every request MUST include a valid access token obtained during the user authorization process, provided using the Bearer token scheme in the Authorization header.
Request
Successful Response
Error Response
Request Header
PATCH /ext/orders-api/v1/orders-created/{order-id}/confirm HTTP/1.1
Host: api.platform.trans.eu
Content-Type: application/json
Accept: application/json
Authorization: Bearer {access_token)
Api-key: {unique_app_api-key}Successful Response
204 No ContentClient errors (code 400)
HTTP 4xx status codes indicate client errors, meaning that the request could not be processed due to an issue on the client side. Below is a list of request-specific errors.
Example error 1
Order does not exists
{
"detail": "Entity not found",
"status": 404,
"title": "Not Found",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}Example error 2
Already confirmed
{
"detail": "E018: The delivery for the order a7dbddae-14f0-4bf5-ae26-9792ad76d123 has already confirmed",
"status": 409,
"title": "Conflict",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}