Billing

Generated from Depllo's own code: every route in this area, what it takes and how to call it.

Method Path What it does
GET /api/v1/billing Current subscription (free default) + the tier table.
POST /api/v1/billing/checkout POST /checkout {tier} — create a Plugipay hosted checkout session for a paid tier; the browser redirects to data.hostedUrl.

Current subscription (free default) + the tier table.

GET /api/v1/billing

GET / — current subscription (free default) + the tier table.

Example

curl -X GET "https://depllo.forjio.com/api/v1/billing" \
  -H "Authorization: Bearer sk_live_<your API key>"

POST /checkout {tier} — create a Plugipay hosted checkout session for a paid tier; the browser redirects to data.hostedUrl.

POST /api/v1/billing/checkout

POST /checkout {tier} — create a Plugipay hosted checkout session for a paid tier; the browser redirects to data.hostedUrl.

Body

Field Type Required Notes
tier free or starter or growth or business yes

Example

curl -X POST "https://depllo.forjio.com/api/v1/billing/checkout" \
  -H "Authorization: Bearer sk_live_<your API key>" \
  -H "Content-Type: application/json" \
  -d '{"tier":"free"}'