Create invoice
One request creates an invoice and returns a payment page link. Then wait for the signed webhook, or poll the invoice.
- Bearer API keys with scopes
- Idempotency-Key on invoice, payment and payout creation
- Webhooks signed with HMAC-SHA256
- Test invoices with the same key: environment=test
Invoice INV-7K2QX9PD created
Send this link to your customer — they will pick a coin and pay there.
pay.snapex.pro/3f9c…Create an invoice
curl -X POST https://snapex.pro/api/v1/merchant/invoices \
-H "Authorization: Bearer $SNAPEX_API_KEY" \
-H "Idempotency-Key: order-10482" \
-d '{"amount_usd": "49.00", "external_id": "10482",
"description": "VPS M, 1 month"}'
Response 201
{ "invoice_id": "INV-7K2QX9PD", "status": "open",
"pay_url": "https://pay.snapex.pro/3f9c…" }
Get paid
Clients pay on a hosted payment page. Orders are marked paid automatically and funds arrive in your balance in USDT.
| Invoice | Amount | Method | Status |
|---|---|---|---|
INV-7K2QX9PD |
$49.00 | USDT TRC20 | Paid |
INV-3MW8HC2T |
$12.00 | BTC | Awaiting transfer |
INV-Q4N7ZP1B |
$24.00 | not selected | Awaiting method |
POST https://example.com/snapex/webhook
Webhook-Id: 0b6f2c1e-…
Webhook-Timestamp: 1793361891
Webhook-Signature: v1=9b2e…
{ "id": "INV-7K2QX9PD",
"type": "invoice.paid",
"data": { "status": "paid", "amount_usd": "49.00",
"external_id": "10482", … } }
Merchant balance
Every incoming asset is automatically converted to USDT TRC20.
Payments
- USDT TRC20 $49.00 Credited
- BTC $12.00 Credited
- XMR $30.00 Credited
Payout
Withdraw your USDT balance from the cabinet