POST api/TencentStore/createOrder
推送订单
请求的信息
URI参数
None.
Body参数
createStoreOrderCondition名称 | 描述 | 类型 | 其它信息 |
---|---|---|---|
orderId |
订单号 |
string |
None. |
payNumber |
支付流水号 |
string |
None. |
payTotal |
支付总金额(包含运费) 单位:分 |
integer |
None. |
thirdDiscount |
第三方优惠金额 单位:分 |
integer |
None. |
merchantsPrice |
海王优惠金额 单位:分 |
integer |
None. |
expressCoupon |
运费优惠金额 单位:分 |
integer |
None. |
expressFee |
应支付运费 单位:分 |
integer |
None. |
expressPayFee |
实际支付运费 单位:分 |
integer |
None. |
payType |
支付类型1:微信支付 2:微信医保支付 |
integer |
None. |
pharmacyNumber |
药房编码 |
string |
None. |
pharmacyName |
药房名称 |
string |
None. |
patientNumber |
病人ID 处方药必填 |
string |
None. |
patientName |
病人名字 处方药必填 |
string |
None. |
patientIdCard |
病人身份证号 处方药必填 |
string |
None. |
patientPhone |
病人电话 处方药必填 |
string |
None. |
orderType |
订单类型 1:到店自取订单2:急速配送订单 3:普通配送订单 |
integer |
None. |
drugs |
药品集合 |
Collection of createStoreOrderRequestDrugs |
None. |
address |
收货人地址信息 |
createStoreOrderRequestAddress |
None. |
coupons |
优惠券集合 |
Collection of createStoreOrderRequestCoupons |
None. |
请求格式
application/json, text/json
Sample:
{ "orderId": "sample string 1", "payNumber": "sample string 2", "payTotal": 3, "thirdDiscount": 4, "merchantsPrice": 5, "expressCoupon": 6, "expressFee": 7, "expressPayFee": 8, "payType": 9, "pharmacyNumber": "sample string 10", "pharmacyName": "sample string 11", "patientNumber": "sample string 12", "patientName": "sample string 13", "patientIdCard": "sample string 14", "patientPhone": "sample string 15", "orderType": 16, "drugs": [ { "$id": "2", "drugName": "sample string 1", "drugPharmacyNumber": "sample string 2", "drugType": 3, "quantity": 4, "price": 5 }, { "$ref": "2" }, { "$ref": "2" } ], "address": { "$id": "3", "latitude": "sample string 1", "longitude": "sample string 2", "province": "sample string 3", "city": "sample string 4", "district": "sample string 5", "address": "sample string 6", "name": "sample string 7", "phone": "sample string 8", "date": "sample string 9", "time": "sample string 10", "remarks": "sample string 11" }, "coupons": [ { "$id": "4", "couponType": "sample string 1", "drugPharmacyNumber": "sample string 2", "couponPrice": 3 }, { "$ref": "4" }, { "$ref": "4" } ] }
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
CustomJsonResultOfcreateStoreOrderResult名称 | 描述 | 类型 | 其它信息 |
---|---|---|---|
Content | createStoreOrderResult |
None. |
响应格式
application/json, text/json
Sample:
{ "content": { "$id": "2", "third_source": "sample string 1", "code": 1, "message": "sample string 2", "open_order_id": "sample string 3", "third_order_id": "sample string 4" } }