Skip to main content
POST
Add a line to a cart

Authorizations

Authorization
string
header
required

Server-side scoped Ignyt API key.

Headers

authorization
string | null
x-ignite-cart-token
string | null
x-ignite-app-id
string | null
origin
string | null

Path Parameters

cart_id
string
required

Body

application/json
variant_id
string
required

Catalog variant identifier from /v1/catalog reads.

Example:

"var_01J8ZK"

qty
integer
default:1

Units to add. Adding a variant already in the cart increases its quantity.

Required range: x >= 1

Response

Successful Response

A shopper cart: one market and currency, lines grouped by merchant connection.

attribution
Attribution · object
required

Referral attribution, or {} when none is recorded.

country
string
required

ISO 3166-1 alpha-2 market country.

coupon_codes
Coupon Codes · object
required

Coupon codes keyed by merchant connection_id.

currency
string
required

ISO 4217 currency for every amount in this cart.

custom_fields
Custom Fields · object
required

Custom field values, or {}.

id
string
required

Cart identifier.

merchant_groups
CartMerchantGroup · object[]
required

Cart lines grouped by merchant connection.

review_reasons
CartReviewReason · object[]
required

Changes awaiting shopper review; empty unless status is requires_review.

shipping_address
Shipping Address · object
required

Delivery address, or {} until one is set.

shopper_ref
string
required

Your non-personal shopper reference.

status
enum<string>
required

open accepts changes and quotes; requires_review needs accept-review after price or stock changes; submitted has a purchase; closed is no longer usable.

Available options:
open,
requires_review,
submitted,
closed
version
integer
required

Increases on every change; a quote is valid only for its version.