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

  1. Obtain a client-credentials access token.
  2. Ensure your client is profiled under at least one organization. Search results are scoped to that organization.
  3. For reference search, ensure your client has the CAN_PERFORM_TRANSACTION_SEARCH authority.
  4. 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:

HeaderValueRequired
AuthorizationBearer <client-credentials-access-token>Yes

Authorization differences

EndpointAuthority required
POST /api/v1/gateway/quick-search-externalClient token only; no additional authority check
POST /api/v1/gateway/reference-search-externalClient token plus CAN_PERFORM_TRANSACTION_SEARCH

Common request rules

  • Format request dates as yyyy-MM-dd, for example, 2024-11-24.
  • Set page_size to no more than 20. The default is 10.
  • Use page_number to select a page. The default is 1.
  • Keep the date range from start_date to end_date within three days.
  • Successful searches return HTTP 200 OK with responseCode: "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

NameTypeRequiredDefaultDescription
page_numberintegerNo1Page number
page_sizeintegerNo10Number of records per page; maximum 20

Request body

Send a MultipleFieldSearchRequest JSON object.

JSON fieldTypeRequiredDescription
start_datestring (date)YesSearch window start, in yyyy-MM-dd format
end_datestring (date)YesSearch window end, in yyyy-MM-dd format; the date range cannot exceed three days
merchant_codestringNoMerchant code
rrnstringNoRetrieval reference number
stanstringNoSystem trace audit number
masked_panstringNoMasked primary account number
hashed_panstringNoHashed primary account number
terminal_idstringNoTerminal ID
unique_referencestringNoUnique transaction reference
transaction_amountnumberNoTransaction amount
to_accountstringNoDestination account
transaction_datestring (date)NoSpecific transaction date, in yyyy-MM-dd format
cursorstringNoPagination 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

NameTypeRequiredDefaultDescription
reference_typestringYes—One of rrn, interswitch_reference, or transaction_number
reference_idstringYes—Reference value to search; cannot be empty
start_datestring (date)Yes—Search window start, in yyyy-MM-dd format
end_datestring (date)Yes—Search window end, in yyyy-MM-dd format; the date range cannot exceed three days
page_numberintegerNo1Page number
page_sizeintegerNo10Number of records per page; maximum 20

Request body

Send a CursorRequest JSON object. For an initial request without a cursor, send {}.

JSON fieldTypeRequiredDescription
cursorstringNoPagination 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

  1. Check the HTTP status. For 400, 401, or 403, inspect the response body and use the error guidance below.
  2. For a successful search, read the transaction records from data. Use dataSize to check the number of records in the page; handle a page with no records without attempting to access a transaction.
  3. Check hasMorePages. If it is true, use the returned cursor in the next request body. Treat the cursor as an opaque value (pass it unchanged).
  4. Stop requesting pages when hasMorePages is false. In the example response, cursor is null and no further pages exist.

Response schema reference

ListResponse

FieldTypeDescription
timeStampstring (date-time)Server timestamp
responseMessagestringHuman-readable outcome
responseCodestringAlways "202" for a successful search
dataSizeintegerNumber of records in this page
pageNumberintegerCurrent page
pageSizeintegerRequested page size
dataarray of LeanTransactionRecordResult records; the error example returns null
cursorstring or nullOpaque cursor for the next page
hasMorePagesbooleanWhether more pages exist
errorsarray of strings or nullError messages

LeanTransactionRecord

FieldTypeDescription
globalOutputDataGlobalOutputDataSummary containing amount, status, and dates
transactionDataTransactionDataCore transaction fields
additionalDataobject or nullConsolidated related legs when available

GlobalOutputData

FieldType
categorystring
amountstring
transactionDatestring
transactionStatusstring
settlementDatestring
reconBusinessDatestring
settlementStatusstring

TransactionData

FieldTypeNotes
maskedPanstringMasked primary account number
terminalIdstringTerminal ID
stanstringSystem trace audit number
channelstring—
rrnstringRetrieval reference number
responseCodestringTransaction-level response code, distinct from ListResponse.responseCode
messageTypestring—
fromAccountstring—
beneficiaryAccountstring—
merchantNamestring—
merchantLocationstring—
transactionReferencestring—
cardTypestring—
customerIdstring—
merchantCodestring—
responseMessagestringTransaction-level response message
currencyNamestring—
tranReversedstring—
issuerCodestring—
acquirerCodestring—
transactionDateTimestring (date-time)—
transactionTypestring—
transactionTypeCodestring—
authorizationIdstring—
transactionStorestringFor example, MAIN, MAIN_OFFICE, or TIS
transactionIdstring—
disputeTransactionReferencestring or null—
transactionStatusstring—
isOriginatingEnrichedboolean—
reconBusinessDatestring (date-time)—
settlementAmountImpactnumber—
transactionAmountReqnumber—
transactionAmountRspnumber—
sinkNodestring—
sourceNodestring—
expiryDatestring or null—

Important behavior notes

  • Lean response only: Both external endpoints return LeanTransactionRecord objects, 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

ScenarioHTTP statusResponse code in bodyAction
Invalid date format400"400"Format request dates as yyyy-MM-dd.
start_date is later than end_date400"400"Set start_date to a date on or before end_date.
Date range exceeds three days400"400"Reduce the search window to no more than three days.
page_size exceeds 20400"400"Set page_size to no more than 20.
Missing or invalid reference_type400"400"Supply rrn, interswitch_reference, or transaction_number.
Empty reference_id400"400"Supply the reference value you want to search.
Missing client token401"401"Include a client-credentials access token in the Authorization header.
Client has no domain alias400"400"Check the client’s domain alias configuration.
Missing CAN_PERFORM_TRANSACTION_SEARCH on reference search403"403"Ensure your client has the required authority before retrying.

Did this page help you?