Docs
Dashboard Create account

Error handling

Errors use a consistent envelope with a machine-readable code and a human-readable message.

{
  "ok": false,
  "error": {
    "code": "merchant_required",
    "message": "This application has no authorised merchant account."
  }
}

Error codes

HTTPCodeMeaning
401unauthorizedMissing or invalid secret key.
404not_foundUnknown resource.
422invalid_amountAmount missing or not positive.
422invalid_phoneCustomer phone number is not a valid Kenyan MSISDN.
422merchant_requiredNo merchant account linked to the application.
422merchant_not_authorizedLive payment attempted before merchant verification.
422stk_failedDaraja rejected the STK push.
429rate_limitedToo many requests for this application.

NixPay documentation · A Supreonix product Back to introduction