PaymentACK Service

This page will help you get started with Payment ACK service.

Payment Acknowledgement refers to a merchant notification that confirms if they have accepted or rejected the payment. The Payment ACK API has been enhanced to offer security through Bearer Token authentication. This mechanism ensures that only authorized users can access the API, adding an extra layer of protection.

Generate Token

Use the link below to access the Generate token API.

https://docs.tingg.africa/reference/generate-token-api

Post payment api

The post payment api will expect the below request parameters.

Headers

Parameter NameTypeMandatoryDescription
{X-Country-Code}StringYesCountry code i.e. KEN,NGA,ZAR
{Content-Type}StringYesapplication/json

Request Payload

Parameter NameTypeMandatoryDescription
Receipt Number {receiptNumber}StringYesThis contains the receipt number which is unique per service.
Status {status}StringYesThe payment status i.e. ACCEPTED OR REJECTED.
Description {description}StringYesThe payment status description
Amount {amount}IntegerNot contains the amount of the merchant payment ID. Should be greater than 0

Sample Request

{
	"receiptNumber": "00",
	"status": "ACCEPTED",
	"description": "Accepted from the guy",
  "amount": 2000
}

Response Payload

Parameter NameTypeMandatoryDescription
{authStatusCode}IntegerYesThe api user authentication code
{authStatusDescription}StringYesThe api user authentication description
{statusCode}IntegerYesTransaction processing status code
{statusDescription}StringYesTransaction processing status description
{receiptNumber}StringNoThe merchant’s receipt number
{beepTransactionID}StringNoThe transaction’s unique identifier in CPG

Sample Response

{
    "message": "Authentication was successful",
    "success": true,
    "statusCode": 174,
    "data": {
        "statusDescription": "Acknowledgement Received",
        "beepTransactionID": "81139052"
    }
}

Status Codes

Status CodeStatus Description
132User authentication failed
143Payment does not exist in CPG
152The acknowledgement has been successfully received and is being processed.
174Generic error code. Sent for failed validation, could not connect to RabbitMQ etc
200Request processed successfully. The data node will have a value
239Payment already escalated. Sent in the response when the payment being acknowledged is already in the escalated final status
240Payment already accepted. Sent in the response when the payment being acknowledged is already in the accepted final status.
241Payment already rejected. Sent in the response when the payment being acknowledged is already in the rejected final status
245Payment already delivered
Language
Click Try It! to start a request and see the response here!