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.
https://telcomw.com/api-v2/payments/update/RE1748204068886599Put the transaction id in the URL. Authenticate with a Bearer token, which is your TelcoMW API key.
| 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). |
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())
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"
}
| Field | Description |
message | Additional information about the request. |
feedback.reference | The reference of the transaction. |
feedback.message | More details. |
feedback.operator | The payment operator. |
feedback.narration | A description of what happens next. |
feedback.payment_ipn | The notification address of the payment. |
status | Whether the request was accepted. This is not the payment status. |