Appearance
Get Transfer Status
https://api.magmasend.com/v1/transfer/:idThat allows you to consult in real time the current status of a transfer.
Request Information
HEADERS
| Authorization | Bearer TOKEN |
|---|
Query Params
Path Variables
id : 478c7f9f-b90d-4dea-b419-9184f3665327
Status list
| Status | Description |
|---|---|
| PENDING | Transaction is on processing |
| SUCCESS | Transaction has been successfully processed |
| FAILED | Transaction has failed for any reason |
| NOTFOUND | There is not a record for the transaction_id |
| ERROR | Generic error response code on the http query |
Exemple
request
NodeJs-Request
var request = require('request');
var options = {
'method': 'GET',
'url': 'BASEURL/v1/transfer/1234567890',
'headers': {
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});Response
pending
json
{
"transaction_id": "1234567890",
"status": "PENDING",
"operator_transaction_id": null,
"comment": "Transfer will start soon",
"amount": 200
}Success
json
{
"transaction_id": "1234567890",
"status": "SUCCESS",
"operator_transaction_id": null,
"comment": "Transaction has been successfully processed",
"amount": 200
}Failed
json
{
"code": 301,
"transaction_id": "74fe6ff3-761e-40cd-930b-653a6e270c11",
"status": "FAILED",
"operator_transaction_id": "1d31e2578e194264f1b025e6897c7d98f6723adf",
"comment": "The beneficiary mobile number is not correct",
"amount": "200"
}Notfound
json
{
"status": "NOTFOUND",
"comment": "Transaction not found"
}