跳至主要内容

List Transactions API

HTTP Request​

GET /v5/pay/agreement/transaction/list

Query deduction transaction and refund record lists under an agreement with pagination and time range filtering support.


Request Parameters​

ParameterTypeRequiredDescription
merchantIdstringYesMerchant ID
userIdstringYesPlatform user ID
agreementTypestringYesSign type: CYCLE / NON_CYCLE / SINGLE
agreementNostringYesPlatform agreement number
recordTypestringNoRecord type: PAY (default) / REFUND
statusstringNoStatus filter: SUCCESS / FAILED / PROCESSING
startTimestringNoStart time (ISO8601)
endTimestringNoEnd time (ISO8601)
pageNointNoPage number, default 1
pageSizeintNoPage size, default 20, max 100

Response Parameters​

ParameterTypeDescription
retCodeintResponse code
retMsgstringResponse message
resultobjectResponse data
result.totalintTotal record count
result.pageNointCurrent page number
result.pageSizeintPage size
result.tradeListarrayDeduction transaction entries in the current page
result.tradeList[].tradeNostringPlatform trade number
result.tradeList[].outTradeNostringMerchant order number
result.tradeList[].statusstringTransaction status: PROCESSING / SUCCESS / FAILED / TIMEOUT
result.tradeList[].amountobjectMerchant requested amount
result.tradeList[].amount.totalstringAmount (minimum unit)
result.tradeList[].amount.currencystringCurrency code
result.tradeList[].amount.currencyTypestringCurrency type: FIAT / CRYPTO
result.tradeList[].amount.chainstringChain network
result.tradeList[].cryptoPaymentobjectDefined by the response schema but not populated by the current list implementation
result.tradeList[].payTimestringPayment time
result.tradeList[].refundAmountobjectDefined by the response schema but not populated by the current list implementation
result.refundListarrayRefund entries in the current page
result.refundList[].refundNostringPlatform refund number
result.refundList[].outRefundNostringMerchant refund number
result.refundList[].tradeNostringOriginal trade number
result.refundList[].statusstringRefund status: PROCESSING / SUCCESS / FAILED / TIMEOUT
result.refundList[].refundAmountobjectRefund amount
result.refundList[].refundAmount.totalstringRefund amount (minimum unit)
result.refundList[].refundAmount.currencystringCurrency code
result.refundList[].refundAmount.currencyTypestringCurrency type: FIAT / CRYPTO
result.refundList[].refundTimestringRefund success time
result.refundList[].failureReasonstringFailure reason (returned on failure)

Request Examples​

信息

The examples retain recordType for request compatibility. The current list implementation does not use this parameter as a filter, so it does not guarantee that only one record type is returned.

List Successful Transactions​

GET /v5/pay/agreement/transaction/list?merchantId=M123456789&userId=U_123456789&agreementType=CYCLE&agreementNo=AGR202601070001&recordType=PAY&status=SUCCESS&pageNo=1&pageSize=20 HTTP/1.1
Host: api.bybit.com
X-Request-Id: 550e8400-e29b-41d4-a716-446655440000
X-Timestamp: 1736233200000
X-Signature: {signature}
Authorization: Bearer {access_token}

List All Transactions with Time Range​

GET /v5/pay/agreement/transaction/list?merchantId=M123456789&userId=U_123456789&agreementType=CYCLE&agreementNo=AGR202601070001&recordType=PAY&startTime=2026-01-01T00:00:00Z&endTime=2026-01-31T23:59:59Z&pageNo=1&pageSize=50 HTTP/1.1
Host: api.bybit.com
X-Request-Id: 550e8400-e29b-41d4-a716-446655440000
X-Timestamp: 1736233200000
X-Signature: {signature}
Authorization: Bearer {access_token}

List Refund Records​

GET /v5/pay/agreement/transaction/list?merchantId=M123456789&userId=U_123456789&agreementType=CYCLE&agreementNo=AGR202601070001&recordType=REFUND&pageNo=1&pageSize=20 HTTP/1.1
Host: api.bybit.com
X-Request-Id: 550e8400-e29b-41d4-a716-446655440000
X-Timestamp: 1736233200000
X-Signature: {signature}
Authorization: Bearer {access_token}

Response Examples​

Deduction Transaction List​

{
"retCode": 20000,
"retMsg": "Success",
"result": {
"total": 50,
"pageNo": 1,
"pageSize": 20,
"tradeList": [
{
"tradeNo": "PAY202601070001",
"outTradeNo": "ORDER20260107001",
"status": "SUCCESS",
"amount": {
"total": "2350",
"currency": "USDT",
"currencyType": "CRYPTO",
"chain": "TRC20"
},
"payTime": "2026-01-07T10:30:00Z"
}
],
"refundList": []
}
}

Refund Record List​

{
"retCode": 20000,
"retMsg": "Success",
"result": {
"total": 10,
"pageNo": 1,
"pageSize": 20,
"tradeList": [],
"refundList": [
{
"refundNo": "RF202601070001",
"outRefundNo": "REFUND20260107001",
"tradeNo": "PAY202601070001",
"status": "SUCCESS",
"refundAmount": {
"total": "2350",
"currency": "USDT",
"currencyType": "CRYPTO"
},
"refundTime": "2026-01-07T11:30:00Z",
"failureReason": ""
}
]
}
}

Notes​

  • Use pagination for large result sets
  • Combine status and time range filters for efficient querying
  • The response includes both tradeList and refundList; either list can be empty depending on the current page contents