Skip to navigation

Add order line item

Add a new line item to an existing order.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

store_idstringRequired
The store id.
order_idstringRequired
The id for the order in a store.

Request

Information about a specific order line.
idstringRequired>=1 character
A unique identifier for the order line item.
pricedouble or stringRequired
product_idstringRequired
A unique identifier for the product associated with the order line item.
product_variant_idstringRequired
A unique identifier for the product variant associated with the order line item.
quantityintegerRequired
The quantity of an order line item.
discountdouble or stringOptional
productobjectOptional
Information about a specific product.

Response

This endpoint returns an object.
discountdoubleOptional
The total discount amount applied to a line item.
idstringOptionalRead-only
A unique identifier for an order line item.
image_urlstringOptionalRead-only
The image URL for a product.
pricedouble or stringOptional
product_idstringOptional
A unique identifier for the product associated with an order line item.
product_titlestringOptionalRead-only
The name of the product for an order line item.
product_variant_idstringOptional
A unique identifier for the product variant associated with an order line item.
product_variant_titlestringOptionalRead-only
The name of the product variant for an order line item.
quantityintegerOptional
The order line item quantity.