Create a new invoice. Returns the invoice in OPEN status.
Pass an Idempotency-Key header (UUID) to safely retry failed requests.
If the same key is sent twice, the API returns the original response.
Merchant API key (sk_m_*). Used for invoice management, store configuration,
and viewing merchant data.
Authorization: Bearer sk_m_abc123def456...Client-generated key for idempotent requests (UUID v4 required if provided)
10 - 64"550e8400-e29b-41d4-a716-446655440000"
Amount in USDC minor units (6 decimals).
| Human Readable | API Value |
|---|---|
| $1.00 | 1000000 |
| $0.01 | 10000 |
| $100.00 | 100000000 |
| $10,000.00 (max) | 10000000000 |
1 <= x <= 100000000001000000
Human-readable invoice description
500"Premium API access"
Custom key-value data (max 1KB)
{
"orderId": "ORD-123",
"sku": "premium-api"
}If true, description and metadata visible in public GET
Invoice TTL in seconds (default 15 minutes)
60 <= x <= 86400Controls retry behavior for delivery.
| Type | Retry Safe? | Example |
|---|---|---|
redeliverable | Yes | Files, articles, downloads |
consumable | No | API credits, subscriptions |
redeliverable, consumable Time window for retrying delivery (redeliverable only)
60 <= x <= 31536000Max delivery retries (redeliverable only)
1 <= x <= 1000Invoice created
UUID v4 identifier
"904e9f44-a5a3-4e07-94c9-9c425d6bbe64"
UUID v4 identifier
"904e9f44-a5a3-4e07-94c9-9c425d6bbe64"
Amount in USDC minor units (6 decimals).
| Human Readable | API Value |
|---|---|
| $1.00 | 1000000 |
| $0.01 | 10000 |
| $100.00 | 100000000 |
| $10,000.00 (max) | 10000000000 |
1 <= x <= 100000000001000000
Currency code. Currently only USDC is supported.
USDC "USDC"
Invoice lifecycle status.
OPEN ──[pay]──> PAYING ──[confirm]──> PAID
│ ▲
│ │
└────[fails]─────┘ (rolls back to OPEN)
OPEN ──[cancel]──> CANCELED
OPEN ──[expires]──> EXPIREDOPEN, PAYING, PAID, EXPIRED, CANCELED ISO 8601 timestamp in UTC
"2026-02-02T12:00:00.000Z"
ISO 8601 timestamp in UTC
"2026-02-02T12:00:00.000Z"
Controls retry behavior for delivery.
| Type | Retry Safe? | Example |
|---|---|---|
redeliverable | Yes | Files, articles, downloads |
consumable | No | API credits, subscriptions |
redeliverable, consumable