Skip to navigation

Add cart line item

Add a new line item to an existing cart.

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.
cart_idstringRequired
The id for the cart.

Request

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

Response

This endpoint returns an object.
idstringOptionalRead-only
A unique identifier for the cart line item.
pricedoubleOptional
The price of a cart line item.
product_idstringOptional
A unique identifier for the product associated with the cart line item.
product_titlestringOptionalRead-only
The name of the product for the cart line item.
product_variant_idstringOptional
A unique identifier for the product variant associated with the cart line item.
product_variant_titlestringOptionalRead-only
The name of the product variant for the cart line item.
quantityintegerOptional
The quantity of a cart line item.