product_id
string | null
required

ID of the product. Preferred over URL since this is always stable. Either product_id or product_url must be provided.

product_url
string | null

URL of the product. Either product_id or product_url must be provided.

quantity
integer
required
variable_price
integer

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.

variants
string[]

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'].