Create invoice
Example secret key: fdf11f661f0b2e7c6dfd079fd692a930
Create invoice
POST https://api.xbwallet.me/createinvoice
Request Body
merchant_id
UUID
Merchant ID your shop
order_id
String
Description or order ID in your system (max 255 characters)
checkout_currency
Currency
Payment currency (tron, usdttrc20, binancecoinbep20, usdtbep20, ethereum, bitcoin, litecoin, monero)
invoice_amount
Number
Invoice amount
invoice_currency
Currency
Invoice currency (usd, eur, uah, rub, tron, usdttrc20, binancecoinbep20, usdtbep20, ethereum, bitcoin, litecoin, monero)
secret_hash
String
Signing the request with a secret key
secret_hash = sha1(merchant_id&order_id&checkout_currency&invoice_amount&invoice_currency&secret)
{
"invoice_id": "ad98ecd84f9b10890e4af09cf97d7087",
"invoice_created": 1640995200,
"invoice_expires": 1640997000,
"checkout_address": "address_goes_here",
"checkout_amount": 10.123456,
"checkout_currency": "usdttrc20",//tron, usdttrc20, binancecoinbep20, usdtbep20, ethereum, bitcoin, litecoin, monero
"secret_hash": "0f6ff9dcfec1a36c1a2870d0c1d494c60dafe7f5"
}{
"code": 400,
"error": "Description error"
}Payment via link
You can give the user a format link
https://t.me/XBWalletBot?start=pay_{INVOICE_ID}
For example
https://t.me/XBWalletBot?start=pay_ad98ecd84f9b10890e4af09cf97d7087
Last updated