Receive update status

Payment Gateways

Ask us to refresh the status of a payment. The result is sent to the ipn address you gave when you started the payment. It is useful when you missed the first notification.

GEThttps://telcomw.com/api-v2/payments/update/RE1748204068886599

Put the transaction id in the URL. Authenticate with a Bearer token, which is your TelcoMW API key.

Parameters

Parameter Sent in Required Description
Authorization header YES Bearer YOUR_API_KEY (your TelcoMW API key).
transaction_id path YES The unique identifier of the transaction to update (the reference).

Example request

curl --location --request GET 'https://telcomw.com/api-v2/payments/update/RE1748204068886599' \
  --header 'Authorization: Bearer YOUR_API_KEY'
curl --location --request GET "https://telcomw.com/api-v2/payments/update/RE1748204068886599" ^
  --header "Authorization: Bearer YOUR_API_KEY"
<?php

$headers = [
    'Authorization: Bearer YOUR_API_KEY',
];

$ch = curl_init('https://telcomw.com/api-v2/payments/update/RE1748204068886599');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

print_r(json_decode($response, true));
const axios = require('axios');

axios.request({
  method: 'get',
  url: 'https://telcomw.com/api-v2/payments/update/RE1748204068886599',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
}).then((res) => console.log(res.data))
  .catch((err) => console.error(err.response ? err.response.data : err.message));
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY'
}

response = requests.request('GET', 'https://telcomw.com/api-v2/payments/update/RE1748204068886599', headers=headers)
print(response.json())

Response

The response is JSON.

{
  "message": "Service request accepted",
  "feedback": {
    "reference": "RE17481522190173324",
    "message": "A request to check transaction status has been sent",
    "operator": "airtel",
    "narration": "You'll receive a callback notification through your call back url",
    "payment_ipn": "https://yourdomain.com/notifications"
  },
  "status": "success"
}

Fields explained

FieldDescription
messageAdditional information about the request.
feedback.referenceThe reference of the transaction.
feedback.messageMore details.
feedback.operatorThe payment operator.
feedback.narrationA description of what happens next.
feedback.payment_ipnThe notification address of the payment.
statusWhether the request was accepted. This is not the payment status.