API documentation
A small JSON-over-HTTP API. Every call returns JSON, uses your personal API key, and works with GET or POST.
https://gateway.blitzengine.shop/api/v1- Create an account and open the dashboard.
- Save your Paytm Merchant ID + UPI and/or crypto addresses.
- Generate your API key (shown once — copy it somewhere safe).
- 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
Responses, errors & limits
Success is always {"success": true, "data": {…}}. Failure is {"success": false, "error": {"code", "message"}} with a matching HTTP status.
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_amount invalid_chain invalid_txid … | A parameter is missing or wrong. |
| 400 | paytm_not_configured crypto_not_configured | Save the details in your dashboard first. |
| 401 | missing_key invalid_key | No key, or the key is wrong or was regenerated. |
| 403 | ip_not_allowed account_disabled | IP not on your allow-list, or account disabled. |
| 404 | order_not_found request_not_found tx_not_found | Nothing with that id on your account. |
| 409 / 422 | txid_used amount_mismatch wrong_address … | The payment does not match the request. |
| 429 | rate_limited | Slow down (default 120 requests / minute / key). |
| 502 | upstream_error network_unavailable | Paytm or the blockchain did not answer. Retry in a moment. |
Create Paytm QR
/api/v1/paytm/qrCreates a payment QR for the amount, paying to the Paytm UPI you saved. Keep the returned trn — you use it to check the payment.
| Parameter | Type | Description |
|---|---|---|
amount required | number | Amount in ₹, from 1 to 100000, up to 2 decimals. |
key required | string | Your 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());{
"success": true,
"data": {
"trn": "BZ7K2M9Q4D81",
"amount": "499.00",
"currency": "INR",
"status": "PENDING",
"qr_url": "https://example.com/qr/BZ7K2M9Q4D81.png"
}
}Check Paytm payment
/api/v1/paytm/checkLooks 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.
| Parameter | Type | Description |
|---|---|---|
trn required | string | The trn returned by Create QR. |
key required | string | Your 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());{
"success": true,
"data": {
"trn": "BZ7K2M9Q4D81",
"status": "SUCCESS",
"amount": "499.00",
"paytm": {
"STATUS": "TXN_SUCCESS",
"TXNAMOUNT": "499.00",
"RESPMSG": "Txn Success",
"TXNID": "2025…",
"BANKTXNID": "5…"
}
}
}| status | Meaning |
|---|---|
PENDING | Not paid yet — keep polling. |
SUCCESS | Paid, and the amount matches. |
FAILED | The payment failed. |
AMOUNT_MISMATCH | Money was paid but the amount differs. Do not deliver; handle manually. |
Create crypto request
/api/v1/crypto/createCreates 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.
| Parameter | Type | Description |
|---|---|---|
chain required | string | bsc (USDT BEP20), tron (USDT TRC20) or ltc (Litecoin). |
amount required | number | Price in USD, up to 2 decimals. |
ref | string | Your own reference (order / user id), max 100 chars. Returned as-is. |
key required | string | Your 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());{
"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"
}
}Check crypto payment
/api/v1/crypto/checkAfter 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.
| Parameter | Type | Description |
|---|---|---|
id required | string | The id from Create request. |
txid required | string | Transaction hash (a plain hash, 0x…, or an explorer link). |
key required | string | Your 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());{
"success": true,
"data": {
"state": "waiting",
"confirmations": 6,
"required": 15,
"request": { "id": "cp_9f2c41a7d0b35e68", "status": "pending", … }
}
}{
"success": true,
"data": {
"state": "paid",
"confirmations": 15,
"required": 15,
"request": { "id": "cp_9f2c41a7d0b35e68", "status": "paid", "txid": "…", … }
}
}Key info
/api/v1/meHandy 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());{
"success": true,
"data": {
"email": "[email protected]",
"key_hint": "bz_a1b2…9f3c",
"paytm_configured": true,
"crypto": { "bsc": true, "tron": false, "ltc": true }
}
}