抖音开放平台Logo
开发者文档
“/”唤起搜索
控制台

接口说明

抖音侧通知第三方取消订单。
通知类型的接口 请勿返回业务类型的错误(譬如订单不存在)

基本信息

Scope
life.trade.meal_retail_spi_cancel_order_notify
权限要求
回调场景

请求头

    Content-Type:application/json
    X-Bytedance-Logid: 请求 logid, 用于问题排查用
    x-life-clientkey: 服务商应用的 client_key

请求参数

名称
类型
是否必填
描述
示例值
order_id
string
抖音侧订单 ID
100001
order_out_id
string
外部订单ID
20001
cancel_type
int
取消类型,1 支付前取消,2 支付后取消
1
timestamp
int
取消订单的时间戳,秒
1678859379
请求示例

响应参数

名称
类型
是否必填
描述
示例值
data
struct
- error_code
int
错误码,合法范围为 [0,999999]
0
- description
string
错误信息
响应示例
{ "data": { "error_code": 0, "description": "", } }

错误码

error_code
description
备注
0
成功
100
...
抖音侧需要重试,其他错误码抖音不重试