Credit Plane — PO Console

PO-only tools: top up an account's balance or change its per-action rates. Billing is per account — a site can have several independently-billed accounts sharing one deployment and one site token. Nothing here is reachable with a site token — see auth.py if that ever seems untrue.

API URL is remembered on this browser (not a secret). The PO token is never stored — re-enter it each time you reload this page.

Credit accounts

+ Create Account

Creating the first account for a new License Key mints a fresh site token (copy it into that site's CREDIT_PLANE_TOKEN). Creating an additional account under a License Key that already has one reuses that same site token — a site's .env only ever holds one.

Account Id is controlled by the PO, not the site. Click Generate, create the account, then privately share the generated id with whoever manages that site's own Dataverse — they paste it into a new cr6f2_creditplaneaccountid field on their crf61_cr6f2_ocrcreditses row. This decouples the credit plane's identity for an account from that table's own internal Dataverse GUID, so it survives a re-platform, migration, or record recreation on the site side.

Account Balance OCR Bank Stmt Storage Top Up Set Rate
Enter the PO token and click "Load Accounts & Licences".

Site licences

For apps that ASK whether they may run — Richland Transport. A site with a licence and no credit accounts appears only here. Its licence code is what gets pasted into the site (its "License Required" page, or Settings → Licence); suspending stops it within 15 minutes or at its next sign-in.

+ Add Licence

Mints the site's token and gives you its licence code. A license key that already exists keeps its token and only takes the name, domains and expiry given here.

Site Domain(s) Status Expiry Licence Code Actions
Loaded with the accounts.