Take.API

<back to all web services

UpdateCostRequest

The following routes are available for this service:
GET,POST/cost/UpdateCost修改费用
UpdateCostRequest Parameters:
NameParameterData TypeRequiredDescription
IDbodyintYes自增ID
CostTypebodyintYes费用类型
CostAmountbodydecimal?Yes费用金额
UploadPathbodystringYes凭证上传路径
RouteCostRemarkbodystringNo备注
IsAbnormalCostbodyintYes是否异常费用 1-是,0-否
UpdateCostResponse Parameters:
NameParameterData TypeRequiredDescription
IsOKformboolYes是否成功
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformintYes返回编码,200之外的值都表示有错误
ErrorMsgformstringYes返回的消息

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/UpdateCostRequest HTTP/1.1 
Host: bookinglogin.hart-worldwide.com 
Content-Type: text/jsv
Content-Length: length

{
	ID: 0,
	CostType: 0,
	CostAmount: 0,
	UploadPath: String,
	RouteCostRemark: String,
	IsAbnormalCost: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	IsOK: False,
	ErrorCode: 0,
	ErrorMsg: String
}