POST api/order/post
Request Information
URI Parameters
None.
Body Parameters
OrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| goods | Collection of GoodsModel |
None. |
|
| address_id | integer |
None. |
|
| open_id | string |
None. |
|
| user_id | integer |
None. |
|
| reference_id | integer |
None. |
|
| shop_id | integer |
None. |
|
| remark | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"goods": [
{
"goods_id": 1,
"spec_sku_id": "sample string 2",
"num": 3
},
{
"goods_id": 1,
"spec_sku_id": "sample string 2",
"num": 3
}
],
"address_id": 1,
"open_id": "sample string 2",
"user_id": 3,
"reference_id": 4,
"shop_id": 5,
"remark": "sample string 6"
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AjaxResult| Name | Description | Type | Additional information |
|---|---|---|---|
| PromptMsg | string |
None. |
|
| Result | DoResult |
None. |
|
| RetValue | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"PromptMsg": "sample string 1",
"Result": 0,
"RetValue": {}
}