Create a new sales order with items, addresses, and optional metadata.
company_id is provided, addresses are auto-populatedFor each line item, you must provide either:
product_id: The internal product IDsku: The product SKU (supports both internal SKU and alternate SKUs)Valid order statuses include: pending, shipped, fulfilled, cancelled,
awaiting_shipment, partially_shipped, on_hold, backorder,
partially_refunded, committed, processing, completed
The order total is automatically calculated as:
(sum of item quantities × unit prices) + total_tax + total_shipping
Authenticate using a bearer token. To obtain a token, contact [email protected]
ID of the channel this order belongs to
1
Unique order number identifier
255"ORD-2024-001"
Date when the order was placed (YYYY-MM-DD)
"2024-01-15"
Current status of the order
pending, shipped, fulfilled, cancelled, awaiting_shipment, partially_shipped, on_hold, backorder, partially_refunded, committed, processing, completed 255"pending"
Array of line items for the order
1Customer's username
255"customer123"
Customer's purchase order number
255"PO-2024-5678"
ID of the company (business account) to associate with this sales order.
When provided, the system will automatically populate the bill_to and ship_to
addresses from the company's information. If company_id is provided, the
bill_to and ship_to fields become optional.
123
Billing address information. Required when company_id is not provided.
When company_id is provided, this field is optional and will be populated
from the company's billing address if not specified.
Shipping address information. Required when company_id is not provided.
When company_id is provided, this field is optional and will be populated
from the company's default shipping address if not specified.
Date when the order was or will be shipped (YYYY-MM-DD)
"2024-01-20"
Date to hold the order until (YYYY-MM-DD)
"2024-01-18"
Required ship by date (YYYY-MM-DD)
"2024-01-25"
Total tax amount for the order
x >= 015.75
Total shipping cost for the order
x >= 012.5
Requested shipping service or carrier
255"FedEx Ground"
Notes from the customer
"Please handle with care - fragile items"
Internal notes for order processing
"Rush order - expedite processing"
Custom field values for the sales order
{
"Customer PO": "PO-98765",
"Priority Level": "High",
"Package Count": 3
}Tags to associate with the sales order
255["urgent", "vip-customer", "rush-order"]Sales order created successfully