Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Update a subscription

Change its name, description, items, tax or notes, from the next billing date.

POST/v1/subscriptions/{id}

Changes apply from the next billing date: nothing is prorated or billed again, and periods already billed don't change. To bill someone else, on another schedule or another way of paying, cancel it and create a new one.

Endpoint

http
POST /v1/subscriptions/{id}

Path parameters

NameTypeDescription
idstringThe subscription's ID, sub_....

Request body

NameTypeRequiredDescription
line_itemsarrayOptionalThe full list of items.
namestringOptionalA new name.

Example request

bash
curl -X POST https://api.sovgate.com/v1/subscriptions/sub_2924bc30f433418e621960a1 \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 58e76d85-4b2a-4c1d-9e3f-7a53d126298f" \  -H "Content-Type: application/json" \  -d '{  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 2    }  ]}'

Example response

json
{  "id": "sub_2924bc30f433418e621960a1",  "object": "subscription",  "livemode": false,  "customer": "cust_13ed3f69adfcfcb6289a5491",  "name": "Studio membership",  "status": "active",  "currency": "usd",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 2    }  ],  "amount": 5800,  "interval": {    "unit": "month",    "count": 1  },  "collection": "charge_automatically",  "days_until_due": null,  "start_date": "2026-11-01",  "trial_end": null,  "end_date": null,  "next_billing_date": "2026-12-01",  "cancel_at_period_end": false,  "canceled_at": null,  "paused_at": null,  "resumes_on": null,  "created": "2026-11-01T10:12:00Z"}