Change the application's plan.
POST
Secret API key operationId: change_plan/v1/billing/subscription Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Request body · required
planstring required
Responses
200 Plan changed
{
"data": {
"plan": "string",
"status": "string"
},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 422 Unknown plan
Request
curl -X POST "http://localhost:8080/v1/billing/subscription" \
-H "Content-Type: application/json" \
-d '{
"plan": "pro"
}'Try it
live requestPOST
http://localhost:8080/v1/billing/subscription