Skip to main content
GET
/
api
/
v1
/
invoices
/
{id}
curl https://api.settlx.io/api/v1/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer pk_live_your_api_key"
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "merchantId": "f9e8d7c6-b5a4-3210-9876-543210fedcba",
    "amount": "99.99",
    "currency": "USD",
    "status": "confirmed",
    "description": "Order #1234",
    "expiresAt": "2024-01-15T10:30:00.000Z",
    "webhookUrl": "https://yoursite.com/webhooks/settlx",
    "paymentUrl": "https://api.settlx.io/checkout/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "addresses": [
      {
        "currency": "USDT",
        "chain": "ethereum",
        "address": "0xABCDEF1234567890abcdef1234567890ABCDEF12",
        "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
      }
    ],
    "createdAt": "2024-01-15T10:00:00.000Z",
    "updatedAt": "2024-01-15T10:03:00.000Z"
  }
}

Get Invoice

Retrieves a single invoice by its ID. The response includes any payment addresses that have been generated for this invoice (i.e., chains/tokens the customer has selected on the checkout page).

Path Parameters

id
string
required
UUID of the invoice.

Response

data
object
curl https://api.settlx.io/api/v1/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer pk_live_your_api_key"
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "merchantId": "f9e8d7c6-b5a4-3210-9876-543210fedcba",
    "amount": "99.99",
    "currency": "USD",
    "status": "confirmed",
    "description": "Order #1234",
    "expiresAt": "2024-01-15T10:30:00.000Z",
    "webhookUrl": "https://yoursite.com/webhooks/settlx",
    "paymentUrl": "https://api.settlx.io/checkout/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "addresses": [
      {
        "currency": "USDT",
        "chain": "ethereum",
        "address": "0xABCDEF1234567890abcdef1234567890ABCDEF12",
        "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
      }
    ],
    "createdAt": "2024-01-15T10:00:00.000Z",
    "updatedAt": "2024-01-15T10:03:00.000Z"
  }
}