Skip to content

All limits with used and available amounts​

GET
/billing/limits

Every limit of the account — set by Netts and your own — with used and available amounts, and how much each product can still spend. Requires billing.read.

Authorizations​

ApiKeyAuth

API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.

Type
API Key (header: X-API-KEY)

Parameters​

Header Parameters

X-Netts-Billing-Format

The response format. contract-v1 — every amount carries its currency and every rate names its pair. legacy — the original format, unchanged. Without the header the format depends on your contract: a contract with amounts in its own currency gets contract-v1, and legacy is refused with 406 billing_format_not_available; an account set up on postpaid before contract-v1 gets legacy, and contract-v1 is enabled for it per account, otherwise 403 billing_format_not_enabled. Any other value — 400 unsupported_billing_format, before anything is changed. The header changes only how the response is written: no amount, permission or IP check changes.

Type
string
Valid values
"legacy""contract-v1"

Responses​

Limits and available amounts per product.

application/json
JSON
{
  
"success": true,
  
"data": {
  
  
"limits": [
  
  
  
{
  
  
  
  
"id": 0,
  
  
  
  
"scope": "string",
  
  
  
  
"origin": "string",
  
  
  
  
"editable": true,
  
  
  
  
"canDisable": true,
  
  
  
  
"period": "string",
  
  
  
  
"productCode": "energy_5m",
  
  
  
  
"apiKeyId": 0,
  
  
  
  
"enabled": true,
  
  
  
  
"revision": 0,
  
  
  
  
"limit": {
  
  
  
  
  
"unit": "string",
  
  
  
  
  
"value": "30000.000000"
  
  
  
  
},
  
  
  
  
"equivalent": {
  
  
  
  
  
"unit": "string",
  
  
  
  
  
"value": "30000.000000"
  
  
  
  
},
  
  
  
  
"used": {
  
  
  
  
  
"unit": "string",
  
  
  
  
  
"value": "30000.000000"
  
  
  
  
},
  
  
  
  
"available": {
  
  
  
  
  
"unit": "string",
  
  
  
  
  
"value": "30000.000000"
  
  
  
  
},
  
  
  
  
"creditApplied": {
  
  
  
  
  
"unit": "string",
  
  
  
  
  
"value": "30000.000000"
  
  
  
  
},
  
  
  
  
"maxPerOrder": {
  
  
  
  
  
"unit": "string",
  
  
  
  
  
"value": "30000.000000"
  
  
  
  
},
  
  
  
  
"status": "string",
  
  
  
  
"periodStart": "string",
  
  
  
  
"periodEnd": "string",
  
  
  
  
"cappedBy": 0
  
  
  
}
  
  
],
  
  
"products": {
  
  
  
"additionalProperties": {
  
  
  
  
"unit": "string",
  
  
  
  
"spendable": "string",
  
  
  
  
"limitingLimitIds": [
  
  
  
  
  
0
  
  
  
  
],
  
  
  
  
"maxPerOrder": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
},
  
  
"unit": "string",
  
  
"asOf": "string",
  
  
"checkedApiKeyId": 0,
  
  
"valuationStatus": "string",
  
  
"creditUsdc": "string",
  
  
"fx": {
  
  
  
"usdPerTrx": "0.33084276",
  
  
  
"at": "string"
  
  
},
  
  
"fxStatus": "string"
  
},
  
"timestamp": "string"
}

Playground​

Authorization
Headers

Samples​

Powered by VitePress OpenAPI