Order
What is the Order Service?
Core Entities
Order
Parcel
Quote
Order Lifecycle
Order Statuses
Parcel Statuses
Fulfillment Methods
Refund Scenarios
Sales Channels
Key API Operations
Orders
Parcels
Quotes
Authentication
Response Format
JWT authentication token. Obtain from the authentication service.
Order data from external channel
Channel name (e.g., UBER, TAKEALOT)
Channel-specific order ID
Original request from channel
Channel order created successfully
trueChannel order successfully created!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Basket ID to convert to order
Payment transaction details
Sales channel identifier
Basket signature for validation
Whether this is a supplier order
Order created successfully
trueOrder successfully created!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Customer quote ID to convert to order
Payment transaction details
Order created successfully from quote
trueOrder successfully created!Validation error or bad request
Authentication required or invalid token
Internal server error
JWT authentication token. Obtain from the authentication service.
Order MongoDB ObjectId
Order reference code (e.g., ORD-2024-001234)
Associated basket ID
Order retrieved successfully
trueSuccessfully retrieved order!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
The extra data value to search for
Order retrieved successfully
trueSuccessfully retrieved order by extra data!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Filter by user ID
Filter by single branch ID
Comma-separated list of branch IDs
Filter by branch group ID
Search orders by code, user name, etc.
Filter by order status
Filter by fulfillment method
Filter by sales channel
Page number for pagination (1-based)
1Number of items per page
20Field to sort by
Sort direction
descPossible values: Filter orders created after this date
Filter orders created before this date
Filter orders modified after this date
Filter orders modified before this date
Minimum order total
Maximum order total
Orders retrieved successfully
trueSuccessfully retrieved 25 orders!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Export file format
csvPossible values: Filter by user ID
Filter by branch ID
Filter by order status
Filter orders created after this date
Filter orders created before this date
File downloaded successfully
Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Orders corrected successfully
trueSuccessfully corrected orders!Validation error or bad request
JWT authentication token. Obtain from the authentication service.
Order ID to cancel
Reason for cancellation
User ID initiating cancellation
Type of refund to issue
Refund scenario (S1-S5)
List of product IDs to cancel (partial cancellation)
Order cancelled successfully
trueSuccessfully cancelled order!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Order ID to refund
Type of refund to issue
Refund scenario
List of product IDs to refund (partial refund)
Order refunded successfully
trueSuccessfully cancelled order!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
User ID creating the parcel
Associated order ID
Parcel method (required)
Parcel created successfully
trueParcel successfully created!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Parcel MongoDB ObjectId
Parcel reference code
Parcel retrieved successfully
trueSuccessfully retrieved parcel!Validation error or bad request
JWT authentication token. Obtain from the authentication service.
Whether this is a subscription quote
List of product IDs to include
Quote created successfully
trueQuote successfully created!Validation error or bad request
Authentication required or invalid token
JWT authentication token. Obtain from the authentication service.
Customer quote created successfully
trueCustomer Quote successfully created!Validation error or bad request
Authentication required or invalid token
Internal server error
JWT authentication token. Obtain from the authentication service.
Quote ID
User ID
Must be true for flattened format
Quote retrieved successfully
trueQuote successfully retrievedValidation error or bad request
Authentication required or invalid token
Resource not found
JWT authentication token. Obtain from the authentication service.
Customer quote ID
Customer quote retrieved successfully
trueSuccessfully retrieved customer quote!Validation error or bad request
Authentication required or invalid token
Internal server error
Last updated