Initiate Payment
Initiate a new payment transaction
Initiate Payment
This endpoint allows you to initiate a new payment transaction. Endpoint:POST /v1/payment
Request Body
- amount (number, required): The payment amount.
- referenceNo (string, required): Reference number for the payment.
- payee (string, required): Name of the payee receiving the payment.
- narration (string, required): Payment description or narration.
- msisdn (string, required): Msisdn identifier for the payment.
- callbackId (string, required): Callback identifier for payment status updates.
- payer (string, required): Name or identifier of the payer.
Responses
200 OK - Payment Initiated Successfully
400 Bad Request - Invalid Request Data
401 Unauthorized - Invalid Credentials
Response Fields
- statusCode (string): Status code indicating the result of the payment initiation
"0001": Payment pending"0400": Bad request"0401": Unauthorized
- statusMessage (string): Human-readable status message
- transactionId (string): Unique transaction identifier for tracking
- data (object): Payment details when successful
- totalAmount (number): Total amount including charges
- amount (number): Base payment amount
- charge (number): Processing charge amount
- referenceId (string): Reference identifier for the payment
- links (array): HATEOAS links for related actions
- rel (string): Relationship type
- href (string): Link URL
Authorizations
Basic authentication using base64 encoded username:password
Body
Payment amount
1
Reference number for the payment
"889909909229"
Name of the payee receiving the payment
"Kairos"
Payment description or narration
"PIZZAMAN/CHICKMAN"
Msisdn identifier for the payment
"233559400612"
Callback identifier for payment status updates
"6607c05155dfd4919c18c44"
Name or identifier of the payer
"testOne"
Response
Payment initiated successfully
Status code indicating the result of the payment initiation
"0001"
Human-readable status message
"PENDING"
Unique transaction identifier for tracking
"20416369453214532143"
Payment details when successful
HATEOAS links for related actions