get https://api.staging.vendy.money/transactions
Endpoint to retrieve a specific transaction using it's unique reference identifier 'refid'.
Request:
Path Parameter | Type | Description |
---|---|---|
id | string | Unique refid of transaction |
Query Parameter | Type | Description |
---|
Example request
curl --location 'https://api.vendy.money/transactions/6518564956061343757?businessId=1' \
--header 'Authorization: Bearer <token>'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if request was successfully executed or not |
code | Integer | Internal code, success if 200 |
msg | String | A description of the status of the request |
data | Transaction | Transaction details |
Example response
{
"status": true,
"code": 200,
"msg": "Transaction",
"data": {
"id": 1,
"uid": 1,
"businessId": 1,
"request": "Optional",
"msisdn": "08101851915",
"amount": "100.0000",
"requestamount": "100.0000",
"refid": "6518564956061343757",
"vendref": null,
"debitref": null,
"reason": null,
"raw_reason": null,
"channel": null,
"page": null,
"currency": "NGA",
"delivered": -1,
"vended": null,
"reversed": null,
"debited": null,
"failed": -1,
"isreversing": null,
"processing": null,
"flag": null,
"created_on": null,
"updated_on": null,
"delivered_date": null,
"reversed_date": null,
"createdAt": "2021-10-31T21:58:27.000Z",
"updatedAt": "2021-10-31T21:58:27.000Z",
"deletedAt": null
}
}
Possible errors are;
Error code | Type | Description |
---|---|---|
327 | TRANSACTION_NOT_FOUND | Transaction not found |