GET /apiv2/billing/payments
Your payments for postpaid invoices, and the credit left from overpayments. You pay in the currency and network of your contract — see settlement in account. Part of postpaid billing.
Endpoint URL
GET https://netts.io/apiv2/billing/paymentsRequest 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/payments' \
-H 'X-API-KEY: your-api-key'{
"success": true,
"data": {
"payments": [
{
"id": 7,
"network": "ethereum",
"txHash": "0x8f3c5a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5e21a",
"fromAddress": "0x1111111111111111111111111111111111111111",
"toAddress": "0x2222222222222222222222222222222222222222",
"amountUsdc": "1300.000000",
"confirmedAt": "2026-10-21T09:15:00+00:00",
"status": "confirmed",
"invoiceId": 12
}
],
"creditUsdc": "49.600000"
},
"timestamp": "2026-10-21T09:20:00+00:00"
}Fields
| Field | Description |
|---|---|
network, txHash | the network and the transaction of the payment |
fromAddress, toAddress | your wallet and the Netts payment address |
amountUsdc | the amount received, in the currency of your contract |
confirmedAt | when the payment was credited, UTC |
status | confirmed, or reversed if the payment was cancelled |
invoiceId | the invoice the payment was made for, or null |
creditUsdc | money paid above your invoices, in the currency of your contract; it covers the next charges and is shown as creditApplied in limits |
A payment made for an invoice covers the charges of that invoice first, then the oldest unpaid charges; a payment without an invoice covers the oldest unpaid charges first. Payments are listed newest first; an account with no payments gets an empty list.
Response in contract-v1
With X-Netts-Billing-Format: contract-v1 the amounts are amounts with their currency, and the payment method and its transaction are grouped. This format is enabled per account.
{
"success": true,
"data": {
"payments": [
{
"id": 7,
"method": { "type": "btc_native", "network": "bitcoin", "asset": "BTC" },
"reference": {
"txid": "8f3c5a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5e21a",
"vout": 0,
"toAddress": "bc1qexampleexampleexampleexampleexample0"
},
"received": { "amount": "0.00001000", "currency": "BTC" },
"credited": { "amount": "0.00001000", "currency": "BTC" },
"confirmedAt": "2026-10-28T10:15:00+00:00",
"status": "confirmed",
"invoiceId": 1
}
],
"credit": { "amount": "0", "currency": "BTC" },
"otherCredits": []
},
"timestamp": "2026-10-28T11:20:00+00:00"
}The example uses BTC; your responses show the currency and network of your contract.
| Field | Description |
|---|---|
method | how the payment was made: type, network and asset. evm_token — a token transfer in an EVM network; btc_native — a bitcoin transaction |
reference | the transaction of the payment. evm_token: txHash, your wallet fromAddress and the Netts payment address toAddress. btc_native: txid, the output number vout and the Netts payment address toAddress |
received | the amount received; amountUsdc in the original format |
credited | the amount counted against your debt. The payment is in the currency of your contract, so it equals received |
credit | money paid above your invoices; creditUsdc in the original format |
otherCredits | credit in another currency — left from an earlier currency of your contract, never converted; usually an empty list. Sent for a contract with amounts in its own currency |
confirmedAt, status and invoiceId are as in the original format. invoiceId can also be a proforma: such a payment is an advance.
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, postpaid_required | no permission, or 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 |