Skip to content

Crypto (USDT BEP20) ​

Creates a deposit address. The payer sends USDT on the BEP20 network (BNB Smart Chain) to it. When the transfer is confirmed, your USD wallet is credited.

POST /api/v1/crypto/pay

Body ​

FieldTypeRequiredDescription
amountnumberYesThe USD amount you expect. At least 0.1.
referencestringNoYour own label for this deposit, up to 100 characters. It is appended to your user number to form vendor_reference.
callback_urlstringNoWhere to send the callback.

request_id is not supported here.

Example ​

bash
curl -X POST https://app.xash.co.zw/api/v1/crypto/pay \
  -H "Authorization: Bearer YOUR_SERVER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"amount":25,"reference":"ORDER1001","callback_url":"https://shop.example.com/hooks/xash?order=1001"}'

Response 200 ​

json
{
  "success": true,
  "message": "Payment initiated",
  "data": {
    "id": 9005,
    "amount": "25.00",
    "currency": "USD",
    "payment_method": "crypto",
    "status": "PENDING",
    "archived": false,
    "reconciliation_required": false,
    "start_unconfirmed": false,
    "expires_at": null,
    "created_at": "2026-11-19T08:15:00.000000Z",
    "poll_url": "https://app.xash.co.zw/api/v1/crypto/poll/9005",
    "status_message": "Send USDT BEP20 to the provided address.",
    "gateway_reference": "EXAMPLE-GATEWAY-REF",
    "vendor_reference": "1234567890ORDER1001",
    "instructions": "...",
    "payment": null
  }
}
FieldDescription
instructionsWhat the payer must do, including the address to send to, as returned by the crypto gateway. Show it to the payer as it is.
vendor_referenceYour user number followed by your reference. It identifies this deposit at the gateway.
gateway_referenceThe gateway's own reference.
paymentnull until a transfer is seen. Then the gateway's record of it: status, amount, token, chain, network and transaction hashes.

What gets credited ​

Your wallet is credited with the amount that actually arrives and is confirmed, which can differ from the amount you asked for. After confirmation, amount in the deposit shows the credited figure.

Then ​

Poll the deposit or use a callback. While the transfer is being confirmed, status can show the gateway's own status in capitals, or MANUAL_REVIEW when a person at Xash must check it. Only SUCCESS means the money is in your wallet.

Errors ​

See When starting a deposit fails.