API v1

API documentation

A small JSON-over-HTTP API. Every call returns JSON, uses your personal API key, and works with GET or POST.

Base URLhttps://gateway.blitzengine.shop/api/v1
  1. Create an account and open the dashboard.
  2. Save your Paytm Merchant ID + UPI and/or crypto addresses.
  3. Generate your API key (shown once — copy it somewhere safe).
  4. Call the endpoints below from your server.

Authentication

Send your key in the key parameter, or — better — in a header so it never ends up in logs or browser history:

X-API-Key: bz_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authorization: Bearer bz_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keep it server-side. Never put the key in a website's front-end code or a public app. Call this API from your backend or bot. You can lock a key to your server's IP in the dashboard, and regenerate it any time.

Responses, errors & limits

Success is always {"success": true, "data": {…}}. Failure is {"success": false, "error": {"code", "message"}} with a matching HTTP status.

HTTPcodeMeaning
400invalid_amount invalid_chain invalid_txid …A parameter is missing or wrong.
400paytm_not_configured crypto_not_configuredSave the details in your dashboard first.
401missing_key invalid_keyNo key, or the key is wrong or was regenerated.
403ip_not_allowed account_disabledIP not on your allow-list, or account disabled.
404order_not_found request_not_found tx_not_foundNothing with that id on your account.
409 / 422txid_used amount_mismatch wrong_address …The payment does not match the request.
429rate_limitedSlow down (default 120 requests / minute / key).
502upstream_error network_unavailablePaytm or the blockchain did not answer. Retry in a moment.

Create Paytm QR

GET/api/v1/paytm/qr

Creates a payment QR for the amount, paying to the Paytm UPI you saved. Keep the returned trn — you use it to check the payment.

ParameterTypeDescription
amount requirednumberAmount in ₹, from 1 to 100000, up to 2 decimals.
key requiredstringYour API key (or use the header).
curl -s "https://gateway.blitzengine.shop/api/v1/paytm/qr?amount=499&key=YOUR_API_KEY"

# or keep the key out of the URL:
curl -s -H "X-API-Key: YOUR_API_KEY" "https://gateway.blitzengine.shop/api/v1/paytm/qr?amount=499"
<?php
$q = http_build_query([
    'amount' => '499',
]);
$ch = curl_init('https://gateway.blitzengine.shop/api/v1/paytm/qr?' . $q);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
    CURLOPT_TIMEOUT => 20,
]);
$res = json_decode(curl_exec($ch), true);
print_r($res);
import requests

r = requests.get(
    "https://gateway.blitzengine.shop/api/v1/paytm/qr",
    params={
        "amount": "499",
    },
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=20,
)
print(r.json())
const params = new URLSearchParams({
  amount: "499",
});
const r = await fetch("https://gateway.blitzengine.shop/api/v1/paytm/qr?" + params, {
  headers: { "X-API-Key": "YOUR_API_KEY" },
});
console.log(await r.json());
200 · success
{
  "success": true,
  "data": {
    "trn": "BZ7K2M9Q4D81",
    "amount": "499.00",
    "currency": "INR",
    "status": "PENDING",
    "qr_url": "https://example.com/qr/BZ7K2M9Q4D81.png"
  }
}

Check Paytm payment

GET/api/v1/paytm/check

Looks up the payment for a trn you created. Poll every few seconds until status is not PENDING. A payment only counts as SUCCESS when the paid amount equals the order amount.

ParameterTypeDescription
trn requiredstringThe trn returned by Create QR.
key requiredstringYour API key (or use the header).
curl -s "https://gateway.blitzengine.shop/api/v1/paytm/check?trn=BZ7K2M9Q4D81&key=YOUR_API_KEY"

# or keep the key out of the URL:
curl -s -H "X-API-Key: YOUR_API_KEY" "https://gateway.blitzengine.shop/api/v1/paytm/check?trn=BZ7K2M9Q4D81"
<?php
$q = http_build_query([
    'trn' => 'BZ7K2M9Q4D81',
]);
$ch = curl_init('https://gateway.blitzengine.shop/api/v1/paytm/check?' . $q);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
    CURLOPT_TIMEOUT => 20,
]);
$res = json_decode(curl_exec($ch), true);
print_r($res);
import requests

r = requests.get(
    "https://gateway.blitzengine.shop/api/v1/paytm/check",
    params={
        "trn": "BZ7K2M9Q4D81",
    },
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=20,
)
print(r.json())
const params = new URLSearchParams({
  trn: "BZ7K2M9Q4D81",
});
const r = await fetch("https://gateway.blitzengine.shop/api/v1/paytm/check?" + params, {
  headers: { "X-API-Key": "YOUR_API_KEY" },
});
console.log(await r.json());
200 · paid
{
  "success": true,
  "data": {
    "trn": "BZ7K2M9Q4D81",
    "status": "SUCCESS",
    "amount": "499.00",
    "paytm": {
      "STATUS": "TXN_SUCCESS",
      "TXNAMOUNT": "499.00",
      "RESPMSG": "Txn Success",
      "TXNID": "2025…",
      "BANKTXNID": "5…"
    }
  }
}
statusMeaning
PENDINGNot paid yet — keep polling.
SUCCESSPaid, and the amount matches.
FAILEDThe payment failed.
AMOUNT_MISMATCHMoney was paid but the amount differs. Do not deliver; handle manually.

Create crypto request

GET/api/v1/crypto/create

Creates a payment request with a unique exact amount for your wallet. Show the customer the address and the exact amount; they must send precisely that on the given network.

