ONEVIEW Gateway Service
Search organization-scoped transaction logs with ONEVIEW Gateway Service external multi-field and reference search endpoints.
Search your organization’s transaction logs using multiple search fields or a single transaction reference.
Prerequisites
- Obtain a client-credentials access token.
- Ensure your client is profiled under at least one organization. Search results are scoped to that organization.
- For reference search, ensure your client has the
CAN_PERFORM_TRANSACTION_SEARCHauthority. - Replace
<host>in the request examples with your ONEVIEW host and<client-token>with your client-credentials access token. Do not commit tokens to source control.
Authentication
Include the following header with every request:
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <client-credentials-access-token> | Yes |
Authorization differences
| Endpoint | Authority required |
|---|---|
POST /api/v1/gateway/quick-search-external | Client token only; no additional authority check |
POST /api/v1/gateway/reference-search-external | Client token plus CAN_PERFORM_TRANSACTION_SEARCH |
Common request rules
- Format request dates as
yyyy-MM-dd, for example,2024-11-24. - Set
page_sizeto no more than20. The default is10. - Use
page_numberto select a page. The default is1. - Keep the date range from
start_datetoend_datewithin three days. - Successful searches return HTTP
200 OKwithresponseCode: "202"(accepted) in the JSON body. The body code is not the HTTP status.
1. Multi-field search — external clients
POST /api/v1/gateway/quick-search-external
Search transaction logs by fields such as PAN (primary account number), terminal, merchant, RRN (retrieval reference number), or STAN (system trace audit number).
The service uses the first populated searchable field in the request body to find matching transactions. Do not treat multiple populated fields as combined filters.
Query parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
page_number | integer | No | 1 | Page number |
page_size | integer | No | 10 | Number of records per page; maximum 20 |
Request body
Send a MultipleFieldSearchRequest JSON object.
| JSON field | Type | Required | Description |
|---|---|---|---|
start_date | string (date) | Yes | Search window start, in yyyy-MM-dd format |
end_date | string (date) | Yes | Search window end, in yyyy-MM-dd format; the date range cannot exceed three days |
merchant_code | string | No | Merchant code |
rrn | string | No | Retrieval reference number |
stan | string | No | System trace audit number |
masked_pan | string | No | Masked primary account number |
hashed_pan | string | No | Hashed primary account number |
terminal_id | string | No | Terminal ID |
unique_reference | string | No | Unique transaction reference |
transaction_amount | number | No | Transaction amount |
to_account | string | No | Destination account |
transaction_date | string (date) | No | Specific transaction date, in yyyy-MM-dd format |
cursor | string | No | Pagination cursor from the previous response |
Example request
curl -X POST "https://<host>/oneview/api/v1/gateway/quick-search-external?page_number=1&page_size=10" \
-H "Authorization: Bearer <client-token>" \
-H "Content-Type: application/json" \
-d '{
"start_date": "2024-11-20",
"end_date": "2024-11-22",
"masked_pan": "539941******1234",
"terminal_id": "2033GH99"
}'This example supplies two searchable fields. The service uses only the first populated searchable field, not both as combined filters.
Example response
HTTP 200 OK:
{
"timeStamp": "2024-11-24T10:15:30.000+00:00",
"responseMessage": "Transaction retrieved",
"responseCode": "202",
"dataSize": 1,
"pageNumber": 1,
"pageSize": 10,
"data": [
{
"globalOutputData": {
"category": "PURCHASE",
"amount": "1000.00",
"transactionDate": "2024-11-21",
"transactionStatus": "SUCCESSFUL",
"settlementDate": "2024-11-22",
"reconBusinessDate": "2024-11-21",
"settlementStatus": "SETTLED"
},
"transactionData": {
"maskedPan": "539941******1234",
"terminalId": "2033GH99",
"stan": "123456",
"channel": "POS",
"rrn": "112233445566",
"responseCode": "00",
"messageType": "0200",
"fromAccount": "0011223344",
"beneficiaryAccount": "0055667788",
"merchantName": "Test Merchant",
"merchantLocation": "Lagos",
"transactionReference": "REF-123456",
"cardType": "VERVE",
"customerId": "CUST001",
"merchantCode": "MERCH001",
"responseMessage": "Approved",
"currencyName": "NGN",
"tranReversed": "0",
"issuerCode": "UBA",
"acquirerCode": "GTB",
"transactionDateTime": "2024-11-21T14:30:00",
"transactionType": "PURCHASE",
"transactionTypeCode": "00",
"authorizationId": "AUTH001",
"transactionStore": "TIS",
"transactionId": "txn-uuid-1",
"disputeTransactionReference": null,
"transactionStatus": "SUCCESSFUL",
"isOriginatingEnriched": true,
"reconBusinessDate": "2024-11-21T00:00:00",
"settlementAmountImpact": 1000.00,
"transactionAmountReq": 1000.00,
"transactionAmountRsp": 1000.00,
"sinkNode": "SN001",
"sourceNode": "SRC001"
},
"additionalData": null
}
],
"cursor": null,
"hasMorePages": false,
"errors": null
}2. Reference search — external clients
POST /api/v1/gateway/reference-search-external
Search by a single reference field. The service looks up the transaction matching the supplied reference and returns its transaction record using the lean response format documented below.
This endpoint requires the CAN_PERFORM_TRANSACTION_SEARCH authority in addition to a client-credentials access token.
Query parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
reference_type | string | Yes | — | One of rrn, interswitch_reference, or transaction_number |
reference_id | string | Yes | — | Reference value to search; cannot be empty |
start_date | string (date) | Yes | — | Search window start, in yyyy-MM-dd format |
end_date | string (date) | Yes | — | Search window end, in yyyy-MM-dd format; the date range cannot exceed three days |
page_number | integer | No | 1 | Page number |
page_size | integer | No | 10 | Number of records per page; maximum 20 |
Request body
Send a CursorRequest JSON object. For an initial request without a cursor, send {}.
| JSON field | Type | Required | Description |
|---|---|---|---|
cursor | string | No | Pagination cursor from the previous response |
Example request
curl -X POST "https://<host>/oneview/api/v1/gateway/reference-search-external?reference_type=rrn&reference_id=112233445566&start_date=2024-11-20&end_date=2024-11-22&page_number=1&page_size=10" \
-H "Authorization: Bearer <client-token>" \
-H "Content-Type: application/json" \
-d '{}'Response
Expect HTTP 200 OK with body responseCode: "202". The response uses the same structure and transaction record fields as the multi-field search example: a ListResponse containing an array of LeanTransactionRecord objects.
Response handling and pagination
- Check the HTTP status. For
400,401, or403, inspect the response body and use the error guidance below. - For a successful search, read the transaction records from
data. UsedataSizeto check the number of records in the page; handle a page with no records without attempting to access a transaction. - Check
hasMorePages. If it istrue, use the returnedcursorin the next request body. Treat the cursor as an opaque value (pass it unchanged). - Stop requesting pages when
hasMorePagesisfalse. In the example response,cursorisnulland no further pages exist.
Response schema reference
ListResponse
| Field | Type | Description |
|---|---|---|
timeStamp | string (date-time) | Server timestamp |
responseMessage | string | Human-readable outcome |
responseCode | string | Always "202" for a successful search |
dataSize | integer | Number of records in this page |
pageNumber | integer | Current page |
pageSize | integer | Requested page size |
data | array of LeanTransactionRecord | Result records; the error example returns null |
cursor | string or null | Opaque cursor for the next page |
hasMorePages | boolean | Whether more pages exist |
errors | array of strings or null | Error messages |
LeanTransactionRecord
| Field | Type | Description |
|---|---|---|
globalOutputData | GlobalOutputData | Summary containing amount, status, and dates |
transactionData | TransactionData | Core transaction fields |
additionalData | object or null | Consolidated related legs when available |
GlobalOutputData
| Field | Type |
|---|---|
category | string |
amount | string |
transactionDate | string |
transactionStatus | string |
settlementDate | string |
reconBusinessDate | string |
settlementStatus | string |
TransactionData
| Field | Type | Notes |
|---|---|---|
maskedPan | string | Masked primary account number |
terminalId | string | Terminal ID |
stan | string | System trace audit number |
channel | string | — |
rrn | string | Retrieval reference number |
responseCode | string | Transaction-level response code, distinct from ListResponse.responseCode |
messageType | string | — |
fromAccount | string | — |
beneficiaryAccount | string | — |
merchantName | string | — |
merchantLocation | string | — |
transactionReference | string | — |
cardType | string | — |
customerId | string | — |
merchantCode | string | — |
responseMessage | string | Transaction-level response message |
currencyName | string | — |
tranReversed | string | — |
issuerCode | string | — |
acquirerCode | string | — |
transactionDateTime | string (date-time) | — |
transactionType | string | — |
transactionTypeCode | string | — |
authorizationId | string | — |
transactionStore | string | For example, MAIN, MAIN_OFFICE, or TIS |
transactionId | string | — |
disputeTransactionReference | string or null | — |
transactionStatus | string | — |
isOriginatingEnriched | boolean | — |
reconBusinessDate | string (date-time) | — |
settlementAmountImpact | number | — |
transactionAmountReq | number | — |
transactionAmountRsp | number | — |
sinkNode | string | — |
sourceNode | string | — |
expiryDate | string or null | — |
Important behavior notes
- Lean response only: Both external endpoints return
LeanTransactionRecordobjects, not separate settlement, dispute, or report data. The lean record still contains the summary and transaction fields listed above, including settlement-related fields. - Organization scoping: Search results are limited to your organization’s transactions.
Error responses
Common failures return HTTP 400 Bad Request, 401 Unauthorized, or 403 Forbidden with a JSON body.
Example error response
HTTP 400 Bad Request:
{
"timeStamp": "2024-11-24T10:15:30.000+00:00",
"responseMessage": "Page Size cannot be greater than 20",
"responseCode": "400",
"dataSize": 0,
"pageNumber": 0,
"pageSize": 0,
"data": null,
"cursor": null,
"hasMorePages": false,
"errors": ["Page Size cannot be greater than 20"]
}Troubleshooting
| Scenario | HTTP status | Response code in body | Action |
|---|---|---|---|
| Invalid date format | 400 | "400" | Format request dates as yyyy-MM-dd. |
start_date is later than end_date | 400 | "400" | Set start_date to a date on or before end_date. |
| Date range exceeds three days | 400 | "400" | Reduce the search window to no more than three days. |
page_size exceeds 20 | 400 | "400" | Set page_size to no more than 20. |
Missing or invalid reference_type | 400 | "400" | Supply rrn, interswitch_reference, or transaction_number. |
Empty reference_id | 400 | "400" | Supply the reference value you want to search. |
| Missing client token | 401 | "401" | Include a client-credentials access token in the Authorization header. |
| Client has no domain alias | 400 | "400" | Check the client’s domain alias configuration. |
Missing CAN_PERFORM_TRANSACTION_SEARCH on reference search | 403 | "403" | Ensure your client has the required authority before retrying. |
Updated about 14 hours ago
