Skip to main content
PATCH
/
v1
/
subscriptions
/
{id}
Update a subscription
curl --request PATCH \
  --url https://revstack.dev/v1/subscriptions/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "planId": "<string>",
  "priceId": "<string>",
  "couponId": "<string>",
  "isAutoRenew": true
}
'
null

Path Parameters

id
string
required
Example:

"sub_abc123"

Body

application/json
planId
string
priceId
string
couponId
string | null
isAutoRenew
boolean

Response

200 - application/json

Subscription updated

The response is of type unknown.