API Reference

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

https://ignispayments.in/api/v1

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.

Confirm your email first. An account must confirm its email before the API accepts requests — until then every call returns 403 EMAIL_NOT_VERIFIED. Signing up sends a verification link; you can resend it from the dashboard.
Bearer token (recommended)
curl https://ignispayments.in/api/v1/ping \
  -H "Authorization: Bearer igp_live_xxx"
X-API-Key header
curl https://ignispayments.in/api/v1/ping \
  -H "X-API-Key: igp_live_xxx"
Check that your key works — 200 OK
{
  "ok": true,
  "merchant_id": "cm4x…",
  "api_key": "igp_live_••••9c2c",
  "currencies": 1,
  "time": "2026-11-22T12:00:00.000Z"
}
Keep your API key on your server only. Never ship it to a browser or mobile app — use the hosted checkout URL for those.

List currencies

Returns every asset and network you can accept.

GET/currenciesLive
200 OK
{
  "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.

POST/paymentLive

Request body

FieldTypeDescription
amount requirednumberAmount for the customer to pay, in the chosen currency.
currency requiredstringOnly USDT (USDT.BEP20) is accepted.
networkstringOnly BEP20 (BNB Smart Chain). Optional; defaults to BEP20.
order_idstringYour internal order reference. Returned in webhooks.
callback_urlstringPublic HTTP(S) URL (private/internal hosts are rejected) we POST the IPN to when the status changes.
success_urlstringWhere to send the buyer after a successful payment. return_url is accepted as an alias.
expires_inintegerSeconds until the payment expires. Default 3600.
200 OK · payment created
{
  "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.

FieldDescription
payment_idUnique id, prefixed pay_.
statusCurrent status (see below).
addressDeposit address the customer pays to.
amountRequested amount as a decimal string.
amount_receivedTotal confirmed so far.
currencyAlways USDT.
currency_idFull id including the network: USDT.BEP20.
networkAlways BEP20 (BNB Smart Chain).
confirmationsOn-chain confirmations seen.
txidTransaction hash once detected.
checkout_urlHosted payment page for the buyer.
order_idYour reference, unchanged.
success_urlBuyer redirect target you supplied, or null.
created_atISO-8601 creation timestamp.
expires_atWhen 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.

GET/payment/{payment_id}Live
200 OK
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.

GET/paymentsLive

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.

USDT-BEP20 only. Double-check the payout address — on-chain transfers cannot be reversed.

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.

POST · your callback_url
{
  "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:

X-IgnisPayments-Signature: sha256=<hmac>

Compute HMAC-SHA256 over the rawrequest body using your webhook signing secret (dashboard → Webhooks) and compare it in constant time.

Node.js
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:

4xx / 5xx
{
  "error": {
    "code": "INVALID_KEY",
    "message": "Invalid API secret."
  }
}
StatusMeaning
400Validation failed — check the field.
401Missing or invalid API key.
403Email not verified — confirm your merchant email first.
404Payment not found.
409Duplicate order_id.
429Rate limit exceeded.
500Something broke on our side.

Ready to build?

Grab your key and try the live /ping endpoint.

Create merchant account