https://test.api.yc-client.anestcang.comhttps://api.yc-client.anestcang.comyc_u8VtWSYfwX4SCDeHsIcndKm7cAPUR2io8WqhhhUysbilo4E0yeUcCAuthorization : Bearer 980|t7yNjmZK4F73dyHB0Rk1tL9KJZ6Abncl4n5nGOF8{
"state": "000001",
"msg": "注销成功",
"data": []
}{
"state": "000001",
"msg": "请求成功",
"data": {
"list": [
{
"id": 5,
"channelName": "LGS-挂号",
"channelCode": "Y7002S",
"status": 1,
"labelSize": 1,
"maxWeigh": 1000,
"channelType": 1,
"platformCode": [
"SE"
]
}
],
"total": 19,
"page": 1,
"prePage": 10
}
}| 状态码 | 描述 |
|---|---|
| 000001 | 成功 |
| 000400 | 请求失败,详细见描述(msg) |
| 000401 | 鉴权失败 (token已过期或者token无效) |
| 000403 | 无权限访问 |
| 000405 | 请求方法不允许 |
| 000422 | 请求数据异常 |
| 000429 | 请求太频繁 |
| 000500 | 程序内部错误 |
| 011xxx | 订单相关 |
| 012xxx | 入库相关 |
| 013xxx | 商品相关 |
| 014xxx | 换单相关 |
| 015xxx | 退货相关 |
1分钟限制300次请求. 超过次数则响应state为000429POST /example/uri HTTP/1.1
Host: www.example.com
Content-Type: application/json
Content-Length: 1238
Authorization: 8947b18cf1b62e3196109a6a008f28d5(MD5签名)
#消息体 json
{"data":{"for":"bar"},"requestId":"1c408a05-32d0-4919-aebf-d8aa21a63991","timestamp":1668158845,"msgType":"IN_ORDER","appKey":"yc_u8VtWSYfwX4SCDeHsIcndKm7c"}Authorization :MD5(消息体+appSecret) 32位[小]{
"state": "000001",
"msg": "接收成功"
}| 状态码 | 描述 |
|---|---|
| 000001 | 成功 |
| 000400 | 请求失败 |
| 000500 | 程序内部错误 |
000001的响应做重试,重试次数10次订阅 模块,可以通过签名推送测试,模 拟测试消息推送。