Get a subscription item
GET
/v1/subscription_items/:id
curl "https://api.summerbase.com/v1/subscription_items/:id" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/subscription_items/:id", { headers: { Authorization: "Bearer sb_...", },})const data = await response.json()Fetch one subscription item, by Summerbase id or by any source’s id for 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-6a1f8b2c4d97Query Parameters
Section titled “Query Parameters”expand[]
Array<string>
Relationships to include in the response instead of fetching separately. A dotted path expands what an expanded record can expand in turn — at most 4 deep, 10 paths a request, and never back to a record already on the path.
Response
Section titled “Response”Returns the deleted subscription item’s id, with deleted: true.
Media typeapplication/json
Example
{ "created_at": "2025-11-17T10:04:03Z", "deleted": false, "discount_amount": "0", "discount_ends_at": null, "id": "0199a7c2-5b41-7c62-9d3e-6a1f8b2c4d97", "identities": [ "stripe:si_QhT6vW8xY0zA3b" ], "interval": "month", "interval_count": 1, "net_amount": "1250.00", "object": "subscription_item", "plan_id": "0198f1a4-1d2e-7a40-9b31-5c6d7e8f9a0b", "plan_name": "Growth", "price_id": "0198f1a4-2e5f-7b80-a1c2-3d4e5f6a7b8c", "price_name": "Growth monthly", "pricing_model": "fixed", "properties": { "seat_type": "standard" }, "properties_by_source": { "backend": { "seat_type": "standard" } }, "quantity": "25", "subscription_id": "0199a7c2-5b3e-7a14-8c6d-2f9e4b7a1c05", "unit_amount": "50.00"}