πŸ“¦Order items

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:

  1. Find the corresponding order ID (contact_order_id) based on the order number (order_number).

  2. Obtain the product ID (product_id) based on the product SKU (sku) or other information.

  3. 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.

GET https://{API_DOMAIN}/api/v1/contact-order/{contact_order}/contact-order-item
curl -X GET
    -H "Content-Type: application/json"
    '{"name": "vip"}'
    https://{API_HOST}/api/v1/{contact_order}/contact-order-item

Response

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

PARAMETER
REQUIRED
DEFAULT
TYPE
DESCRIPTION

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