Version: 202201
Transaction List
GET/openapi/2022-01/orders/:id/transactions
Retrieve all transactions attached to the specified order, including status, payment channel, amount, and gateway response details.
Request
Path Parameters
id stringrequired
Order's ID
Query Parameters
status string
Transaction status, authorized, void, processing, success, error, refunding, refunded, refund_failed,expire
payment_channel string
Payment channel
Responses
- 200
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
transactions object[]
idstring
Example:
2150768865order_idstring
Example:
633130-00000007payment_channelstring
Example:
bogusmessagestring
Example:
created_atstring
Example:
2024-04-19 09:54:03testboolean
Default value:
trueExample:
trueerror_codestring
Example:
amountstring
Example:
109.9000currencystring
Example:
CNYtrade_idstring
Example:
test_633130-00000007statusstring
Example:
successpayment_details object
card_numberstring
Example:
420000******0000card_monthstring
Example:
01card_yearstring
Example:
27card_first_namestring
Example:
ryancard_last_namestring
Example:
zhangcard_first_fixstring
Example:
420000card_last_fourstring
Example:
0000avs_result_codestring
Example:
cvv_result_codestring
Example:
payment_namestring
Example:
countinteger
Default value:
0Example:
1since_idstring
Example:
2150768865{
"transactions": [
{
"id": "2150768865",
"order_id": "633130-00000007",
"payment_channel": "bogus",
"message": "",
"created_at": "2024-04-19 09:54:03",
"test": true,
"error_code": "",
"amount": "109.9000",
"currency": "CNY",
"trade_id": "test_633130-00000007",
"status": "success",
"payment_details": {
"card_number": "420000******0000",
"card_month": "01",
"card_year": "27",
"card_first_name": "ryan",
"card_last_name": "zhang",
"card_first_fix": "420000",
"card_last_four": "0000",
"avs_result_code": "",
"cvv_result_code": ""
},
"payment_name": ""
}
],
"count": 1,
"since_id": "2150768865"
}
{
"transactions": [
{
"id": "2150768865",
"order_id": "633130-00000007",
"payment_channel": "bogus",
"message": "",
"created_at": "2024-04-19 09:54:03",
"test": true,
"error_code": "",
"amount": "109.9000",
"currency": "CNY",
"trade_id": "test_633130-00000007",
"status": "success",
"payment_details": {
"card_number": "420000******0000",
"card_month": "01",
"card_year": "27",
"card_first_name": "ryan",
"card_last_name": "zhang",
"card_first_fix": "420000",
"card_last_four": "0000",
"avs_result_code": "",
"cvv_result_code": ""
},
"payment_name": ""
}
],
"count": 1,
"since_id": "2150768865"
}