Billing
Calls are metered in credits. Buy credits in packages and top up when you run low.
List packages
GET
/v1/billing/packages Public 200 Packages
{
"status": "success",
"packages": [
{ "id": "starter", "credits": 1000, "amountLak": 50000 },
{ "id": "standard", "credits": 5000, "amountLak": 200000 },
{ "id": "bulk", "credits": 20000, "amountLak": 700000 }
]
}Start a top-up
POST
/v1/billing/topup API key Returns the payment gateway QR code / deeplink to present to the payer.
JSON body
packageId * string | The package to purchase, e.g. "standard". |
provider string | Payment provider. Default: laoqr. |
curl -X POST https://api-ocr.vanguardinitiative.com/v1/billing/topup \
-H "authorization: Bearer $TOKEN" \
-H 'content-type: application/json' \
-d '{"packageId":"standard"}'Credits are granted idempotently once the gateway confirms the payment.