跳至主要内容

List Transactions API

HTTP Request

GET /v5/bybitpay/agreement/pay/list

Query deduction transaction or refund record list under an agreement with pagination support.


Request Parameters

ParameterTypeRequiredDescription
merchant_idstringYesMerchant ID
user_idstringYesPlatform user ID
agreement_typestringYesSign type: CYCLE / NON_CYCLE / SINGLE
agreement_nostringYesPlatform agreement number
record_typestringNoRecord type: PAY (default) / REFUND
statusstringNoStatus filter: SUCCESS / FAILED / PROCESSING
start_timestringNoStart time (ISO8601)
end_timestringNoEnd time (ISO8601)
page_nointNoPage number, default 1
page_sizeintNoPage size, default 20, max 100

Response Parameters (Deduction Transactions)

ParameterTypeDescription
retCodeintResponse code
retMsgstringResponse message
resultobjectResponse data
result.totalintTotal record count
result.page_nointCurrent page number
result.page_sizeintPage size
result.listarrayTransaction list
result.list[].trade_nostringPlatform trade number
result.list[].out_trade_nostringMerchant order number
result.list[].statusstringTransaction status
result.list[].amountobjectRequested amount
result.list[].crypto_paymentobjectActual crypto payment (for fiat orders)
result.list[].pay_timestringPayment time
result.list[].refund_amountobjectRefunded amount

Response Parameters (Refund Records)

ParameterTypeDescription
retCodeintResponse code
retMsgstringResponse message
resultobjectResponse data
result.totalintTotal record count
result.page_nointCurrent page number
result.page_sizeintPage size
result.listarrayRefund list
result.list[].refund_nostringPlatform refund number
result.list[].out_refund_nostringMerchant refund number
result.list[].trade_nostringOriginal trade number
result.list[].statusstringRefund status
result.list[].refund_amountobjectRefund amount
result.list[].refund_timestringRefund success time
result.list[].failure_reasonstringFailure reason

Request Examples

List Successful Transactions

GET /v5/bybitpay/agreement/pay/list?merchant_id=M123456789&user_id=U_123456789&agreement_type=CYCLE&agreement_no=AGR202601070001&record_type=PAY&status=SUCCESS&page_no=1&page_size=20 HTTP/1.1
Host: api2.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1736233200000
X-BAPI-SIGN: {signature}
X-BAPI-RECV-WINDOW: 5000

List All Transactions with Time Range

GET /v5/bybitpay/agreement/pay/list?merchant_id=M123456789&user_id=U_123456789&agreement_type=CYCLE&agreement_no=AGR202601070001&record_type=PAY&start_time=2026-01-01T00:00:00Z&end_time=2026-01-31T23:59:59Z&page_no=1&page_size=50 HTTP/1.1
Host: api2.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1736233200000
X-BAPI-SIGN: {signature}
X-BAPI-RECV-WINDOW: 5000

List Refund Records

GET /v5/bybitpay/agreement/pay/list?merchant_id=M123456789&user_id=U_123456789&agreement_type=CYCLE&agreement_no=AGR202601070001&record_type=REFUND&page_no=1&page_size=20 HTTP/1.1
Host: api2.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1736233200000
X-BAPI-SIGN: {signature}
X-BAPI-RECV-WINDOW: 5000

Response Examples

Deduction Transaction List

{
"retCode": 20000,
"retMsg": "Success",
"result": {
"total": 50,
"page_no": 1,
"page_size": 20,
"list": [
{
"trade_no": "PAY202601070001",
"out_trade_no": "ORDER20260107001",
"status": "SUCCESS",
"amount": {
"total": "2350",
"currency": "USDT",
"currency_type": "CRYPTO",
"chain": "TRC20"
},
"pay_time": "2026-01-07T10:30:00Z",
"refund_amount": {
"total": "0",
"currency": "USDT",
"currency_type": "CRYPTO"
}
},
{
"trade_no": "PAY202601070002",
"out_trade_no": "ORDER20260107002",
"status": "SUCCESS",
"amount": {
"total": "10000",
"currency": "USD",
"currency_type": "FIAT"
},
"crypto_payment": {
"currency": "USDT",
"amount": "10005.50",
"chain": "TRC20",
"exchange_rate": "1.00055",
"rate_time": "2026-01-07T10:29:55Z"
},
"pay_time": "2026-01-07T14:30:00Z",
"refund_amount": {
"total": "2000",
"currency": "USD",
"currency_type": "FIAT"
}
}
]
}
}

Refund Record List

{
"retCode": 20000,
"retMsg": "Success",
"result": {
"total": 10,
"page_no": 1,
"page_size": 20,
"list": [
{
"refund_no": "RF202601070001",
"out_refund_no": "REFUND20260107001",
"trade_no": "PAY202601070001",
"status": "SUCCESS",
"refund_amount": {
"total": "2350",
"currency": "USDT",
"currency_type": "CRYPTO",
"chain": "TRC20"
},
"refund_time": "2026-01-07T11:30:00Z"
},
{
"refund_no": "RF202601070002",
"out_refund_no": "REFUND20260107002",
"trade_no": "PAY202601070002",
"status": "SUCCESS",
"refund_amount": {
"total": "2000",
"currency": "USD",
"currency_type": "FIAT"
},
"refund_time": "2026-01-07T16:00:00Z"
}
]
}
}

Notes

  • Use pagination for large result sets
  • Combine status and time range filters for efficient querying
  • crypto_payment is only present for fiat currency transactions