Creates a new payment invoice and returns network-specific deposit addresses. If externalRef is provided and an invoice already exists with that reference, the existing invoice is returned (idempotent).
Your secret API key (sk_live_*). Keep this server-side only.
Amount to collect in the specified token
"100.00"
Token symbol to accept (e.g. USDC, USDT)
"USDC"
Target settlement network ID
"ethereum"
Your wallet address to receive funds after fee deduction
"0xYourWallet..."
Your order/reference ID. Acts as an idempotency key — submitting the same externalRef returns the existing invoice.
"order_8675309"
Invoice TTL in seconds (default: 3600)
3600
Arbitrary key-value data attached to the invoice
{
"userId": "user_123",
"product": "Pro Plan"
}Existing invoice returned (idempotent — same externalRef already exists)
Unique invoice ID
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Owning merchant ID
"m1b2c3d4-e5f6-7890-abcd-ef1234567890"
Your own order/reference ID (idempotency key)
"order_8675309"
SwiftPay short reference code
"SP-2024-001"
Network-specific deposit addresses
Your settlement wallet address
"0xYourWallet..."
Token contract address on the target network
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Token symbol
"USDC"
Primary network for settlement
"ethereum"
Total amount expected from the payer
"100.00"
Amount still awaiting payment
"0.00"
Amount received on-chain so far
"100.00"
SwiftPay 1% platform fee
"1.00"
Net amount forwarded to your wallet after fee
"99.00"
Amount received above what was expected
"0.00"
Current invoice status
pending, partial, paid, completed "completed"
Invoice expiry timestamp
"2024-03-12T12:00:00Z"
"2024-03-11T10:00:00Z"
Timestamp when full payment was detected
"2024-03-11T10:05:00Z"
Timestamp when funds were forwarded to merchant
"2024-03-11T10:06:00Z"
Arbitrary key-value metadata you attached at creation
{
"userId": "user_123",
"product": "Pro Plan"
}On-chain transactions associated with this invoice