A prepaid API cannot be reconciled from a bank statement alone: every euro paid becomes credit, every request consumes some, and the two live in separate logs. Effrenus does not issue automatic invoices, but it gives you what you need to request one and verify the amounts debited.
Three ledgers, one balance
payments: one record per confirmed payment — provider (Stripe or BTCPay Server), external reference, amount in euros, credits added, status.paidin normal operation;orphanif the target key no longer existed when the webhook arrived, in which case the payment is kept without credit.credit_ledger: credit entries and their reason —payment:<provider>:<reference>,promo:<CODE>,initial_credit,trial_credit,manual_adjustment. Consumption does not appear here.usage_events: one line per billed request — model, input and output tokens, cost in micro-euros, request ID, timestamp.
Hence the equation to remember: balance = sum of ledger entries − sum of usage event costs. Returning to the browser after payment credits nothing; only a signed webhook credits, once. A replayed webhook is recognised by the uniqueness constraint on (provider, reference) and does not credit twice. The prices behind these amounts are in euros on the pricing page.
Requesting an invoice
The gateway does not generate the invoice: it is issued on request. Email support@effrenus.com with the company name, billing address, intra-EU VAT number where applicable, the pack purchased and the payment reference (reference in the payments export, or the Stripe session ID / BTCPay invoice ID). VAT wording — intra-EU B2B reverse charge or French VAT — appears on the invoice.
There are three packs, all in euros: Discovery at €5 for €5 of credits, Essential at €50 for €55 of credits (+10%), Volume at €200 for €230 of credits (+15%). The amount paid and the amount credited therefore differ on the last two: a €50 invoice credits €55, and the ledger is authoritative for the balance.
For consumers, the 14-day right of withdrawal applies to distance contracts, unless immediate performance was requested and the corresponding waiver given: unused credits can be refunded within that period; consumed credits are not, without prejudice to mandatory rights; businesses are excluded. The FAQ restates these rules.
Exporting: JSON for the client, CSV for operations
A client does not need admin rights: its key is enough, in the Authorization header.
curl -s https://api.effrenus.com/v1/me \
-H "Authorization: Bearer $EF_KEY"
curl -s https://api.effrenus.com/v1/me/export \
-H "Authorization: Bearer $EF_KEY" > account-export.json
GET /v1/me returns the balance, the 30-day usage summary and the last 20 requests. GET /v1/me/export produces the complete file — account, usage since key creation, up to 10,000 usage events and as many payments, with amount_eur and credits_eur — and serves as the GDPR portability export.
The operator of a self-hosted instance also has two CSV exports, protected by the admin token.
ADMIN=https://api.your-domain.tld
curl -s "$ADMIN/admin/export/usage.csv?since=2026-10-01&until=2026-11-01" \
-H "x-admin-token: $EF_ADMIN_TOKEN" -o usage-october.csv
curl -s "$ADMIN/admin/export/payments.csv?since=2026-10-01&until=2026-11-01" \
-H "x-admin-token: $EF_ADMIN_TOKEN" -o payments-october.csv
The since and until bounds use ISO 8601; without parameters, the export covers 30 days, upper bound excluded. The usage export has date, key, name, email, model, input_tokens, output_tokens, cost_eur, request_id; the payments one has date, provider, reference, key, email, amount_eur, credits_eur, status. Comma separator, UTF-8 with BOM for accents in Excel, euro amounts to six decimal places; a cell starting with =, +, - or @ is prefixed with an apostrophe against formula injection. An export is capped at 50,000 rows: beyond that, split the period by moving since to the timestamp of the last row received.
Reconciling amounts, then bounding what remains
Four checks are enough for a monthly close.
- Receipts: add up
amount_euronpaidrows and compare with the Stripe or BTCPay payout.orphanrows credited nobody: refund or manually re-credit. - Paid versus credited: the sum of
credits_eurexceeds that ofamount_eurby the pack bonus and promo codes. For cash, useamount_eur; for balance, usecredits_eur. - Credits versus balance: the sum of ledger entries minus usage costs must give the key balance back. A gap signals a manual adjustment, an unreconciled promo code or a missing debit.
- Usage versus consumption: the sum of
cost_eurmust equal credits consumed. A request refused before generation (401, 402, 429) writes no usage line; a disconnection mid-stream leaves a line computed on the tokens already produced — the only partial billing in the system.
What remains is what the export will never tell you. Usage events are purged after 396 days, i.e. 13 months; payments and ledger are kept for ten years under accounting obligations: beyond that, a fiscal year is reconstructed from invoices, not from request detail. The JSON export stops at 10,000 events and 10,000 payments, enough for an individual account, not for a long history. Finally, the gateway sees no card data and does not know your statement label: bank reconciliation goes through the provider reference.
For the routes, see the documentation; for installation and admin exports, see the deployment guide.