POST api/Currency/SaveCurrencyFXRate

Request Information

URI Parameters

None.

Body Parameters

CurrencyBAL
NameDescriptionTypeAdditional information
OrganizationID

integer

None.

TaxYearID

integer

None.

CreatedBy

integer

None.

CurrencyFXRates

Collection of CurrencyFXRate

None.

Client

string

None.

Request Formats

application/json, text/json

Sample:
{
  "organizationID": 1,
  "taxYearID": 2,
  "createdBy": 3,
  "currencyFXRates": [
    {
      "currencyName": "sample string 1",
      "currencyFXRateID": 1,
      "currencyID": 1,
      "usdfxRate": 1.0,
      "localRate": 1.0
    },
    {
      "currencyName": "sample string 1",
      "currencyFXRateID": 1,
      "currencyID": 1,
      "usdfxRate": 1.0,
      "localRate": 1.0
    }
  ],
  "client": "sample string 4"
}

application/xml, text/xml

Sample:
<CurrencyBAL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Transportal.BAL.CurrencyBAL">
  <Client>sample string 4</Client>
  <CreatedBy>3</CreatedBy>
  <CurrencyFXRates>
    <CurrencyFXRate>
      <CurrencyFXRateID>1</CurrencyFXRateID>
      <CurrencyID>1</CurrencyID>
      <CurrencyName>sample string 1</CurrencyName>
      <LocalRate>1</LocalRate>
      <USDFXRate>1</USDFXRate>
    </CurrencyFXRate>
    <CurrencyFXRate>
      <CurrencyFXRateID>1</CurrencyFXRateID>
      <CurrencyID>1</CurrencyID>
      <CurrencyName>sample string 1</CurrencyName>
      <LocalRate>1</LocalRate>
      <USDFXRate>1</USDFXRate>
    </CurrencyFXRate>
  </CurrencyFXRates>
  <OrganizationID>1</OrganizationID>
  <TaxYearID>2</TaxYearID>
</CurrencyBAL>

multipart/form-data

Sample:
<CurrencyBAL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Transportal.BAL.CurrencyBAL"><Client>sample string 4</Client><CreatedBy>3</CreatedBy><CurrencyFXRates><CurrencyFXRate><CurrencyFXRateID>1</CurrencyFXRateID><CurrencyID>1</CurrencyID><CurrencyName>sample string 1</CurrencyName><LocalRate>1</LocalRate><USDFXRate>1</USDFXRate></CurrencyFXRate><CurrencyFXRate><CurrencyFXRateID>1</CurrencyFXRateID><CurrencyID>1</CurrencyID><CurrencyName>sample string 1</CurrencyName><LocalRate>1</LocalRate><USDFXRate>1</USDFXRate></CurrencyFXRate></CurrencyFXRates><OrganizationID>1</OrganizationID><TaxYearID>2</TaxYearID></CurrencyBAL>

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 'CurrencyBAL'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.