跳到主要内容
版本:202201

查询订单交易列表

GET 

/openapi/2022-01/orders/:id/transactions

查询指定订单下的全部交易记录,包含交易状态、支付渠道、金额及网关返回信息等。

请求

Path参数

    id string必填

    Order's ID

Query参数

    status string

    交易状态。

    • authorized: 已授权但尚未扣款。
    • void: 已取消。
    • processing: 处理中。
    • success: 交易成功。
    • error: 交易失败。
    • refunding: 退款中。
    • refunded: 已退款。
    • refund_failed: 退款失败。
    • expire: 已过期。
    payment_channel string

    支付渠道(如 paypal)。

响应

200

数据结构
    transactions object[]
  • Array [
  • idstring
    示例: 2150768865
    order_idstring
    示例: 633130-00000007
    payment_channelstring
    示例: bogus
    messagestring
    示例:
    created_atstring
    示例: 2024-04-19 09:54:03
    testboolean
    默认值: true
    示例: true
    error_codestring
    示例:
    amountstring
    示例: 109.9000
    currencystring
    示例: CNY
    trade_idstring
    示例: test_633130-00000007
    statusstring
    示例: success
    payment_details object
    card_numberstring
    示例: 420000******0000
    card_monthstring
    示例: 01
    card_yearstring
    示例: 27
    card_first_namestring
    示例: ryan
    card_last_namestring
    示例: zhang
    card_first_fixstring
    示例: 420000
    card_last_fourstring
    示例: 0000
    avs_result_codestring
    示例:
    cvv_result_codestring
    示例:
    payment_namestring
    示例:
  • ]
  • countinteger
    默认值: 0
    示例: 1
    since_idstring
    示例: 2150768865