信用下单
接口说明
使用限制
无
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/api/trade_auth/v1/developer/create_auth_order/ |
HTTP Method | POST |
Scope | trade_auth.developer.trade_auth |
权限要求 | 无 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
示例:application/json
固定值"application/json"
Body
admissible_token必填String
示例:"twerwe123"
准入token,调用信用准入查询获取准入token
out_auth_order_no必填String
示例:"out_order_1"
信用单开发者的单号,长度<=64byte
notify_urlString
示例:"https://www.asdasd"
下单回调地址,https开头,长度<=512byte
请求示例
curl --location --request POST 'https://open.douyin.com/api/trade_auth/v1/developer/create_auth_order' \ --header 'Content-Type: application/json' \ --header 'access-token: clt.xxx' \ --data-raw='{ "admissible_token" : "twerwe123", "out_auth_order_no" : "out_order_1", "notify_url" : "https://www.asdasd" }'
响应参数
Body展开全部子属性
err_msg必填String
错误提示
err_no必填Int32
示例:0
错误码
log_id必填String
示例:2023010128382726
抖音开平统一日志id
dataStruct
返回的数据信息,err_no为0 必填
展开子属性
响应示例
正常响应示例异常响应示例
{ "data": { "auth_order_id": "ad712312312313213" }, "err_no": 0, "err_msg": "success", "log_id": "2022092115392201020812109511046" }
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 10000 | 参数错误 | 对照错误提示和接口字段定义,检查对应的参数 |
200 | 13000 | 系统错误 | 请重试,若多次重试仍然报错,请联系oncall |