Reference / Billing

Change the application's plan.

POST /v1/billing/subscription
Secret API key operationId: change_plan

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Request body · required

  • plan string 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 request
POST http://localhost:8080/v1/billing/subscription

Request body

application/json