Overview / System / Change plan

Change plan

post https://api.flactrum.com/v1/billing/subscribe

Issues an invoice rather than switching immediately; the plan changes when the invoice is paid. Upgrading without payment would be a free upgrade.

Required scope billing.write
Success status201

Request body

FieldTypeDescription
plan_id * string —
billing_period * string —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/billing/subscribe' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "plan_id": "01m43mzt3srb2em7m3css21g7a",
    "billing_period": "monthly"
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43mzt63mypmm3jckfqmycsf",
        "number": "FTR-2026-0001",
        "plan_id": "01m43mzt3srb2em7m3css21g7a",
        "billing_period": "monthly",
        "net_amount": 1490,
        "tax_amount": 298,
        "total_amount": 1788,
        "currency": "TRY",
        "status": "pending",
        "due_at": "2026-10-11T14:27:19+00:00",
        "paid_at": null,
        "created_at": "2026-10-04T14:27:19+00:00"
    }
}