GET /apiv2/billing/account
Your postpaid account at a glance: the credit limit set by Netts, your own overall limit, what you owe and how much you can still spend right now. Part of postpaid billing.
Endpoint URL
GET https://netts.io/apiv2/billing/accountRequest headers
| Header | Required | Description |
|---|---|---|
X-API-KEY | yes | API key with the billing.read permission |
X-Netts-Billing-Format | no | contract-v1 for amounts with their currency; not sent — the original format below |
The request has no parameters.
Example
curl -s 'https://netts.io/apiv2/billing/account' \
-H 'X-API-KEY: your-api-key'{
"success": true,
"data": {
"mode": "postpaid",
"adminLimit": {
"id": 1,
"origin": "netts",
"limit": { "unit": "USD", "value": "30000.000000" },
"used": { "unit": "USD", "value": "1250.400000" },
"available": { "unit": "USD", "value": "28749.600000" },
"creditApplied": { "unit": "USD", "value": "0" },
"status": "ok",
"revision": 3,
"editable": false
},
"clientLimit": {
"id": 4,
"origin": "client",
"limit": { "unit": "USD", "value": "5000.000000" },
"used": { "unit": "USD", "value": "1250.400000" },
"available": { "unit": "USD", "value": "3749.600000" },
"creditApplied": { "unit": "USD", "value": "0" },
"status": "ok",
"revision": 2,
"editable": true
},
"effectiveAvailable": { "unit": "USD", "value": "3749.600000" },
"pendingUnbilled": { "trx": "0", "count": 0 },
"asOf": "2026-10-19T20:24:26.474237+00:00",
"settlement": { "asset": "USDC", "network": "ethereum", "paymentTermsDays": 5 },
"limit": { "unit": "USD", "value": "30000.000000" },
"unpaid": { "TRX": "3778.500000", "USDC": "1250.400000" },
"creditUsdc": "0",
"available": "28749.600000",
"availableTrxEquiv": "86897.437285",
"availableUsdEquiv": "28749.600000",
"fx": { "usdPerTrx": "0.33084276", "at": "2026-10-19T20:24:23.449930+00:00" },
"fxStatus": "ok"
},
"timestamp": "2026-10-19T20:24:26+00:00"
}In this example the currency of the contract is USDC; settlement.asset shows the currency of your contract.
Response fields
| Field | Description |
|---|---|
mode | postpaid, or prepaid while postpaid billing of the account is paused |
adminLimit | the credit limit set by Netts. editable is always false |
clientLimit | your own overall limit, or null if you have not set one |
adminLimit.used / clientLimit.used | how much of the limit is taken |
adminLimit.available / clientLimit.available | how much of the limit is left |
creditApplied | your credit from overpayments that already reduces the debt in this limit |
status | ok, limit_reached, or unavailable if it cannot be calculated right now |
effectiveAvailable | what you can spend now: the smaller of the two available values |
pendingUnbilled | orders already accepted whose charge is still being recorded: their TRX total and count |
asOf | the moment the numbers were calculated |
settlement | how you pay invoices under your contract: the currency, the network and the days to pay an invoice |
limit, unpaid, creditUsdc, available | the Netts limit, the unpaid amount in TRX and in the currency of your contract, your credit, and what is left of the Netts limit |
availableTrxEquiv, availableUsdEquiv | available converted at the rate in fx; null when no rate is available |
fx | the current rate of TRX to the currency of your contract and the moment it was taken. It is an estimate for comparison, not the rate of a future order — see recorded exchange rate |
fxStatus | ok, or unavailable — then the equivalents are null, amounts are still shown |
used and available are calculated the same way an order is checked, so effectiveAvailable is what the next order can use. Product limits are shown in limits.
Response in contract-v1
The same account with X-Netts-Billing-Format: contract-v1. Every amount is an amount with its currency, the rate is an exchange rate. This format is enabled per account.
curl -s 'https://netts.io/apiv2/billing/account' \
-H 'X-API-KEY: your-api-key' \
-H 'X-Netts-Billing-Format: contract-v1'{
"success": true,
"data": {
"mode": "postpaid",
"contractCurrency": "BTC",
"paymentNetwork": "bitcoin",
"paymentTermsDays": 5,
"adminLimit": {
"id": 1,
"origin": "netts",
"limit": { "amount": "0.00020000", "currency": "BTC" },
"used": { "amount": "0.00002940", "currency": "BTC" },
"available": { "amount": "0.00017060", "currency": "BTC" },
"creditApplied": { "amount": "0", "currency": "BTC" },
"status": "ok",
"revision": 12,
"editable": false
},
"clientLimit": null,
"effectiveAvailable": { "amount": "0.00017060", "currency": "BTC" },
"pendingUnbilled": { "amount": { "amount": "0", "currency": "TRX" }, "count": 0 },
"asOf": "2026-10-23T19:26:56.790784+00:00",
"limit": { "amount": "0.00020000", "currency": "BTC" },
"unpaid": { "amount": "0.00002940", "currency": "BTC" },
"otherUnpaid": [],
"credit": { "amount": "0", "currency": "BTC" },
"otherCredits": [],
"available": { "amount": "0.00017060", "currency": "BTC" },
"trxEquivalent": { "amount": "42.048352", "currency": "TRX" },
"exchangeRate": {
"base": "TRX",
"quote": "BTC",
"rate": "0.000004057233918579",
"at": "2026-10-23T19:26:50.321789+00:00"
},
"fxStatus": "ok"
},
"timestamp": "2026-10-23T19:26:56+00:00"
}The example uses BTC; your responses show the currency of your contract.
| Field | Description |
|---|---|
mode, adminLimit, clientLimit, effectiveAvailable, asOf, fxStatus | as in the original format; inside the limits limit, used, available and creditApplied are amounts with their currency |
contractCurrency | the currency of your contract — invoices, payments and limits are in it |
paymentNetwork, paymentTermsDays | the network you pay in and the days to pay an invoice. In the original format they are in settlement |
pendingUnbilled.amount | the TRX total of accepted orders whose charge is still being recorded. It is an estimate, not your final debt, and it is already counted in used and available — do not add it again |
pendingUnbilled.count | how many such parts of orders there are, including any whose amount is not known yet |
limit | the Netts limit |
unpaid | what you owe, in the currency of your contract |
credit | your credit from overpayments |
otherUnpaid, otherCredits | debt and credit in another currency — left from an earlier currency of your contract. They are shown separately and never converted; usually empty lists. Sent for a contract with amounts in its own currency |
available | what is left of the Netts limit |
trxEquivalent | available in TRX at the rate in exchangeRate; null when no rate is available |
exchangeRate | the current rate of TRX to the currency of your contract, for comparison only — not the rate of a future order |
The original format's unpaid.TRX, creditUsdc, availableUsdEquiv and fx have no separate fields here: the amounts carry their currency, and the rate is exchangeRate.
Errors
| HTTP | code | Meaning |
|---|---|---|
| 401 | -1, -2 | the key is missing or invalid, or the IP is not whitelisted — answered by the API gateway, see response format |
| 400 | unsupported_billing_format | unknown X-Netts-Billing-Format value |
| 403 | billing_read_required | the key has no billing.read permission |
| 403 | postpaid_required | the account has no postpaid billing |
| 403 | billing_format_not_enabled | contract-v1 is not enabled for your account yet |
| 406 | billing_format_not_available | the original format was requested, but your contract uses contract-v1 only |
All codes are listed in postpaid billing.