POST
Query transactions
Use this endpoint to retrieve transaction records for reconciliation, chargeback handling, and reporting at the transaction-record level.
Request
merchantNoMerchant number assigned by Onerway. See Setup for how to obtain it.
Example:
replace_with_merchant_nomerchantTxnIdsCondition: Provide this field as one query condition. At least one of
Comma-separated merchant transaction numbers used to query transactions in batch.merchantTxnIds, transactionIds, or startTime + endTime is required.Example:
txn_demo_202606210001,txn_demo_202606210002Constraints
- Range
10IDsA single request can include up to 10 comma-separated IDs.
transactionIdsCondition: Provide this field as one query condition. At least one of
Comma-separated Onerway transaction IDs used to query transactions in batch.merchantTxnIds, transactionIds, or startTime + endTime is required.Example:
2031908578000000000,2031908578000000001Constraints
- Range
10IDsA single request can include up to 10 comma-separated IDs.
startTimeCondition: Required together with
Start of the query time range, filtered by transaction creation time, in endTime when querying by time range. At least one of merchantTxnIds, transactionIds, or startTime + endTime is required.yyyy-MM-dd HH:mm:ss format.Example:
2026-06-01 00:00:00Constraints
- Rule
- The maximum range between
startTimeandendTimeis 90 days.
endTimeCondition: Required together with
End of the query time range, in startTime when querying by time range.yyyy-MM-dd HH:mm:ss format.Example:
2026-06-21 23:59:59Constraints
- Consistency
endTimemust be later thanstartTime.- Rule
- The maximum range between
startTimeandendTimeis 90 days.
txnTypesTransaction types used to filter results. Submit multiple values as a comma-separated string. When omitted, Onerway returns all transaction types.
Example:
SALE,AUTH,REFUNDAllowed values
SALE- Payment transaction.
AUTH- Authorization transaction.
REFUND- Refund transaction.
currentQuery page number.
0 and 1 both mean the first page. The response current value is always returned as a 1-based page number.Example:
1sizePage size. The current endpoint returns 10 records per page and does not support a custom page size.
Example:
10signRequest signature string. See Request signing for how to generate it.
curl -X POST 'https://sandbox-acq.onerway.com/v1/txn/list' \
-H 'Content-Type: application/json' \
--data-raw '{
"merchantNo": "replace_with_merchant_no",
"transactionIds": "replace_with_transaction_id",
"current": "0",
"sign": "{{SIGN}}"
}'Response
respCode20000 means the query request was processed successfully. It does not mean each transaction has succeeded. Other values are error codes. See Response codes.respMsgHuman-readable message for the response code.
data{ content, current, ... }Business data object containing transaction records and pagination information.
{
"respCode": "20000",
"respMsg": "Success",
"data": {
"content": [
{
"transactionId": "replace_with_transaction_id",
"paymentId": "replace_with_payment_id",
"merchantTxnId": "example_merchant_transaction_id",
"merchantTxnOriginalId": null,
"txnTime": "2026-01-15 10:30:00",
"txnTimeZone": "+08:00",
"txnCompletionTime": "2026-01-15 10:30:30",
"originTransactionId": null,
"productType": "CARD",
"subProductType": "DIRECT",
"txnType": "SALE",
"status": "S",
"contractId": null,
"tokenId": null,
"userPaymentStatus": null,
"cardType": "AE",
"paymentMethod": "AE",
"orderAmount": "100.00",
"settleRate": "1",
"orderCurrency": "USD",
"txnAmount": "100.00",
"txnCurrency": "USD",
"customsDeclarationAmount": null,
"customsDeclarationCurrency": null,
"arn": null,
"appId": "replace_with_app_id",
"website": "https://merchant.example.com",
"cardBinCountry": "US",
"cardNumber": "370000******0002",
"walletTypeName": null,
"reason": null,
"holderName": "Example Cardholder",
"eci": null,
"email": "customer@example.com",
"creditCard": {
"holderName": "Example Cardholder",
"year": "2029",
"month": "11",
"verificationResult": null,
"cardType": "AE",
"productCategory": null,
"issuer": "Example American Express Issuer",
"cardNumber": "370000******0002"
},
"channelRequestId": "replace_with_channel_request_id",
"lpmsUserId": null,
"paymentMethodDetails": {
"card": {
"checks": {
"addressCheck": "fail",
"postalCodeCheck": "fail",
"cardholderNameCheck": "fail",
"avsResultRawCode": "W",
"threeDSecureResult": null
},
"holderName": "Example Cardholder",
"year": "2029",
"month": "11",
"cardType": "AE",
"productCategory": null,
"issuer": "Example American Express Issuer",
"cardBinCountry": "US",
"authorizationCode": "replace_with_authorization_code",
"cardNumber": "370000******0002"
}
},
"metaData": null
}
],
"current": "1",
"size": 10,
"totalPages": 1,
"totalElements": 1
}
}No error responses are documented for this endpoint.