| GET,POST | /warehouse/InsertWarehouse | 新增仓库 |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| WarehouseCode | body | string | Yes | 仓库编码 |
| WarehouseName | body | string | Yes | 仓库名称 |
| PhoneNumber | body | string | Yes | 联系人电话 |
| UserName | body | string | Yes | 联系人姓名 |
| Province | body | int | Yes | 地址省份 |
| City | body | int | Yes | 地址市 |
| Area | body | int | Yes | 地址区县 |
| Address | body | string | Yes | 地址详情 |
| Remarks | body | string | No | 备注 |
| CreateBy | body | string | Yes | 创建人 |
| IsDirectlyOutOfWarehouse | body | int | Yes | 是否直接出仓 |
| CodeName | body | string | Yes | 仓库代码 |
| CuttingOrderTime | body | string | No | 截单时间 |
| BusinessType | body | string | Yes | 业务类型 |
| OrderNumber | body | int | No | 排序 |
| IsReceiveOrderMail | body | int? | No | 是否接收订单邮件 |
| body | string | No | 邮箱 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IsOK | form | bool | Yes | 是否成功 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorCode | form | int | Yes | 返回编码,200之外的值都表示有错误 |
| ErrorMsg | form | string | Yes | 返回的消息 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/InsetWarehouseRequest HTTP/1.1
Host: bookinglogin.hart-worldwide.com
Content-Type: text/csv
Content-Length: length
{"WarehouseCode":"String","WarehouseName":"String","PhoneNumber":"String","UserName":"String","Province":0,"City":0,"Area":0,"Address":"String","Remarks":"String","CreateBy":"String","IsDirectlyOutOfWarehouse":0,"CodeName":"String","CuttingOrderTime":"String","BusinessType":"String","OrderNumber":0,"IsReceiveOrderMail":0,"Email":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"IsOK":false,"ErrorCode":0,"ErrorMsg":"String"}