API documentation
Production REST API & HMAC-SHA512 IPN Webhook reference for integrating OMNEPAY USDT (BEP-20) deposits, hosted QR checkouts, and custodial payouts on BNB Smart Chain.
Authentication
Pass your live merchant API key in the x-api-key header on every /v1/* request. Production base URL: https://api.omnepays.com
/v1/statusLive APIGateway status
Health check endpoint verifying BNB Smart Chain (BEP-20) node connectivity and CREATE2 smart contract sweeper readiness.
Request
curl "https://api.omnepays.com/v1/status"Response
{
"message": "OK",
"status": "operational",
"network": "BSC (BEP-20)",
"sweeper_engine": "CREATE2_SMART_CONTRACT",
"currency": "usdtbsc"
}/v1/paymentLive APICreate a USDT (BEP-20) payment invoice
Generates a unique deterministic EIP-1167 CREATE2 smart contract deposit address on BNB Smart Chain and returns both the raw pay_address and hosted QR invoice_url.
Request
curl -X POST "https://api.omnepays.com/v1/payment" \
-H "x-api-key: omp_live_your_merchant_api_key" \
-H "Content-Type: application/json" \
-d '{
"price_amount": 100,
"price_currency": "usd",
"pay_currency": "usdtbsc",
"order_id": "ORD-90210",
"order_description": "Customer Checkout",
"ipn_callback_url": "https://yoursite.com/api/omnepay/webhook",
"success_url": "https://yoursite.com/payment-success"
}'Response
{
"payment_id": "pay_m8x9k2a1b4c9",
"payment_status": "waiting",
"pay_address": "0x8A9173B02c41D9e8f11A029482E0012F9c3DB42E",
"wallet_mode": "create2_proxy",
"price_amount": 100,
"price_currency": "usd",
"pay_amount": 100,
"actually_paid": 0,
"pay_currency": "usdtbsc",
"order_id": "ORD-90210",
"fee_percent": 1,
"fee_amount": 1,
"outcome_amount": 99,
"outcome_currency": "usdtbsc",
"invoice_url": "https://omnepays.com/pay/pay_m8x9k2a1b4c9"
}/v1/payment/:paymentIdLive APIRetrieve payment status
Polls the live blockchain confirmation status (waiting, partially_paid, finished, expired) and returns the BSC transaction hash once confirmed.
Request
curl -X GET "https://api.omnepays.com/v1/payment/pay_m8x9k2a1b4c9" \
-H "x-api-key: omp_live_your_merchant_api_key" \
-H "Content-Type: application/json"Response
{
"payment_id": "pay_m8x9k2a1b4c9",
"payment_status": "finished",
"pay_address": "0x8A9173B02c41D9e8f11A029482E0012F9c3DB42E",
"pay_amount": 100,
"actually_paid": 100,
"fee_percent": 1,
"fee_amount": 1,
"outcome_amount": 99,
"tx_hash": "0x5f9d8e2c11b40928374655aabbccddeeff00112233445566778899aabbccddee"
}/v1/payments?limit=50Live APIList deposits
Lists recent deposit invoices and confirmed payments for your merchant account.
Request
curl -X GET "https://api.omnepays.com/v1/payments?limit=50" \
-H "x-api-key: omp_live_your_merchant_api_key" \
-H "Content-Type: application/json"Response
{
"data": [
{
"payment_id": "pay_m8x9k2a1b4c9",
"payment_status": "finished",
"pay_amount": 100,
"actually_paid": 100,
"fee_amount": 1,
"outcome_amount": 99,
"pay_currency": "usdtbsc"
}
],
"total": 1
}/v1/balanceLive APIGet custodial balance
Returns your available USDT (BEP-20) merchant custodial balance along with lifetime deposit and withdrawal totals.
Request
curl -X GET "https://api.omnepays.com/v1/balance" \
-H "x-api-key: omp_live_your_merchant_api_key" \
-H "Content-Type: application/json"Response
{
"usdtbsc": {
"amount": 1485,
"total_deposited": 2000,
"total_withdrawn": 495,
"currency": "usdtbsc",
"network": "BSC (BEP-20)"
}
}/v1/payoutsLive APIList withdrawals & payouts
Returns single and CSV batch withdrawals initiated from your Merchant Portal along with their BSC transaction hashes.
Request
curl -X GET "https://api.omnepays.com/v1/payouts" \
-H "x-api-key: omp_live_your_merchant_api_key" \
-H "Content-Type: application/json"Response
{
"data": [
{
"payout_id": "po_k9z00d8e1a2b",
"address": "0x71C95911E9a5D330f4D621842EC243EE1343292e",
"currency": "usdtbsc",
"amount": 250,
"fee_percent": 1,
"fee_amount": 2.5,
"net_amount": 247.5,
"status": "finished",
"tx_hash": "0x91a4f8b2c00123456789abcdef0123456789abcdef0123456789abcdef003c02"
}
]
}POST https://yoursite.com/api/omnepay/webhookLive APIIPN Webhook Verification (HMAC-SHA512)
Every confirmed deposit and completed payout triggers an HTTPS POST to your IPN Callback URL signed with your IPN Webhook Secret using sorted-key HMAC-SHA512.
Verification & Payload
import crypto from 'crypto';
export function verifyOmnePayWebhook(body, signatureHeader, ipnSecret) {
const sorted = Object.keys(body).sort().reduce((acc, k) => {
acc[k] = body[k];
return acc;
}, {});
const expected = crypto
.createHmac('sha512', ipnSecret)
.update(JSON.stringify(sorted))
.digest('hex');
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signatureHeader));
}Webhook Headers
x-omnepay-sig: <hmac_sha512_hex_signature>
x-nowpayments-sig: <hmac_sha512_hex_signature>
Content-Type: application/json
User-Agent: OmnePay-IPN/1.0
# Respond with HTTP 200 OK within 8 seconds.