Create Bill

Create a new Invoice for billing, supporting USDT (over TRON) or Bitcoin Lightning

API Endpoint

POST /client/bills/save


Request Headers:

Authorization: Bearer <access_token>

Content-Type: application/json Request Body:

{
     amount: "1000000", // USD with 6 decimals uint, 1USD = 1000000
     tag: "bill-tag",   // Some useful tag for searching
     expireInMinutes: "30" // Bill Expires After 30 Minutes
     reference: "unique-ref" // Unique Non Reusable Bill Reference
     useLightning: true // when payment via bitcoin lightning network
}

curl 'https://apis.xpay.stream/client/bills/save' \
  -H 'Content-Type: application/json'               \
  -H 'Authorization: Bearer <access_token>'         \
  --data-raw '{"amount":10000000,"tag":"XPAY-83cd","expireInMinutes":"30","reference":"1bdce316","email":"[email protected]","callbackURL":"https://mycallback.com/bill-alert","useLightning":true}'              

Last updated