Initiate a hosted checkout session and receive a checkout URL.
consumer_key and consumer_secret to generate a token in Get Authentication Token.checkout_url (or render it in an iframe).callback_url (see Webhooks).| Header | Required | Notes |
|---|---|---|
Authorization | Yes | Bearer <token> |
Content-Type | Yes | application/json |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ISO 8601 timestamp for the request.
Client-generated unique checkout reference.
Your internal invoice or payment reference.
Payer phone number in MSISDN format (e.g., 2547XXXXXXXX).
ISO 3166-1 alpha-3 country code (e.g., KEN).
ISO 4217 currency code (e.g., KES).
Amount in major units (e.g., 1000 = 1000 KES).
Checkout mode.
redirect URL for payment status callback notifications.
URL to redirect on successful payment.
URL to redirect on failed payment.
Arbitrary key-value data returned in the callback.