Skip to content

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/payments

Request headers ​

HeaderRequiredDescription
X-API-KEYyesAPI key with the billing.read permission
X-Netts-Billing-Formatnocontract-v1 for amounts with their currency; not sent — the original format below

The request has no parameters.

Example ​

bash
curl -s 'https://netts.io/apiv2/billing/payments' \
  -H 'X-API-KEY: your-api-key'
json
{
  "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 ​

FieldDescription
network, txHashthe network and the transaction of the payment
fromAddress, toAddressyour wallet and the Netts payment address
amountUsdcthe amount received, in the currency of your contract
confirmedAtwhen the payment was credited, UTC
statusconfirmed, or reversed if the payment was cancelled
invoiceIdthe invoice the payment was made for, or null
creditUsdcmoney 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.

json
{
  "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.

FieldDescription
methodhow the payment was made: type, network and asset. evm_token — a token transfer in an EVM network; btc_native — a bitcoin transaction
referencethe 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
receivedthe amount received; amountUsdc in the original format
creditedthe amount counted against your debt. The payment is in the currency of your contract, so it equals received
creditmoney paid above your invoices; creditUsdc in the original format
otherCreditscredit 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 ​

HTTPcodeMeaning
401-1, -2the key is missing or invalid, or the IP is not whitelisted — answered by the API gateway, see response format
400unsupported_billing_formatunknown X-Netts-Billing-Format value
403billing_read_required, postpaid_requiredno permission, or no postpaid billing
403billing_format_not_enabledcontract-v1 is not enabled for your account yet
406billing_format_not_availablethe original format was requested, but your contract uses contract-v1 only