Anonymous User Orders & Cancellations
POST User Anonymous Order
This endpoint allows users to retrieve their order details by providing their email and order number without logging in.
By default, the user type associated with the order must be "guest". When the ALLOW_ANONYMOUS_ACCESS_TO_REGISTERED_ORDERS dynamic setting is enabled, orders of registered users can also be retrieved. The email address is compared with the one on the order; letter case is ignored.
Path: /users/orders/anonymous/
Authentication Required: No
Headers:
Accept-Language: <iso_language_code>
x-csrftoken: <token>
Content-Type: 'application/json'Body Parameters
String
True
The email associated with the order to be queried.
number
String
True
The order number associated with the order to be queried.
Request Body
{
"email": "example@example.com",
"number": "111111111111"
}Example Request
Example Response (200 OK)
POST User Anonymous Orders Bulk Cancellation Request
This endpoint allows guest users to submit bulk cancellation requests for multiple order items at once. It supports both "cancel" and "refund" types of cancellations. It also provides optional parameters to specify details such as the pickup address, refund method, and pickup time for returned items.
By default, only orders of guest users are accepted. When the ALLOW_ANONYMOUS_ACCESS_TO_REGISTERED_ORDERS dynamic setting is enabled, orders of registered users are also accepted.
Path: /users/orders/anonymous/bulk_cancellation_requests/
Authentication Required: No
Headers:
Body Parameters
cancellation_type
enum
True
Type of cancellations. Possible values are “cancel” and “refund”.
quantity
integer
False
Specifies the quantity of the order items to be cancelled. If left empty, it assumes all items of the specified type.
description
string
False
An optional message explaining the reason for the cancellation.
order_item
integer
True
The ID of the order item to be cancelled.
shipping_company
integer
False
The ID of the shipping company (if applicable).
iban
String
False
IBAN number for refund processing (if applicable).
holder_name
String
False
Name of the account holder for refunding (if applicable).
pickup_date
date
False
The scheduled date and time for pickup of the cancelled item. Includes date and hour_range (start and end times). { "date": "2024-01-01", "hour_range": { "start": "09:00", "end": "12:00" } }
pickup_address
Integer
False
ID of the address where the cancelled item should be picked up.
fully_refund_as_loyalty_money
Boolean
False
If true, the refund will be processed as loyalty points.
Request Body
Example Request
Example Response (201 Created)
POST User Anonymous Orders Cancellation Request
This endpoint allows guest users to create a cancellation request for a specific order item. Users can choose to cancel the item or request a refund. Optional parameters allow for specifying shipping logistics, refund details, and a reason for the cancellation.
By default, only orders of guest users are accepted. When the ALLOW_ANONYMOUS_ACCESS_TO_REGISTERED_ORDERS dynamic setting is enabled, orders of registered users are also accepted.
Path: /users/orders/anonymous/cancellation_requests/
Authentication Required: No
Headers:
Body Parameters
cancellation_type
Enum
True
Indicates the type of cancellation: "cancel" for order cancellation, "refund" for refund request.
reason
Integer
True
The ID of the cancellation reason.
order_item
Integer
True
The ID of the order item being canceled.
shipping_company
Integer
False
The ID of the shipping company handling the return, if applicable.
pickup_address
Integer
False
The ID of the address where the item should be picked up for return.
pickup_date
Dict
False
The scheduled date and time for pickup of the returned item. Includes date and hour_range (start and end times). { "date": "2024-01-01", "hour_range": { "start": "09:00", "end": "12:00" } }
quantity
Integer
False
The number of items to be canceled (should not exceed the quantity ordered).
description
String
False
An optional description or message explaining the reason for cancellation.
iban
String
False
The IBAN number for the refund (if applicable).
holder_name
String
False
The name of the account holder for refunding (if applicable).
fully_refund_as_loyalty_money
Boolean
False
Indicates whether the refund should be processed as loyalty money.
Request Body
Example Request
Example Response (200 OK)
Example Response (406 Not Acceptable)
If the pickup_address is not provided:
Example Response (400 Bad Request)
If the quantity is provided and is greater than the available quantity of the order item:
Last updated
Was this helpful?

