CartInput
An array of cart items.
ID of the product. Preferred over URL since this is always stable. Either product_id
or product_url
must be provided.
URL of the product. Either product_id
or product_url
must be provided.
If this product has a variable price (e.g. a flex gift or a gift card), then this must be provided. A positive integer represented in cents.
An array of variant names (not IDs). When using the Direct Send send method with a product with variants, the variants must be provided. The length of the array must be equal to variants_num_selectable
on the product, and the variants must come from the names of the varaints
on the product. For example, for a t-shirt with variants_num_selectable
= 1 and variants S, M, L, pass ['M']. Or, for a box of cookies with variants_num_selectable
= 2 and variants Sugar, Caramel, Chocolate, pass ['Sugar', 'Chocolate'].
{
"items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_url": "<string>",
"quantity": 123,
"variable_price": 123,
"variants": [
"<string>"
]
}
]
}