Skip to content

Update a plan's device limit, pricing, or active state

PATCH
/v1/plans/{id}
curl --request PATCH \
--url https://api.extport.dev/api/v1/plans/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "active": true, "maxActivations": 1, "currency": "example", "amount": 1, "stripeProductId": "example", "stripePriceId": "example" }'

Updates active status, maxActivations, and/or pricing. When amount changes, creates a new Stripe Price on your connected Stripe account and archives the previous one.

id
required
string
Media typeapplication/json
object
active
boolean
maxActivations
integer
>= 1 <= 100
currency
string
/^[a-z]{3}$/
amount
integer
>= 50 <= 99999999
stripeProductId
Any of:
string
>= 1 characters <= 128 characters
stripePriceId
Any of:
string
>= 1 characters <= 128 characters
Examplegenerated
{
"active": true,
"maxActivations": 1,
"currency": "example",
"amount": 1,
"stripeProductId": "example",
"stripePriceId": "example"
}

OK

Invalid input or Stripe account not connected

Not found

Stripe API unavailable