Skip to navigation

Add cart

Add a new cart to a store.

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.

Request

Information about a specific cart.
currency_codestringRequired

The three-letter ISO 4217 code for the currency that the cart uses.

customerobjectRequired

Information about a specific customer. For existing customers include only the id parameter in the customer object body.

idstring or integerRequired
A unique identifier for the cart.
lineslist of objectsRequired
An array of the cart's line items.
order_totaldouble or stringRequired
campaign_idstringOptional
A string that uniquely identifies the campaign for a cart.
checkout_urlstringOptional

The URL for the cart. This parameter is required for Abandoned Cart automations.

tax_totaldouble or stringOptional

Response

This endpoint returns an object.
campaign_idstringOptional
A string that uniquely identifies the campaign associated with a cart.
checkout_urlstringOptional

The URL for the cart. This parameter is required for Abandoned Cart automations.

created_atdatetimeOptionalRead-only
The date and time the cart was created in ISO 8601 format.
currency_codestringOptional

The three-letter ISO 4217 code for the currency that the cart uses.

customerobjectOptional
Information about a specific customer.
idstringOptionalRead-only
A unique identifier for the cart.
lineslist of objectsOptional
An array of the cart's line items.
order_totaldoubleOptional
The order total for the cart.
tax_totaldoubleOptional
The total tax for the cart.
updated_atdatetimeOptionalRead-only
The date and time the cart was last updated in ISO 8601 format.