Overview
The IgnisPayments API is a simple REST interface. You create a USDT-BEP20 payment, show the customer the returned address (or the hosted checkout), and receive a webhook when it confirms. All requests and responses are JSON.
Base URL
Amounts are always sent as strings or numbers in the coin's base units, and timestamps are ISO 8601 UTC.
Authentication
Every request is authenticated with the single API key from your dashboard (igp_live_…). Send it as a bearer token, or in an X-API-Key header.
403 EMAIL_NOT_VERIFIED. Signing up sends a verification link; you can resend it from the dashboard.curl https://ignispayments.in/api/v1/ping \ -H "Authorization: Bearer igp_live_xxx"
curl https://ignispayments.in/api/v1/ping \ -H "X-API-Key: igp_live_xxx"
{
"ok": true,
"merchant_id": "cm4x…",
"api_key": "igp_live_••••9c2c",
"currencies": 1,
"time": "2026-11-22T12:00:00.000Z"
}List currencies
Returns every asset and network you can accept.
{
"currencies": [
{"id": "USDT.BEP20", "symbol": "USDT", "network": "BNB Smart Chain",
"network_code": "BEP20", "decimals": 18, "min_confirmations": 15}
]
]
}Create a payment
Creates a new payment and reserves a fresh deposit address. Use order_id to attach your own order reference — it is echoed back in the payment and every webhook.
Request body
| Field | Type | Description |
|---|---|---|
amount required | number | Amount for the customer to pay, in the chosen currency. |
currency required | string | Only USDT (USDT.BEP20) is accepted. |
network | string | Only BEP20 (BNB Smart Chain). Optional; defaults to BEP20. |
order_id | string | Your internal order reference. Returned in webhooks. |
callback_url | string | Public HTTP(S) URL (private/internal hosts are rejected) we POST the IPN to when the status changes. |
success_url | string | Where to send the buyer after a successful payment. return_url is accepted as an alias. |
expires_in | integer | Seconds until the payment expires. Default 3600. |
{
"payment_id": "pay_9f3k2m1q",
"status": "waiting",
"address": "0xD7A4...100D1b",
"amount": "50.190000000000000000",
"currency": "USDT",
"network": "BEP20",
"amount_received": "0",
"confirmations": 0,
"order_id": "ORD-1042",
"checkout_url": "https://ignispayments.in/pay/pay_9f3k2m1q",
"expires_at": "2026-11-22T13:00:00.000Z",
"created_at": "2026-11-22T12:00:00.000Z"
}The payment object
Every payment is returned as a JSON object with the same shape, so you can use the same parser for the create response, the status endpoint and webhook bodies.
| Field | Description |
|---|---|
payment_id | Unique id, prefixed pay_. |
status | Current status (see below). |
address | Deposit address the customer pays to. |
amount | Requested amount as a decimal string. |
amount_received | Total confirmed so far. |
currency | Always USDT. |
currency_id | Full id including the network: USDT.BEP20. |
network | Always BEP20 (BNB Smart Chain). |
confirmations | On-chain confirmations seen. |
txid | Transaction hash once detected. |
checkout_url | Hosted payment page for the buyer. |
order_id | Your reference, unchanged. |
success_url | Buyer redirect target you supplied, or null. |
created_at | ISO-8601 creation timestamp. |
expires_at | When the address stops being valid. |
Payment statuses
A payment is re-read on-chain while it matters: the hosted checkout refreshes the deposit address every few seconds while the buyer has it open, and the buyer can press “check now” for an instant update. Opening your dashboard's Payments page also refreshes the newest open payments on-chain. The merchant API reports the latest status we have stored.
- waiting - address issued, no transaction seen yet.
- confirming - the exact amount arrived, collecting confirmations (the buyer sees “Processing your transaction”).
- finished - exact amount received and enough confirmations reached; safe to fulfil the order.
- partially_paid - less than the exact amount arrived, invoice still open (the buyer can send the rest).
- overpaid - more than the exact amount arrived; the merchant settles the difference with the buyer.
- underpaid - less than the exact amount arrived and the payment window has closed; the merchant returns the funds.
- expired - nothing arrived within the payment window.
Live on-chain detection covers USDT on BNB Smart Chain (BEP20) only — the single asset this gateway settles.
Get a payment
Fetch the current state of a payment by id.
curl https://ignispayments.in/api/v1/payment/pay_9f3k2m1q \ -H "Authorization: Bearer igp_live_xxx"
List payments
Returns your payments, newest first. Filter with status, order_id, limit and offset.
Balances & withdrawals
Every confirmed USDT-BEP20 deposit is consolidated automatically to the operator's payout address. Your balance is tracked in the ledger: the gross the buyer paid, minus the 10% gateway commission, minus the on-chain network fee.
Withdraw any time from Dashboard → Withdraw. Payouts are sent in USDT on BEP20 and processed manually within 24 hours; the transaction id appears in your history once it is sent.
Choose who pays the network fee on the Withdraw page — buyers can pay it on top of your price, or you can absorb it. Either way it is withheld from your balance, and the 10% gateway commission is always charged on the amount the buyer pays.
Webhooks (IPN)
Pass a callback_url when creating a payment and we POST a JSON body every time the status changes. Respond with any HTTP 2xx within 10 seconds; otherwise we retry with backoff (1m, 5m, 15m, 1h, 3h, 6h, 12h, 24h) up to 8 attempts, at-least-once.
{
"event": "payment.finished",
"payment_id": "pay_9f3k2m1q",
"order_id": "ORD-1042",
"status": "finished",
"amount": "49.990000",
"amount_received": "49.990000",
"currency": "USDT",
"network": "BEP20",
"txid": "0xabc…",
"confirmations": 15
}The event is payment.<status>, so you will receive payment.confirming, payment.partially_paid, payment.overpaid, payment.underpaid, payment.finished and payment.expired. Each request also carries X-IgnisPayments-Event and X-IgnisPayments-Delivery (a unique id for de-duplication) headers.
Verify signatures
Every webhook carries a signature header so you can be sure it came from us:
Compute HMAC-SHA256 over the rawrequest body using your webhook signing secret (dashboard → Webhooks) and compare it in constant time.
import crypto from "node:crypto"; const sig = crypto .createHmac("sha256", process.env.CRYPTOPAY_WEBHOOK_SECRET) .update(rawBody) .digest("hex"); if (`sha256=${sig}` !== header) throw new Error("bad signature");
Errors
Failures use standard HTTP status codes and a consistent body:
{
"error": {
"code": "INVALID_KEY",
"message": "Invalid API secret."
}
}| Status | Meaning |
|---|---|
400 | Validation failed — check the field. |
401 | Missing or invalid API key. |
403 | Email not verified — confirm your merchant email first. |
404 | Payment not found. |
409 | Duplicate order_id. |
429 | Rate limit exceeded. |
500 | Something broke on our side. |