Initiate refund

This function allows a merchant to refund payments that were already acknowledged as received and processed successfully

This function allows a merchant to refund payments that were already acknowledged as received and processed successfully

📘

Live Endpoint

https://api.tingg.africa/v3/checkout-api/refund/request

KeyValue TypeRequiredDescription
currency_codeStringNo3 letter currency code for the transaction
merchant_transaction_idStringYesUnique transaction ID identifying the transaction as given by the merchant. (Has a limit of 100 characters)
refund_typeStringYesA flag indicating the type of refund to be done; can either be Full or Partial.
amountDoubleYesAmount to be refunded. Compulsory for partial
refund_narrationStringYesA reason for the refund. (Has a limit of 100 characters)
refund_referenceStringYesReference number for the transaction. (Has a limit of 100 characters)
service_codeStringYesThe merchant's service code.
payment_idStringNoUnique internal CPG transaction ID.

Response Status Codes

Status CodeDescription
200Success. Refund request successfully logged in the checkout platform.
500Failure. Generic failure occurred. Could be as a result of a system failure on the checkout platform.
400Bad request - a parameter is missing or empty
422Invalid request

Refund status codes

These request status codes indicate the status of a refund when a query status or a refund notification is processed.

Request status codeDescriptionAvailable from
184This is indicates that a refund of part of the request amount has been initiated.Query request status
185This is indicates that full refund the request amount has been initiated.Query request status
186This is indicates that the part refund for the request was successfully processed.Query request status and Refund Notification
187This is indicates that the full refund for the request was successfully processed.Query request status and Refund Notification
191Refund ExpiredQuery request status and Refund Notification

📘

Refund Notification

Notifications are done for final refund status codes 186, 187, and 191.
Refund notification is configurable. To receive a final status notification on refund, configure a Refund Notification Url for the service under Service Settings on the gateway portal as shown below.

Refund Notification Request

KeyValue TypeDescription
amountdoublethe refunded amount
statusCodeintthe status of the refund
refundReferenceStringReference number for the transaction (sent when initiating a refund)
merchantTransactionIdStringUnique transaction ID identifying the transaction as given by the merchant.

Sample Refund Notification Request

{
  "amount":30.5,
  "statusCode":186,
  "refundReference":"536772882hhd",
  "merchantTransactionID":"tywvbb63778383"
}
Language
Click Try It! to start a request and see the response here!