---
updatedAt: 2025-06-17T20:25:10.000Z
agentTools:
  projectIndex: https://docs.waza.co/llms.txt
---

# Get Transaction by Customer Reference

This endpoint retrieves a single transaction using the unique `customer_reference`  provided.

> 🚧 Note:
>
> * If no transaction matches the provided `customer_reference`, you'll receive an error response indicating that the transaction wasn't found.
> * It's crucial to use accurate and case-sensitive `customer_reference` strings when querying to ensure correct results.
> * Completed transactions have a `session_id` added to the transaction response.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "waza-payout-apis",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.sandbox.waza.co/payouts/v1"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/transactions/by-customer-reference/{reference}": {
      "get": {
        "summary": "Get Transaction by Customer Reference",
        "description": "This endpoint retrieves a single transaction using the unique `customer_reference`  provided.",
        "operationId": "payouts-get-transactions-by-reference",
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "description": "The reference generated for the transaction",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "x-waza-key",
            "in": "header",
            "description": "your app key",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"id\": \"wz_trsf_QpBV_1691501689569\",\n        \"amount\": 1200000,\n        \"currency\": \"NGN\",\n        \"country\": \"NG\",\n        \"beneficiary\": {\n            \"type\": \"BANK_ACCOUNT\",\n            \"account_name\": \"Kabiru Alabi\",\n            \"account_number\": \"123400001\",\n            \"bank_code\": \"000014\",\n            \"bank_name\": \"ACCESS BANK\"\n        },\n        \"state\": \"COMPLETED\",\n        \"created_date\": \"2023-08-08T13:34:49.570Z\",\n        \"completion_date\": \"2023-08-08T13:34:56.976Z\",\n        \"customer_reference\": \"kjbioijn\",\n        \"metadata\": {\n            \"invoiceId\": \"Payment from APP\"\n        },\n        \"balance_before\": 5690000,\n        \"balance_after\": 4490000,\n        \"sender\": {\n            \"dob\": \"2000-01-23\",\n            \"name\": \"Emmanuel\",\n            \"address\": \"Optional\",\n            \"country\": \"US\",\n            \"send_amount\": 500,\n            \"send_currency\": \"USD\"\n        },\n        \"response_code\": \"OO\",\n        \"response_description\": \"Transfer Completed successfully\",\n        \"company_id\": \"af0bbbfe-ff06-434c-bdba-bc962c627546\",\n        \"session_id\": \"38449bed-f03d-4d30-ac5d-25c8935a8a9e\",\n    }\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```