Bundles
The bundle object and the allowed CRUD operations on the related resource endpoint
Last updated
The bundle object and the allowed CRUD operations on the related resource endpoint
Last updated
Bundles describe a set of specific products that are being sold. A unique code identifies each bundle. The bundle name, description, and image URL are best suited for internal usage (Commerce Layer is not a CMS). Bundles are linked to manual SKU lists, inheriting the SKUs from there.
Bundles have price_amount_cents
and compare_at_amount_cents
attributes: the latter can be specified or computed as the sum of the SKUs, but is always guaranteed to be smaller than or equal to the former. Once a price is assigned to a bundle, the currency is inherited by the relationship with the associated active market. If that relationship is not specified, a currency must be assigned to the bundle.
When passing the _compute_price_amount
and _compute_compare_at_amount
trigger attributes the relationship with a specific market must be set, otherwise the API will return an error.