Transactions
Transactions
Transaction by Id

Get Transaction by ID API

Welcome to the documentation for the Get Transaction by ID API. This API allows users to retrieve details of a specific transaction based on its ID.

Base URL

The base URL for this API is {baseURL}/v1/transaction/get_transaction.

Endpoint

  • Path: /:transaction_id
  • Method: GET

Path Parameters

  • transaction_id: The unique identifier of the transaction to be retrieved.

Authorization

Include the following Authorization header in your HTTP requests using a Bearer token:

Authorization: Bearer YOUR_ACCESS_TOKEN

Sample Request

curl -X GET '{baseURL}/v1/transaction/get_transaction/:transaction_id' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
 

Sample 200 Response

{
    "message": "Transaction fetched successful.",
    "data": {
        "transfer_request_id": "6874c2d3-df20-48c0-bb95-56ed421a2eba",
        "account_id": "65db5b5041a636af9ee5feb2",
        "narration": "string",
        "amount": "20000",
        "organization_id": "65db532d41a636af9ee5feaf",
        "transaction_reference": "3GYCFBFAJHL1",
        "destination_bank_code": "056",
        "destination_account_name": "prince",
        "destination_account_type": "savings",
        "destination_bank_name": "GTB",
        "destination_account_number": "0354882788",
        "originating_account_number": "00510011011003213",
        "originating_account_name": "Jolaoso",
        "transfer_type": "intra",
        "provider_id": "64dfdf50c013a4fc3828678a",
        "session_id": "1234566",
        "provider_response_id": null,
        "transfer_status_id": null,
        "tsq_requery_count": 0,
        "transfer_request_decision_id": null,
        "mandate_rule_id": null,
        "status": "failed",
        "transfer_status": "failed",
        "created_at": "2024-02-25T15:26:35.017Z",
        "updated_at": "2024-02-25T17:00:49.352Z"
    },
    "success": true
}