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

Documentation Index

Fetch the complete documentation index at: https://docs.revstack.dev/llms.txt

Use this file to discover all available pages before exploring further.

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.