Appearance
InnBucks
Creates a payment code. The payer pays it in the InnBucks app or at an InnBucks counter and the amount is added to your USD wallet.
POST /api/v1/innbucks/pay
Body
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | USD to add to your wallet. At least 0.1. |
charge_currency | string | No | USD (default) or ZWG. See Charging in ZWG. |
request_id | string | No | A UUID that makes the start safe to repeat. |
callback_url | string | No | Where to send the callback. |
Example
bash
curl -X POST https://app.xash.co.zw/api/v1/innbucks/pay \
-H "Authorization: Bearer YOUR_SERVER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":10,"request_id":"00000000-0000-4000-8000-000000000002"}'Response 200
json
{
"success": true,
"message": "Payment initiated",
"data": {
"id": 9002,
"amount": "10.00",
"currency": "USD",
"payment_method": "innbucks",
"status": "PENDING",
"archived": false,
"reconciliation_required": false,
"start_unconfirmed": false,
"expires_at": "2026-11-19T08:30:00.000000Z",
"created_at": "2026-11-19T08:15:00.000000Z",
"poll_url": "https://app.xash.co.zw/api/v1/innbucks/poll/9002",
"charge_amount": "10.00",
"charge_currency": "USD",
"exchange_rate": null,
"request_id": "00000000-0000-4000-8000-000000000002",
"debit_reported": false,
"debit_report_status": null,
"code": "000111222"
}
}Show code to the payer. They enter it in the InnBucks app to pay. expires_at is Xash's own deadline: InnBucks may still accept the code after it, and a late payment that Xash verifies is still credited. Check this deposit before you give the payer a new code.
Then
Poll the deposit until status is SUCCESS, FAILED or EXPIRED.