POST api/YiBaoO2O/CreateOrder
亿保健康下单接口
请求的信息
URI参数
None.
Body参数
YiBaoO2OCreateOrderCondition| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| erp_store_id | string |
None. |
|
| erp_store_name | string |
None. |
|
| order_no | string |
None. |
|
| total_money | decimal number |
None. |
|
| order_money | decimal number |
None. |
|
| origin_trans_money | decimal number |
None. |
|
| trans_money | decimal number |
None. |
|
| delivery_type | integer |
None. |
|
| delivery_code | string |
None. |
|
| expect_delivery_time | string |
None. |
|
| receive_name | string |
None. |
|
| receive_addr | string |
None. |
|
| receive_mobile_no | string |
None. |
|
| guest_remark | string |
None. |
|
| product_items | Collection of YiBaoO2OPutOrderProductModel |
None. |
|
| activities | Collection of YiBaoO2OPutOrderPreferentialModel |
None. |
|
| payments | Collection of YiBaoO2OPutOrderPayModel |
None. |
|
| prescription_infos | Collection of YiBaoO2OPutOrderRxModel |
None. |
请求格式
application/json, text/json
Sample:
{
"erp_store_id": "sample string 1",
"erp_store_name": "sample string 2",
"order_no": "sample string 3",
"total_money": 4.0,
"order_money": 5.0,
"origin_trans_money": 6.0,
"trans_money": 7.0,
"delivery_type": 8,
"delivery_code": "sample string 9",
"expect_delivery_time": "sample string 10",
"receive_name": "sample string 11",
"receive_addr": "sample string 12",
"receive_mobile_no": "sample string 13",
"guest_remark": "sample string 14",
"product_items": [
{
"$id": "2",
"erp_product_id": "sample string 1",
"product_name": "sample string 2",
"sale_num": 3.0,
"sale_price": 4.0,
"real_price": 5.0,
"deal_price": 6.0
},
{
"$ref": "2"
},
{
"$ref": "2"
}
],
"activities": [
{
"$id": "3",
"activity_name": "sample string 1",
"activity_desc": "sample string 2",
"erp_product_id": "sample string 3",
"discount_amount": 4.0,
"store_discount_amount": 5.0,
"platform_discount_amount": 6.0
},
{
"$ref": "3"
},
{
"$ref": "3"
}
],
"payments": [
{
"$id": "4",
"pay_type": "sample string 1",
"pay_amount": 2.0,
"card_no": "sample string 3",
"serial_no": "sample string 4",
"pay_for": "sample string 5"
},
{
"$ref": "4"
},
{
"$ref": "4"
}
],
"prescription_infos": [
{
"$id": "5",
"disease_name": "sample string 1",
"prescribe_dept_name": "sample string 2",
"doctor_name": "sample string 3",
"hospital_name": "sample string 4",
"patient_name": "sample string 5",
"patient_sex": 6,
"patient_age": "sample string 7",
"mobile_no": "sample string 8",
"identity_no": "sample string 9",
"img_src": "sample string 10",
"prescription_no": "sample string 11"
},
{
"$ref": "5"
},
{
"$ref": "5"
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
YiBaoO2OResponseModel| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| rc |
返回代码 0:成功 1:失败 |
integer |
None. |
| msg |
返回信息 |
string |
None. |
响应格式
application/json, text/json
Sample:
{
"rc": 1,
"msg": "sample string 2"
}