ParameterTypeDescription
chain requiredstringbsc (USDT BEP20), tron (USDT TRC20) or ltc (Litecoin).
amount requirednumberPrice in USD, up to 2 decimals.
refstringYour own reference (order / user id), max 100 chars. Returned as-is.
key requiredstringYour API key (or use the header).
curl -s "https://gateway.blitzengine.shop/api/v1/crypto/create?chain=bsc&amount=10&key=YOUR_API_KEY"

# or keep the key out of the URL:
curl -s -H "X-API-Key: YOUR_API_KEY" "https://gateway.blitzengine.shop/api/v1/crypto/create?chain=bsc&amount=10"
<?php
$q = http_build_query([
    'chain' => 'bsc',
    'amount' => '10',
]);
$ch = curl_init('https://gateway.blitzengine.shop/api/v1/crypto/create?' . $q);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
    CURLOPT_TIMEOUT => 20,
]);
$res = json_decode(curl_exec($ch), true);
print_r($res);
import requests

r = requests.get(
    "https://gateway.blitzengine.shop/api/v1/crypto/create",
    params={
        "chain": "bsc",
        "amount": "10",
    },
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=20,
)
print(r.json())
const params = new URLSearchParams({
  chain: "bsc",
  amount: "10",
});
const r = await fetch("https://gateway.blitzengine.shop/api/v1/crypto/create?" + params, {
  headers: { "X-API-Key": "YOUR_API_KEY" },
});
console.log(await r.json());
200 · success
{
  "success": true,
  "data": {
    "id": "cp_9f2c41a7d0b35e68",
    "status": "pending",
    "chain": "bsc",
    "coin": "USDT",
    "network": "BNB Smart Chain (BEP20)",
    "address": "0xYourWalletAddress…",
    "amount": "10.0037",
    "usd": "10.00",
    "ref": "order-42",
    "txid": null,
    "expires_at": "2026-12-04T09:30:00+00:00"
  }
}
USDT requests last 24 hours. Litecoin requests last 1 hour (the price is locked for that time).

Check crypto payment

GET/api/v1/crypto/check

After the customer pays, send their transaction hash. The payment is read straight from the blockchain and accepted only when it paid your address, in the right coin and network, with the exact amount, after the request was made, with enough confirmations — and the hash was never used before.

ParameterTypeDescription
id requiredstringThe id from Create request.
txid requiredstringTransaction hash (a plain hash, 0x…, or an explorer link).
key requiredstringYour API key (or use the header).
curl -s "https://gateway.blitzengine.shop/api/v1/crypto/check?id=cp_9f2c41a7d0b35e68&txid=0x%E2%80%A6&key=YOUR_API_KEY"

# or keep the key out of the URL:
curl -s -H "X-API-Key: YOUR_API_KEY" "https://gateway.blitzengine.shop/api/v1/crypto/check?id=cp_9f2c41a7d0b35e68&txid=0x%E2%80%A6"
<?php
$q = http_build_query([
    'id' => 'cp_9f2c41a7d0b35e68',
    'txid' => '0x…',
]);
$ch = curl_init('https://gateway.blitzengine.shop/api/v1/crypto/check?' . $q);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
    CURLOPT_TIMEOUT => 20,
]);
$res = json_decode(curl_exec($ch), true);
print_r($res);
import requests

r = requests.get(
    "https://gateway.blitzengine.shop/api/v1/crypto/check",
    params={
        "id": "cp_9f2c41a7d0b35e68",
        "txid": "0x…",
    },
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=20,
)
print(r.json())
const params = new URLSearchParams({
  id: "cp_9f2c41a7d0b35e68",
  txid: "0x…",
});
const r = await fetch("https://gateway.blitzengine.shop/api/v1/crypto/check?" + params, {
  headers: { "X-API-Key": "YOUR_API_KEY" },
});
console.log(await r.json());
200 · waiting for confirmations
{
  "success": true,
  "data": {
    "state": "waiting",
    "confirmations": 6,
    "required": 15,
    "request": { "id": "cp_9f2c41a7d0b35e68", "status": "pending", … }
  }
}
200 · paid
{
  "success": true,
  "data": {
    "state": "paid",
    "confirmations": 15,
    "required": 15,
    "request": { "id": "cp_9f2c41a7d0b35e68", "status": "paid", "txid": "…", … }
  }
}

Key info

GET/api/v1/me

Handy to test your key. Returns your email and which payment methods are set up.

curl -s "https://gateway.blitzengine.shop/api/v1/me?key=YOUR_API_KEY"

# or keep the key out of the URL:
curl -s -H "X-API-Key: YOUR_API_KEY" "https://gateway.blitzengine.shop/api/v1/me"
<?php
$q = http_build_query([
]);
$ch = curl_init('https://gateway.blitzengine.shop/api/v1/me?' . $q);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
    CURLOPT_TIMEOUT => 20,
]);
$res = json_decode(curl_exec($ch), true);
print_r($res);
import requests

r = requests.get(
    "https://gateway.blitzengine.shop/api/v1/me",
    params={
    },
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=20,
)
print(r.json())
const params = new URLSearchParams({
});
const r = await fetch("https://gateway.blitzengine.shop/api/v1/me?" + params, {
  headers: { "X-API-Key": "YOUR_API_KEY" },
});
console.log(await r.json());
200 · success
{
  "success": true,
  "data": {
    "email": "[email protected]",
    "key_hint": "bz_a1b2…9f3c",
    "paytm_configured": true,
    "crypto": { "bsc": true, "tron": false, "ltc": true }
  }
}

Ready to try it?

Get your API key