POST api/Values/SaveCharges

Request Information

URI Parameters

None.

Body Parameters

tbChargesModel
NameDescriptionTypeAdditional information
ChargeId

integer

None.

Type

string

Required

Symbol

string

Required

Value

decimal number

Required

Range: inclusive between 0.1 and 2147483647

Association

string

Required

Operation

string

Required

RevenueCode

string

Required

RevenueId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ChargeId": 1,
  "Type": "sample string 2",
  "Symbol": "sample string 3",
  "Value": 4.0,
  "Association": "sample string 5",
  "Operation": "sample string 6",
  "RevenueCode": "sample string 7",
  "RevenueId": 8
}

application/xml, text/xml

Sample:
<tbChargesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cargo.Data.Model">
  <Association>sample string 5</Association>
  <ChargeId>1</ChargeId>
  <Operation>sample string 6</Operation>
  <RevenueCode>sample string 7</RevenueCode>
  <RevenueId>8</RevenueId>
  <Symbol>sample string 3</Symbol>
  <Type>sample string 2</Type>
  <Value>4</Value>
</tbChargesModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'tbChargesModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.