Skip to main content

Endpoint

GET /api/v1/invoices/:id
Requires authentication. See Authentication.

Path parameters

id
string
required
The invoice UUID returned when the invoice was created.

Response

Returns 200 OK with the invoice object. The addresses array contains every deposit address that has been generated for this invoice so far. If the customer has not yet selected a chain and token on the checkout page, addresses will be empty.
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "merchantId": "9f8e7d6c-5b4a-3c2d-1e0f-ba9876543210",
    "amount": "49.99",
    "currency": "USD",
    "status": "pending",
    "description": "Pro Plan - Monthly",
    "expiresAt": "2026-04-12T11:00:00.000Z",
    "webhookUrl": "https://your-backend.com/webhooks/settlx",
    "paymentUrl": "https://api.settlx.io/checkout/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "addresses": [
      {
        "currency": "USDT",
        "chain": "polygon",
        "address": "0xAbCd1234...",
        "qrCode": "data:image/png;base64,iVBORw0KGgo..."
      }
    ],
    "createdAt": "2026-04-12T10:00:00.000Z",
    "updatedAt": "2026-04-12T10:00:00.000Z"
  }
}

Response fields

FieldTypeDescription
idstring (UUID)Unique invoice identifier
merchantIdstring (UUID)Your merchant account ID
amountstringInvoice amount
currencystringInvoice currency
statusstringCurrent invoice status. See Invoice statuses
descriptionstring | nullDescription passed at creation
expiresAtstring | nullISO 8601 expiry timestamp, or null if no expiry
webhookUrlstring | nullWebhook URL for this invoice
paymentUrlstringHosted checkout URL
addressesarrayDeposit addresses generated for this invoice. Empty until the customer selects a chain and token
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last-updated timestamp

Address object

FieldTypeDescription
currencystringToken the customer is paying with (e.g. USDT, ETH)
chainstringChain the address is on (e.g. polygon, ethereum)
addressstringOn-chain deposit address
qrCodestringBase64-encoded PNG QR code for the address

Invoice statuses

StatusDescription
pendingAwaiting payment
partialAn underpayment was received — less than the invoiced amount
confirmedFull payment confirmed on-chain — settlement in progress
settledFunds are in your wallet — terminal
expiredInvoice expired before full payment was received — terminal
failedPayment processing failed — terminal

Code examples

curl https://api.settlx.io/api/v1/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer pgk_live_xxxxxxxx"

Errors

StatusMessageReason
401Missing or invalid Authorization headerAPI key not provided or malformed
401Invalid API keyKey not found or has been revoked
404Invoice not foundNo invoice with that ID exists under your account