πOrders
This API is available for versions v.2.62.11 and later after 2024-10-04.
Best practices
When performing system integration, associating order data with the customer (Contact) is crucial. The following are recommended integration workflow steps:
Find or create customer data
Search for existing customer records based on buyer criteria (such as email, phone number, etc.).
If no matching customer record is found, 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 correctly corresponds to the appropriate customer; this helps improve management efficiency and maintain data consistency.
Following the above steps can effectively optimize the API integration process and ensure accurate association between orders and customer data.
Search orders
Request method: GET
Endpoint: /api/v1/contact-order
Instructions: Search for a list of matching orders according to 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 values
Type
Instructions
contact_id
No
NULL
Number
Customer system ID, for example 5263
order_number
No
NULL
String
Order number, for example O412554
Response structure
Response field descriptions
Field Name
Type
Instructions
data
Array of objects
Array of sales order data
meta
Object
Pagination-related metadata
links
Object
Pagination-related links
Get single order data
Request method: GET
Endpoint: /api/v1/contact-order/{contact-order}
Instructions: Retrieve the details of a single order by order ID.
Curl Example
URL Parameters
Parameter Name
Required
Default values
Type
Instructions
id
Yes
NULL
Number
Unique identifier of the order
Response structure
Response field descriptions
Field Name
Type
Instructions
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
Instructions: Create a new order record.
Curl Example
Form Data
Field Name
Required
Default values
Type
Instructions
order_source
Yes
NULL
EnumValue
Order source
order_number
Yes
NULL
String
The number that uniquely identifies the order
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 when the order was last updated
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
subtotal_price
No
NULL
Decimal
Sum of prices for all items, excluding any discounts, taxes, shipping fees, or other additional charges
total_discount
No
NULL
Decimal
Total amount of all discounts in the order
shipping_fee
No
NULL
Decimal
Total shipping fee amount 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}
Instructions: Update the specified order's data.
Curl Example
URL Parameters
Parameter Name
Required
Default values
Type
Instructions
id
Yes
NULL
Number
Unique identifier of the order
Form Data
Field Name
Required
Default values
Type
Instructions
order_source
No
NULL
EnumValue
Order source
order_number
No
NULL
String
The number that uniquely identifies the order
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 when the order was last updated
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
subtotal_price
No
NULL
Decimal
Sum of prices for all items, excluding any discounts, taxes, shipping fees, or other additional charges
total_discount
No
NULL
Decimal
Total amount of all discounts in the order
shipping_fee
No
NULL
Decimal
Total shipping fee amount 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
Instructions
id
Number
Product ID
order_source
String
Order source
order_created_at
String
Order creation time, formatted as YYYY-MM-DD HH:MM:SS
order_updated_at
String
Order last update time, formatted as 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
subtotal_price
Decimal
Sum of prices for all items, excluding any discounts, taxes, shipping fees, or other additional charges
total_discount
Decimal
Total amount of all discounts in the order
shipping_fee
Decimal
Total shipping fee amount 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, formatted as YYYY-MM-DD HH:MM:SS
updated_at
String
Record update time, formatted as 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: Expired / Not picked up in timeproblem: 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