Overview
To validate a complete order integration flow, test orders must be created so that logistics documents can be retrieved and fulfillment trackings can be sent. These endpoints are available only in the sandbox environment and are intended for testing purposes.Sandbox Endpoints
Use the following APIs to create test orders and set them to the desired status (READY_TO_SHIP):
- Create Order - Create a test order
- Approve Order - Approve the order for processing
- Start Handling Order - Set the order as ready to be handled
READY_TO_SHIP status. This should take no more than a few minutes (usually a few seconds).
The authorization token is the same one you already use for other API calls. These endpoints use the same authentication mechanism.
Create Order
Create a test order in the sandbox environment.Request Parameters
The order ID in the website. Must be unique.
The final order value. Must be the sum of all product prices (with discounts applied) plus shipping (with discounts applied).
Order totals breakdown:
itemsGross- Total product value without discountsitemsDiscount- Total product discount valueshippingGross- Shipping value without discountsshippingDiscount- Total shipping discount value
Items in this order. Each item must have:
id- Unique ID for this shopping cart line (must match IDs in delivery items array)salesChannelSkuId- Unique SKU ID (use any SKU that has been approved)listPrice- Unit price with no discounts appliedsalePrice- Unit price with discounts appliedquantity- Quantity of items
Deliveries in this order. Always an array with one element:
listPrice- Shipping value with no discounts appliedsalePrice- Shipping value with discounts applieditems- Array of item IDs that are in this delivery (must match item IDs)
Payment information. Do not change anything other than the value:
value- Payment value (should match order value)type- Payment method type
Response
If the order is created successfully, you will receive an order JSON response that contains the fieldorderId, generated by the system. This is the value you need for the next steps (approve/start handling).
Approve Order
Approve the order for processing.Request Parameters
The order ID returned from the Create Order endpoint.
The approval date and time in ISO 8601 format. This is just informative and doesn’t go through any validation.
Start Handling Order
Set an order as ready to be handled (picked and packed).Request Parameters
The order ID returned from the Create Order endpoint.
The start handling date and time in ISO 8601 format. This is just informative and doesn’t go through any validation.
Complete Workflow
1
Create Order
Create a test order using the Create Order endpoint. Save the
orderId from the response.2
Approve Order
Approve the order using the Approve Order endpoint with the
orderId from step 1.3
Start Handling
Set the order as ready to be handled using the Start Handling Order endpoint with the same
orderId.4
Wait for Auto-progression
The order will automatically progress through several statuses (PACKED, INVOICED, READY_TO_SHIP) within a few minutes.
5
Retrieve Documents
Once the order reaches
READY_TO_SHIP status, you can retrieve order documents and proceed with fulfillment testing.After completing these steps, your test order will be ready for integration validation, allowing you to test document retrieval and tracking event updates.
Introduction
Back to: API Overview
