预约接单超时回调
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://xxxxxxx.net/api/v2/book_callback
当预约提交后一定时间后还没收到开发者的接单通知,平台会向开发者发送接单超时回调,开发者需要返回接单结果。
基本信息
名称 | 描述 |
---|---|
HTTP URL | 在行业模板配置-服务端扩展点-预约扩展点中指定的回调地址,配置方式参考行业模板配置文档 |
HTTP Method | POST |
请求参数
名称 | 类型 | 是否必填 | 描述 |
---|---|---|---|
app_id | string | 是 | 小程序appid |
order_id | string | 是 | 抖音侧订单号,len <= 64 byte |
book_id | string | 是 | 预约单id,len <= 64 byte |
out_book_no | string | 是 | 开发者预约单id,len <= 64 byte |
msg 内部结构
{
"order_id": "614167279916",
"app_id": "xxx",
"out_book_no": "xxx",
"book_id": "xxx"
}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://xxxxxxx.net/api/v2/book_callback?timestamp=1345678901234&nonce=iuy987q4htafreqw' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": "2.0",
"msg": "序列化后的json字符串",
"type": "book_accept_timeout"
}'
响应示例响应示例
{
"err_no": 0,
"err_tips": "string",
"data": {
"result": 0,
"msg": "string",
"accept_type": 0
}
}
请求参数
Query 参数
timestamp
string
可选
示例值:
1345678901234
nonce
string
可选
示例值:
iuy987q4htafreqw
Body 参数application/json