Trigger async order completion
Schedules an asynchronous task to complete an order that was created through a deferred checkout flow.
The task runs with a 5-second countdown delay. The response is immediate (202 Accepted) and the order is completed in the background.
post/orders/complete_async/
Authorizations
AuthorizationstringRequired
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Body
order_numberstringRequired
The unique order number of the order to complete.
Responses
202
The completion task was scheduled successfully. The order will be completed asynchronously.
application/json
objectOptional
An empty response body.
400
The order_number field was missing from the request body.
application/json
401
Authentication credentials were not provided or are invalid.
application/json
403
The authenticated user does not have administrator privileges.
application/json
post/orders/complete_async/
POST /api/v1/remote/1/orders/complete_async/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"order_number": "000123456789"
}{}Last updated
Was this helpful?

