Order Management
Signed order number (time-limited signature for security).
Response format. Use json for JSON response.
Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789Order details
HTML page with order confirmation.
Authentication required
Order not found, signature expired, or does not belong to user
GET /orders/completed/{order_number}/ HTTP/1.1
Host: sandbox.akinon.com
Cookie: sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789
Accept: */*
textThe order number to cancel.
ORD-2024-001234CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789Request payload for cancelling order items. Contains a list of items to cancel with their individual cancellation details.
Required for guest (anonymous) users. Must match the email address used when placing the order. Not required for authenticated users.
guest@example.comAddress ID for product pickup (for easy return / refund requests). Must be a valid address belonging to the authenticated user. Only required for refund-type cancellations with easy return enabled.
If true, the refund amount will be credited as loyalty points
instead of being refunded to the original payment method.
falseDirect cancellation failed - CancellationRequest records created as fallback. Returns the list of created CancellationRequest records that will be processed by the back-office.
Cancellation request ID.
Unique identifier for the cancellation request.
Order item ID that is being cancelled.
Cancellation reason ID (from CancellationReason model).
Additional notes or explanation provided by the customer.
Date and time when the cancellation request was created.
Direct cancellation successful.
The cancellation has been sent to Omnitron and order item statuses are updated to cancellation_waiting.
Request validation failed.
Unauthenticated request with no email provided. Guest users must include the email field; otherwise authentication is required.
Order not found or does not belong to user
Validation error - cancellation not allowed.
POST /orders/{order_number}/cancel/ HTTP/1.1
Host: sandbox.akinon.com
X-CSRFToken: abc123def456ghi789
Cookie: sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789
Content-Type: application/json
Accept: */*
Content-Length: 240
{
"cancel_order_items": [
{
"order_item": 1,
"cancellation_type": "cancel",
"reason": 1,
"description": "Changed my mind"
},
{
"order_item": 2,
"cancellation_type": "cancel",
"reason": 1,
"description": "Changed my mind"
}
],
"fully_refund_as_loyalty_money": false
}[
{
"pk": 101,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"order_item": 1,
"status": {
"value": "open",
"label": "Open"
},
"cancellation_type": {
"value": "cancel",
"label": "Cancel"
},
"reason": 1,
"description": "Changed my mind",
"created_date": "2024-06-15T10:30:00Z"
}
]CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789The ID of the order to update.
The ID of the new address from the user's address book.
Channel ID (optional, populated automatically).
Address change request submitted successfully to Omnitron.
Response from Omnitron after address change request.
HTTP status code from Omnitron API.
200Validation error
Authentication required
POST /orders/address_change/ HTTP/1.1
Host: sandbox.akinon.com
X-CSRFToken: abc123def456ghi789
Cookie: sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"order": 12345,
"address": 67890,
"order_address_types": [
"shipping"
]
}{
"status": 200
}Last updated
Was this helpful?

