Skip to navigation

Pay a bill

View as Markdown
Charges the merchant wallet and settles the bill for the given utility and reference. Store data.transid for later status checks.

Authentication

x-api-keystring
API Key authentication via header
x-api-secretstring
API Key authentication via header

Request

This endpoint expects an object.
utilitystringRequired
utility_refstringRequired
amountintegerRequired
Amount in TZS major units.
phonestringOptional
Optional payer MSISDN. When set, the confirmation SMS goes to this number. When omitted, SenjaroPay sends it to the merchant phone on file.

Response

Payment result
statusstring
codeinteger
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error