Appearance
Get Transfer Status
https://api.magmasend.com//v2/transaction/:referenceThat allows you to consult in real time the current status of a transfer.
Request Information
HEADERS
| Authorization | Bearer TOKEN |
|---|
Query Params
Path Variables
reference : 478c7f9f-b90d-4dea-b419-9184f3665327
Status list
| Status | Description |
|---|---|
| PENDING | Transaction is on processing |
| SUCCESS | Transaction has been successfully collected |
| 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 |
Example Request
Curl
curl --location --globoff 'https://api.magmasend.com/v2/transaction/478c7f9f-b90d-4dea-b419-9184f3665327' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer token'Example Response
json
{
"code": 200,
"status": "OK",
"comment": "Transaction returned successfully",
"transaction": {
"reference": "58109462690",
"collection_pin": "103012956",
"transaction_id": "PONXBTYNRD4564D",
"payment_method": "CashPickup",
"payout_amount": 1000,
"payout_currency": "XOF",
"payout_country": "CI",
"sending_currency": "XOF",
"sending_amount": "1000",
"sending_fee_amount": "150",
"exchange_rate": "1",
"sender_reference": "C6CA6EDECE",
"receiver_reference": "7978976A0A",
"status": "PENDING",
"comment": "Payment on process"
}
}
Example success Response
{
"code": 200,
"status": "OK",
"comment": "Transaction returned successfully",
"transaction": {
"reference": "58109462690",
"collection_pin": "103012956",
"transaction_id": "PONXBTYNRD4564D",
"payment_method": "CashPickup",
"payout_amount": 1000,
"payout_currency": "XOF",
"payout_country": "CI",
"sending_currency": "XOF",
"sending_amount": "1000",
"sending_fee_amount": "150",
"exchange_rate": "1",
"sender_reference": "C6CA6EDECE",
"receiver_reference": "7978976A0A",
"status": "PENDING",
"comment": "Payment on process"
}
}
Example failed Response
{
"code": 404,
"status": "NOT_FOUND",
"comment": "Transaction not found"
}