Skip to main content
POST

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

Authorization
string
header
required

Basic authentication using base64 encoded username:password

Body

application/json
amount
number
required

Payment amount

Example:

1

referenceNo
string
required

Reference number for the payment

Example:

"889909909229"

payee
string
required

Name of the payee receiving the payment

Example:

"Kairos"

narration
string
required

Payment description or narration

Example:

"PIZZAMAN/CHICKMAN"

msisdn
string
required

Msisdn identifier for the payment

Example:

"233559400612"

callbackId
string
required

Callback identifier for payment status updates

Example:

"6607c05155dfd4919c18c44"

payer
string
required

Name or identifier of the payer

Example:

"testOne"

Response

Payment initiated successfully

statusCode
string

Status code indicating the result of the payment initiation

Example:

"0001"

statusMessage
string

Human-readable status message

Example:

"PENDING"

transactionId
string

Unique transaction identifier for tracking

Example:

"20416369453214532143"

data
object | null

Payment details when successful

HATEOAS links for related actions