DELETE
Remove a component from a bundle

Authorizations

Authorization
string
header
required

A secret API key. Publishable keys cannot reach this API. A key may carry an expiry, and an expired key is refused exactly like an unknown one, with a 401 that names no reason; check the key's expires_at in the dashboard rather than inferring it from a response. When a merchant rolls a key's secret they choose a grace window of up to 3 days, and for its duration BOTH the new secret and the one it replaced authenticate, so an integration moves over on its own deploy schedule instead of at the instant the button is pressed. Move before the window closes: after it, the old secret is refused. Nothing else about this contract moves with a roll. The key keeps its id and its scopes, so the only thing an integration updates is the credential itself.

Headers

Idempotency-Key
string
required

A unique key per logical write. Replaying a request with the same key returns the first response byte for byte instead of applying the write twice.

Path Parameters

bundleId
string
required
variantId
string
required

Body

application/json

Takes no parameters, and an empty body is expected. THIS CHANGES MONEY. A bundle carries one authoritative set price and that price is allocated across whatever components exist at the time, so removing a component does NOT make the bundle cheaper: every surviving component becomes worth more per unit at the same total to the shopper. That is why it needs write_bundles:delete in addition to write_bundles. REMOVING THE LAST COMPONENT IS REFUSED with 409 last_bundle_item. The bundle would keep its price with nothing to allocate it across, stop being purchasable, and the storefront would report that as an ordinary out-of-stock, so you would go looking for a supply problem that is not there. PATCH the bundle's status to "disabled" to withdraw it from sale, which is reversible. It answers with the WHOLE bundle rather than 204, because the removal re-divides the set price and you need to see where the rest landed.

Response

Success

data
object