| GET,POST | /cost/InsertCost | 新增费用 |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RouteID | body | string | Yes | 提货路线编号 |
| PrepareID | body | int | No | 提货点ID |
| CostType | body | int | Yes | 费用类型 |
| CostAmount | body | decimal? | Yes | 费用金额 |
| UploadPath | body | string | Yes | 凭证上传路径 |
| IsUpload | body | int | No | 是否已上传凭证(0:否 1:是) |
| IsAuditing | body | int | No | 是否已经确认(0:否 1:是) |
| AuditingBy | body | string | No | 确认人 |
| AuditingDT | body | DateTime? | No | 确认时间 |
| CostClass | body | int | Yes | 费用类别(0:提货点 1:整条路线) |
| RouteCostRemark | body | string | No | 备注 |
| IsAbnormalCost | body | int | Yes | 是否异常费用 1-是,0-否 |
| 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/InsetCostRequest HTTP/1.1
Host: bookinglogin.hart-worldwide.com
Content-Type: text/jsv
Content-Length: length
{
RouteID: String,
PrepareID: 0,
CostType: 0,
CostAmount: 0,
UploadPath: String,
IsUpload: 0,
IsAuditing: 0,
AuditingBy: String,
AuditingDT: 0001-01-01,
CostClass: 0,
RouteCostRemark: String,
IsAbnormalCost: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
IsOK: False,
ErrorCode: 0,
ErrorMsg: String
}