POST api/SimpleVendingMachine/OrderSwitch
售药机订单交互
请求的信息
URI参数
None.
Body参数
入参模型
OrderSwitchInfo名称 | 描述 | 类型 | 其它信息 |
---|---|---|---|
vendingMachineNo |
[必传]售药机订单号 |
string |
None. |
branchNo |
[必传]门店号 |
string |
None. |
deviceCode |
[必传]售药机编码 |
string |
None. |
type |
[必传]交互类型 0:上架 1:下架 2:售卖 3:退款 |
integer |
None. |
orderTotal |
订单金额,默认为0 |
decimal number |
None. |
payType |
支付类型 -1 在线支付 1支付宝 21微信 7银联 |
integer |
None. |
orderStatus |
[必传]订单状态 0:待确定 1:已确定 2:订单异常 |
integer |
None. |
createTime |
[必传]创建时间 yyyy-MM-dd HH:DD:SS |
string |
None. |
confirmationTime |
[必传]确认时间 yyyy-MM-dd HH:DD:SS |
string |
None. |
list |
明细集合 |
Collection of OrderSwitchInfoDetail |
None. |
appKey |
合作方接入认证标识(海王提供对应商户编码)--必填 |
string |
None. |
timeStamp |
10位时间戳 格式为long,时区为GMT+8。开放平台允许合作方请求最大时间误差为10分钟 |
integer |
None. |
version |
API协议版本,可选值:1.0 |
string |
None. |
sign |
签名值 --必填 |
string |
None. |
请求格式
application/json, text/json
Sample:
{ "vendingMachineNo": "sample string 1", "branchNo": "sample string 2", "deviceCode": "sample string 3", "type": 4, "orderTotal": 5.0, "payType": 6, "orderStatus": 7, "createTime": "sample string 8", "confirmationTime": "sample string 9", "list": [ { "$id": "2", "barcode": "sample string 1", "quantity": 2, "batch": "sample string 3", "price": 4.0, "valiDate": "sample string 5", "detailStatus": 6, "exceptionNote": "sample string 7" }, { "$ref": "2" }, { "$ref": "2" } ], "appKey": "sample string 10", "timeStamp": 11, "version": "sample string 12", "sign": "sample string 13" }
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
CustomJsonResultOfOrderSwitchResult名称 | 描述 | 类型 | 其它信息 |
---|---|---|---|
Content | OrderSwitchResult |
None. |
响应格式
application/json, text/json
Sample:
{ "content": { "$id": "2", "orderNo": "sample string 1", "result": [ { "$id": "3", "code": "sample string 1", "batch": "sample string 2", "message": "sample string 3" }, { "$ref": "3" }, { "$ref": "3" } ], "customStatus": 10, "customMessage": "sample string 2" } }