πOrders
This API is available for versions v.2.62.11 and later as of 2024-10-04.
Best Practices
When performing system integration, linking order data to customer (Contact) records is crucial. The following are recommended integration workflow steps:
Find or create customer record
Search for an existing customer record based on purchaser criteria (such as email, phone number, etc.).
If no matching customer record exists, create a new customer record.
Obtain the customer's unique identifier (
contact_id).
Create or update order data
Use the order number (
order_number) and customer ID (contact_id) to create a new order or update an existing order.Ensure each order is correctly associated with the corresponding customer; this helps improve management efficiency and maintain data consistency.
Following the steps above can effectively optimize the API integration process and ensure accurate linking between orders and customer data.
Search Orders
Request Method: GET
Endpoint: /api/v1/contact-order
Description: Search for orders that match the specified conditions.
Curl Example
curl -X GET \
-H "Content-Type: application/json" \
'{
"order_number": "ORD202309260001"
}' \
https://{API_HOST}/api/v1/contact-orderURL Parameters
Parameter Name
Required
Default Value
Type
Description
contact_id
No
NULL
Number
Customer system identifier, for example 5263
order_number
No
NULL
String
Order number, for example O412554
order_created_at__start
No
NULL
String
Order creation start time, which may be entered manually by staff or written by a third-party e-commerce/external system via a synchronization mechanism, for example 2025-11-01
order_created_at__end
No
NULL
String
Order creation end time, which may be entered manually by staff or written by a third-party e-commerce/external system via a synchronization mechanism, for example 2025-11-01
Response Structure
Response Field Descriptions
Field Name
Type
Description
data
Array of objects
Array of sales order data
meta
Object
Pagination-related metadata
links
Object
Pagination-related links
Get single order
Request Method: GET
Endpoint: /api/v1/contact-order/{contact-order}
Description: Retrieve the details of a single order by order ID.
Curl Example
URL Parameters
Parameter Name
Required
Default Value
Type
Description
id
Yes
NULL
Number
The unique identifier of the order
Response Structure
Response Field Descriptions
Field Name
Type
Description
data
Object
Single order data
data.id
Number
Order ID
data.order_source
String
Order source
data.order_number
String
Order number
data.contact_id
Number
Associated customer's unique identifier
...
...
Other order-related fields
Create Order
Request Method: POST
Endpoint: /api/v1/contact-order
Description: Create a new order record.
Curl Example
Form Data
Field Name
Required
Default Value
Type
Description
order_source
Yes
NULL
EnumValue
Order source
order_number
Yes
NULL
String
Unique identifier for the order number
contact_id
Yes
NULL
Number
Associated customer's unique identifier
order_created_at
No
NULL
DateTime
Timestamp when the order was created
order_updated_at
No
NULL
DateTime
Timestamp of the order's last update
order_name
No
NULL
String
Display name of the order
receiver_name
No
NULL
String
Recipient's name
receiver_address
No
NULL
String
Recipient's address
receiver_phone
No
NULL
String
Recipient's phone number
subtotal_price
No
NULL
Decimal
Sum of all item prices, excluding any discounts, taxes, shipping, or other additional fees
total_discount
No
NULL
Decimal
Total amount of all discounts in the order
shipping_fee
No
NULL
Decimal
Total shipping fee for the order
total_tax
No
NULL
Decimal
Total tax amount for the order
total_price
No
NULL
Decimal
Final total amount of the order
financial_status
No
NULL
EnumValue
Payment status
fulfillment_status
No
NULL
EnumValue
Fulfillment status
return_status
No
NULL
EnumValue
Return status
note
No
NULL
String
Additional notes for the order
extra_info
No
NULL
String
Supplementary information for the order
Response Structure
Update Order Data
Request Method: PUT
Endpoint: /api/v1/contact-order/{contact-order}
Description: Update the specified order's data.
Curl Example
URL Parameters
Parameter Name
Required
Default Value
Type
Description
id
Yes
NULL
Number
The unique identifier of the order
Form Data
Field Name
Required
Default Value
Type
Description
order_source
No
NULL
EnumValue
Order source
order_number
No
NULL
String
Unique identifier for the order number
contact_id
No
NULL
Number
Associated customer's unique identifier
order_created_at
No
NULL
DateTime
Timestamp when the order was created
order_updated_at
No
NULL
DateTime
Timestamp of the order's last update
order_name
No
NULL
String
Display name of the order
receiver_name
No
NULL
String
Recipient's name
receiver_address
No
NULL
String
Recipient's address
receiver_phone
No
NULL
String
Recipient's phone number
subtotal_price
No
NULL
Decimal
Sum of all item prices, excluding any discounts, taxes, shipping, or other additional fees
total_discount
No
NULL
Decimal
Total amount of all discounts in the order
shipping_fee
No
NULL
Decimal
Total shipping fee for the order
total_tax
No
NULL
Decimal
Total tax amount for the order
total_price
No
NULL
Decimal
Final total amount of the order
financial_status
No
NULL
EnumValue
Payment status
fulfillment_status
No
NULL
EnumValue
Fulfillment status
return_status
No
NULL
EnumValue
Return status
note
No
NULL
String
Additional notes for the order
extra_info
No
NULL
String
Supplementary information for the order
Response Structure
Order data model
Field Name
Type
Description
id
Number
Product ID
order_source
String
Order source
order_created_at
String
Order creation time, format is YYYY-MM-DD HH:MM:SS
order_updated_at
String
Order last update time, format is YYYY-MM-DD HH:MM:SS
order_number
String
Order number
order_name
String
Display name of the order
receiver_name
String
Recipient's name
receiver_address
String
Recipient's address
receiver_phone
String
Recipient's phone number
subtotal_price
Decimal
Sum of all item prices, excluding any discounts, taxes, shipping, or other additional fees
total_discount
Decimal
Total amount of all discounts in the order
shipping_fee
Decimal
Total shipping fee for the order
total_tax
Decimal
Total tax amount for the order
total_price
Decimal
Final total amount of the order
financial_status
String
Payment status (Enum)
fulfillment_status
String
Fulfillment status (Enum)
return_status
String
Return status (Enum)
note
String
Additional notes for the order
extra_info
String
Supplementary information for the order
contact_id
Number
Associated customer's unique identifier
items
Array
List of items in the order
created_at
String
Record creation time, format is YYYY-MM-DD HH:MM:SS
updated_at
String
Record update time, format is YYYY-MM-DD HH:MM:SS
Order Status Enumerations
financial_status(Payment Status):pending: Awaiting paymentpaid: Payment receivedcod: Cash on deliveryremitted: Remitted but not receivedfailed: Payment failedpending_refund: Pending refundpending_partial_refund: Pending partial refundpartial_refunded: Partially refundedrefunded: Refunded
fulfillment_status(Fulfillment Status):unshipped: Not shippedpreparing: Preparing for shipmentpartial: Partially shippedfulfilled: Shippedarrived: Arrived at storereceived: Receivedreturned: Returnedexpired: Overdue for pickupproblem: Shipping exception
return_status(Return Status):no_need: No return neededrequest_return: Return requestedreturning: Returningchecking: Return under reviewrefused: Return refusedreturned: Returnedpartial_return: Partial returnin_origin_cvs: Original drop-off storein_hub: Transit hubproblem: Shipping exception
Last updated