v1

latestOpenAPI 3.0.02026-08-061380344.2 KB
Products > Orders > Order Items

Add an Item to an Order

Add an Item to an Order

Parameters

product_id REQUIRED

Product ID for the order item


qty REQUIRED

Positive numeric value representing the quantity of the product for this order.


price OPTIONAL

Optional numeric (float) value for a custom price. If left blank, the price will default to the product's current retail price. If is_wholesale is set to true the price will default to the products wholesale price, if applicable.


is_wholesale OPTIONAL

Optional Boolean value indicating if the system should use the product's wholesale or retail price. Defaults to false.

post/orders/{order_id}/order_items

Path parameters

order_idstring required

Headers

Content-Typestring

Request body

object required

Example request

{
  "product_id": "{{Product ID}}",
  "qty": 3
}

Response

Successful response