cURL
curl --request POST \ --url https://api.devkit4ai.com/api/v1/payments/stripe/update-subscription \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "new_price_id": "<string>", "proration_behavior": "create_prorations" } '
{ "subscription_id": "<string>", "status": "<string>", "price_id": "<string>", "message": "<string>" }
Change the user’s subscription to a different plan (upgrade or downgrade). Proration is applied by default.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Use test mode
Request to update/change subscription plan.
1
^(create_prorations|none|always_invoice)$
Successful Response
Update subscription response.