Skip to content

Postpaid account: credit limit, debt and available​

GET
/billing/account

The credit limit set by Netts, your own overall limit, what you owe and how much you can spend now. Requires the billing.read key permission and a postpaid account.

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​

The postpaid account.

application/json
JSON
{
  
"success": true,
  
"data": {
  
  
"mode": "string",
  
  
"adminLimit": {
  
  
},
  
  
"clientLimit": {
  
  
},
  
  
"effectiveAvailable": {
  
  
  
"unit": "string",
  
  
  
"value": "30000.000000"
  
  
},
  
  
"pendingUnbilled": {
  
  
},
  
  
"asOf": "string",
  
  
"settlement": {
  
  
},
  
  
"limit": {
  
  
  
"unit": "string",
  
  
  
"value": "30000.000000"
  
  
},
  
  
"unpaid": {
  
  
},
  
  
"creditUsdc": "string",
  
  
"available": "string",
  
  
"availableTrxEquiv": "string",
  
  
"availableUsdEquiv": "string",
  
  
"fx": {
  
  
  
"usdPerTrx": "0.33084276",
  
  
  
"at": "string"
  
  
},
  
  
"fxStatus": "string"
  
},
  
"timestamp": "string"
}

Playground​

Authorization
Headers

Samples​

Powered by VitePress OpenAPI