registerC2bUrls

suspend fun registerC2bUrls(c2bRegisterRequest: C2bRegisterRequest): C2bRegisterResponse

C2B register - Register validation and confirmation URLs on M-Pesa

Register URL API works in hand with Customer to Business (C2B) APIs and allows receiving payment notifications to your paybill. This API enables you to register the callback URLs via which you shall receive notifications for payments to your pay bill/till number.

Return

A successful acknowledgement C2bRegisterResponse response object.

Parameters

c2bRegisterRequest

The request object containing the validation and confirmation URLs, and the short code of the paybill or till number.

See also

Throws

DarajaException

if there is an error while executing the API request.