Remove a subscription item
DELETE
/v1/subscription_items/:id
curl -X DELETE "https://api.summerbase.com/v1/subscription_items/:id" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/subscription_items/:id", { method: "DELETE", headers: { Authorization: "Bearer sb_...", },})const data = await response.json()Take an item off its subscription. It is marked removed, deleted: true,
rather than deleted. Only the source that owns its subscription may remove
it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Its Summerbase id, or an identity ref: a source slug and that source’s
own id for it, joined by a colon — stripe:si_123.
Example
0199a7c2-5b41-7c62-9d3e-6a1f8b2c4d97Response
Section titled “Response”Returns the deleted subscription item’s id, with deleted: true.
Media typeapplication/json
Example
{ "deleted": true, "id": "6f1c2a9e-0b7d-4c3e-9a51-2f8d4e7b1c60", "object": "subscription_item"}