Transactions
Fetch Transaction Details
GET
https://backendapi.sayswitchgroup.com/api/v1/transaction/:idThis endpoint allows you to retrieve the details of a specific transaction using its unique identifier.
Path Parameter:
id: The unique identifier of the transaction you want to retrieve (e.g.,2280).
Request Headers
Sample Request
cURL
curl -X GET https://backendapi.sayswitchgroup.com/api/v1/transaction/2280
-H "Authorization: Bearer YOUR_SECRET_KEY"Sample Response
JSON
{
"success": true,
"message": "Transactions retrieved",
"data": {
"id": 2280,
"domain": "test",
"status": "pending",
"reference": "SSW_17471703346211972",
"amount": "100",
"gateway_response": null,
"paid_at": null,
"created_at": "2025-05-13T21:05:34.000000Z",
"channel": null,
"currency": "NGN",
"ip_address": null
},
"log": {
"time_spent": 0,
"attempts": 0,
"authentication": null,
"errors": 0,
"success": false,
"channel": null,
"history": []
},
"fees": "1.2",
"customer": {
"id": 330,
"customer_code": "CUS_8n9f689gok7obwg",
"first_name": "Rosemond",
"last_name": "Oyeniyi",
"email": "test@email.com",
"phone": "08159994269",
"metadata": "{}"
},
"plan": null,
"paid_at": null,
"created_at": "2025-05-13T21:05:34.000000Z",
"requested_amount": "100"
}