Skip to content

OMari ​

An OMari deposit takes two calls. You start it, the payer receives a one-time code (OTP) by SMS, and you submit that code.

Start ​

POST /api/v1/omari/pay

Body ​

FieldTypeRequiredDescription
amountnumberYesUSD to add to your wallet. At least 0.1.
omari_phonestringYesThe payer's OMari mobile number (a Zimbabwean number).
charge_currencystringNoUSD (default) or ZWG. See Charging in ZWG.
request_idstringNoA UUID that makes the start safe to repeat. Recommended.
callback_urlstringNoWhere to send the callback.

Example ​

bash
curl -X POST https://app.xash.co.zw/api/v1/omari/pay \
  -H "Authorization: Bearer YOUR_SERVER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"amount":5,"omari_phone":"0770000001","request_id":"00000000-0000-4000-8000-000000000003"}'

Response 200 ​

json
{
  "success": true,
  "message": "Check mobile to complete payment.",
  "data": {
    "id": 9003,
    "amount": "5.00",
    "currency": "USD",
    "payment_method": "omari",
    "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/omari/poll/9003",
    "charge_amount": "5.00",
    "charge_currency": "USD",
    "exchange_rate": null,
    "request_id": "00000000-0000-4000-8000-000000000003",
    "transactionReference": "EXAMPLE-OMARI-REF-0001",
    "status_message": "Check mobile to complete payment."
  }
}

Keep transactionReference. You need it to confirm.

Confirm with the one-time code ​

POST /api/v1/omari/confirm

Body ​

FieldTypeRequiredDescription
transactionReferencestringYesFrom the start response.
otpstringYesThe code the payer received by SMS.
omariMobilestringYesThe payer's OMari number.

Note the camelCase field names on this endpoint.

Example ​

bash
curl -X POST https://app.xash.co.zw/api/v1/omari/confirm \
  -H "Authorization: Bearer YOUR_SERVER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"transactionReference":"EXAMPLE-OMARI-REF-0001","otp":"000000","omariMobile":"0770000001"}'

Response 200 ​

json
{
  "success": true,
  "message": "Confirmation processed",
  "data": {
    "status": "PENDING"
  }
}

data.status is SUCCESS, FAILED, EXPIRED or PENDING. PENDING is the usual answer, even for a correct code: the payment is verified with OMari in the background. Poll the deposit until it is final.

Errors ​

StatusWhenWhat to do
422The code was rejected. message says so.Ask the payer for the code again and resubmit.
404No OMari deposit of yours has this transactionReference.Check the reference.

For start errors, see When starting a deposit fails.