BizKitHub
DocsAPI ReferenceTariff/bff/tariff/seed-plans
postTariffAdmin BFF

/bff/tariff/seed-plans

Idempotently inserts/updates the four standard plans (free, startup, business, enterprise) from features/tariff/tariffCatalogue.ts. Safe to re-run after editing the catalogue. Requires internal admin.

TariffpostBffTariffSeed-plans

Parameters

No parameters required

This endpoint takes no path, query, header or body parameters.

Response schema

1 status code documented

200Success
plansobject[]Required
Each array item:
idnumberRequired

Tariff ID assigned by the database.

codestringRequired

Tariff code.

insertedbooleanRequired

True if the row was newly inserted, false if updated.

Response example

application/json
{
  "plans": [
    {
      "id": 0,
      "code": "example_code",
      "inserted": false
    }
  ]
}

Request example

POST /bff/tariff/seed-plans

post
curl -X POST "https://api.bizkithub.com/bff/tariff/seed-plans" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key