Skip to main content

Unlink Product Listing

POST 

/api/subscription-offerings/:subscription_offering/product-listings/:product_listing/unlink

Unlink a product listing from the subscription offering.

Required scope: subscriptions:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Offering-only listings carry no product mapping, so unlinking REMOVES the listing entirely rather than leaving it in a both-null state that would violate the product/offering XOR constraint. Deletion runs through the model so the FBA delete guard and cache observer both fire.

Authentication: Requires Bearer token.

Returns 400 if the listing is not linked to this offering. Returns 422 if the listing cannot be deleted because it has associated orders (FBA-protected listing).

Request

Responses

OK