Skip to content

GET /apiv2/billing/limits ​

Every limit on your postpaid account — the credit limit set by Netts and your own limits — with how much of each is used and left, and how much each product can still spend. Part of postpaid billing.

Endpoint URL ​

GET https://netts.io/apiv2/billing/limits

Request headers ​

HeaderRequiredDescription
X-API-KEYyesAPI key with the billing.read permission
X-Real-IPyesAn address from the key whitelist

The request has no parameters.

Example ​

bash
curl -s 'https://netts.io/apiv2/billing/limits' \
  -H 'X-API-KEY: your-api-key' \
  -H 'X-Real-IP: 203.0.113.10'
json
{
  "success": true,
  "data": {
    "limits": [
      {
        "id": 1,
        "scope": "account",
        "origin": "netts",
        "editable": false,
        "canDisable": false,
        "period": "outstanding",
        "productCode": null,
        "apiKeyId": null,
        "enabled": true,
        "revision": 3,
        "limit": { "unit": "USD", "value": "30000.000000" },
        "equivalent": { "unit": "TRX", "value": "90677.230000" },
        "used": { "unit": "USD", "value": "1250.400000" },
        "available": { "unit": "USD", "value": "28749.600000" },
        "creditApplied": { "unit": "USD", "value": "0" },
        "status": "ok",
        "periodStart": null,
        "periodEnd": null,
        "cappedBy": null
      },
      {
        "id": 5,
        "scope": "account",
        "origin": "client",
        "editable": true,
        "canDisable": true,
        "period": "day",
        "productCode": "energy_5m",
        "apiKeyId": null,
        "enabled": true,
        "revision": 1,
        "limit": { "unit": "USD", "value": "200.000000" },
        "equivalent": { "unit": "TRX", "value": "604.514867" },
        "used": { "unit": "USD", "value": "35.200000" },
        "available": { "unit": "USD", "value": "164.800000" },
        "creditApplied": null,
        "status": "ok",
        "periodStart": "2026-10-19T00:00:00+00:00",
        "periodEnd": "2026-10-20T00:00:00+00:00",
        "cappedBy": null
      }
    ],
    "products": {
      "energy_1h": { "unit": "USD", "spendable": "28749.600000", "limitingLimitIds": [1], "maxPerOrder": null, "status": "ok" },
      "energy_5m": { "unit": "USD", "spendable": "164.800000", "limitingLimitIds": [5], "maxPerOrder": null, "status": "ok" }
    },
    "unit": "USD",
    "asOf": "2026-10-19T20:24:26.525887+00:00",
    "checkedApiKeyId": 6,
    "valuationStatus": "ok",
    "creditUsdc": "0",
    "fx": { "usdPerTrx": "0.33084276", "at": "2026-10-19T20:24:23.449930+00:00" },
    "fxStatus": "ok"
  },
  "timestamp": "2026-10-19T20:24:26+00:00"
}

A limit ​

FieldDescription
idthe limit number — use it to change, switch off or on your own limit
scopeaccount — applies to the whole account; key — applies to one API key (apiKeyId)
originnetts — set by Netts, read-only; client — your own limit
editable, canDisablewhether you can change or switch off this limit
periodoutstanding, day, week or order — see what is counted
productCodethe product the limit applies to, null for an overall limit
enabledfalse — the limit is switched off and does not apply
revisionthe current version; send it as expectedRevision when you change the limit
limit, equivalentthe limit and, for reference, its value in the other currency at the current rate
used, availablehow much is taken and left; null for a switched-off limit and for order limits
creditAppliedcredit from overpayments counted in an outstanding limit
maxPerOrderfor an order limit: the largest single order
periodStart, periodEndfor day and week: the current UTC period
cappedByyour limit is higher than the Netts limit after Netts lowered it: the Netts limit id that applies instead
statusok, limit_reached, disabled, other_key (a limit of another of your keys), or unavailable

Products ​

products shows, for every product, how much the next order of that product can use: spendable is the smallest amount left among all limits that apply, and limitingLimitIds names the limits that set it. maxPerOrder is the largest single order if an order limit applies.

Key limits are counted for the key that made this request — checkedApiKeyId. If the numbers cannot be calculated right now, valuationStatus is unavailable: the limits are still listed, used, available and spendable are null. They are never shown as zero or unlimited in that case.

Errors ​

HTTPcodeMeaning
401-1, -2the key is missing or invalid, or the IP is not whitelisted — answered by the API gateway, see response format
403billing_read_requiredthe key has no billing.read permission
403postpaid_requiredthe account has no postpaid billing

All codes are listed in postpaid billing.