# Query a Transaction

## Query Transaction

<mark style="color:blue;">`GET`</mark> `https://a1pay.net/api/transactions/query`

This endpoint allows you to query a transaction

#### Query Parameters

| Name      | Type   | Description                               |
| --------- | ------ | ----------------------------------------- |
| Reference | string | The Payment Reference for the transaction |

{% tabs %}
{% tab title="200 Transaction record. Lookout for HasPaid property" %}

```javascript
{
  "id": "723419",
  "TransactionCode": "5210C7",
  "PayerNumber": "CFB/08/09/000345",
  "TransType": "Actual School Fees Payment",
  "SurName": "John",
  "FirstName": "Doe",
  "OtherNames": "UYOVWISIVWOHWO ",
  "Amount": "44500.00",
  "PhoneNumber": "080xxx",
  "EmailAddress": "email@yahoo.com",
  "ProgrammeName": "Undergraduate Regular",
  "Faculty": "CLINICAL MEDICINE",
  "Department": "MEDICINE",
  "Level": "600",
  "SessionName": "2018/2019",
  "BatchNo": "111101",
  "Pin": "0",
  "SerialNumber": "0",
  "ExpiryDate": "2018-10-14T12:50:52.413",
  "CreateDate": "2018-10-11T12:50:53.210",
  "AmountPaid": "44500.00",
  "collectingbank": "Unity Bank PLC",
  "PaymentDate": "2018-10-11T13:29:48.010",
  "HasPaid": "1",
  "SemesterID": "0",
  "ClientID": "1",
  "TransStatus": "3",
  "College": "",
  "IntTransactionCode": "41125210C7",
  "BRANCH_NAME": "339: Abraka Branch, Abraka",
  "TELLER_ID": "t02080",
  "ActualPayDate": "2018-10-11T12:20:26",
  "SwitchID": "1",
  "SwitchResponseDate": "2018-10-11T13:29:47.803",
  "ClientFeedbackTrials": "1",
  "MerchantName": "Name of Merchant"
}
```

{% endtab %}
{% endtabs %}
