Onerway
POST

Query chargebacks

Use this endpoint to retrieve chargeback records for merchant transactions. Contact Onerway before calling this endpoint because chargeback query access must be enabled first.

Request

merchantNo
Merchant number assigned by Onerway. See Setup for how to obtain it.
Example:
chargebackIds
Condition: Provide this field as one query condition. At least one of merchantTxnIds, originTransactionIds, chargebackIds, or importTimeStart + importTimeEnd is required.
Comma-separated Onerway chargeback IDs used to query chargeback records in batch.
Example:
Constraints
Range
10IDsA single request can include up to 10 comma-separated IDs.
merchantTxnIds
Condition: Provide this field as one query condition. At least one of merchantTxnIds, originTransactionIds, chargebackIds, or importTimeStart + importTimeEnd is required.
Comma-separated merchant transaction numbers used to query chargeback records in batch.
Example:
Constraints
Range
10IDsA single request can include up to 10 comma-separated IDs.
originTransactionIds
Condition: Provide this field as one query condition. At least one of merchantTxnIds, originTransactionIds, chargebackIds, or importTimeStart + importTimeEnd is required.
Comma-separated original Onerway transaction IDs used to query chargeback records in batch.
Example:
Constraints
Range
10IDsA single request can include up to 10 comma-separated IDs.
importTimeStart
Condition: Provide this field as one query condition. At least one of merchantTxnIds, originTransactionIds, chargebackIds, or importTimeStart + importTimeEnd is required.
Start of the time range, filtered by the time when Onerway received the chargeback transaction, in yyyy-MM-dd HH:mm:ss format.
Example:
Constraints
Rule
When querying by time range, submit both importTimeStart and importTimeEnd. The maximum range is 90 days.
importTimeEnd
Condition: Provide this field as one query condition. At least one of merchantTxnIds, originTransactionIds, chargebackIds, or importTimeStart + importTimeEnd is required.
End of the time range, in yyyy-MM-dd HH:mm:ss format. It must be later than importTimeStart.
Example:
Constraints
Rule
When querying by time range, submit both importTimeStart and importTimeEnd. The maximum range is 90 days.
current
Query page number. 0 and 1 both mean the first page. The response current value is always returned as a 1-based page number.
Example:
sign
Request signature string. See Request signing for how to generate it.

Request example

curl -X POST 'https://sandbox-acq.onerway.com/v1/chargeback/list' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "current": "1",
  "importTimeEnd": "2026-06-21 23:59:59",
  "importTimeStart": "2026-06-01 00:00:00",
  "merchantNo": "replace_with_merchant_no",
  "sign": "{{SIGN}}"
}'

Response

respCode
20000 means the query request was processed successfully. Other values are error codes. See Response codes.
respMsg
Human-readable message for the response code.
Chargeback records and pagination information.

Response example

Example code is unavailable.

No error responses are documented for this endpoint.