π¦Order items
This API is available for versions v.2.62.11 and later after 2024-10-04.
Best practices
During integration, an order item (contact-order-item) must specify the product (Product) and the order it belongs to (order). The integration steps are as follows:
Find the corresponding order ID (contact_order_id) based on the order number (order_number).
Obtain the product ID (product_id) based on the product SKU (sku) or other information.
Use the order number (order_number) and product ID (product_id) to create or update the order item.
These steps ensure each order item is correctly associated with the corresponding product and order, improving the accuracy and efficiency of data integration.
Search
GET https://{API_DOMAIN}/api/v1/contact-order/{contact_order}/contact-order-itemcurl -X GET
-H "Content-Type: application/json"
'{"name": "vip"}'
https://{API_HOST}/api/v1/{contact_order}/contact-order-itemResponse
PROPERTY
TYPE
DESCRIPTION
data
Array of objects
Array of sales order item data
meta
Object
Pagination data
Get single record
URL Parameters
PARAMETER
REQUIRED
DEFAULT
TYPE
DESCRIPTION
id
true
NULL
Number
Contact tag system ID
Response
PROPERTY
TYPE
DESCRIPTION
data
Object
Sales order item data
Create
Form Data
product_id
true
NULL
Integer
Unique identifier of the associated product
quantity
true
NULL
Integer
Quantity of the purchased product
total_price_before_discounts
false
NULL
Decimal(10,2)
Total item price before discounts are applied
total_discount
false
NULL
Decimal(10,2)
Total discount amount applied to the item
total_price_after_discounts
false
NULL
Decimal(10,2)
Final item price after discounts are applied
Response
Update
Last updated