跳到主要内容

交易

Action 前缀:order/… · 认证:Brand API 认证

order/new — 创建交易

Key说明RequiredType
order_number你的唯一订单号Yesstring
pbtidPartnerBoost 点击追踪码Nostring
is_new_customer是否为品牌新客Nobool
uid品牌侧用户标识Nostring
currency订单币种Yesstring
trans_time订单交易时间Yesstring
amount实际订单金额Nodouble
quantity商品数量Noint
remark任意备注Nostring
couponcodecouponcode 参数接收订单中使用的优惠券、促销和/或折扣码的逗号分隔列表Nostring
skusSKU 列表(订单有 SKU 时必填,否则请传 amount)Noarray

skus 子字段

Key说明RequiredType
id商品 SKU IDYesstring
name商品名称Nostring
amount实际 SKU 金额Yesdouble
quantity商品数量Noint
remark任意备注Nostring

请求:

{
"order_number": "RMD17ea9a09be7c4bd4101aa3d21df80b47",
"currency": "USD",
"trans_time": "Thu, 20 Jan 2022 05:27:30 GMT",
"pbtid": "ldc_xdw3",
"amount": 111.55,
"skus": [
{
"id": "B07K1WWBJK",
"name": "Apple Pencil (2nd Generation)",
"amount": 11.15,
"quantity": 1
}
]
}

响应:

{
"code": 0,
"data": "210120052732256X22",
"msg": "success"
}

order/void — 作废交易

Key说明RequiredType
order_number你的唯一订单号Yesstring

order/effective — 确认交易

Key说明RequiredType
order_number你的唯一订单号Yesstring

order/bonus — 发放奖金

Key说明RequiredType
medium_id媒体渠道标识Yesstring
currency订单币种Yesstring
trans_time订单交易时间Yesstring
commission发给媒体的佣金Yesdouble
remark任意备注Nostring

生命周期

order/new → order/effective(确认)或 order/void(取消)
order/bonus(独立奖金路径)
幂等

请使用稳定的 order_number。重复提交可能因订单状态返回错误。