POST api/Accounting/AddMoneyExchange

Request Information

URI Parameters

None.

Body Parameters

AddMoneyExchangeTransactionViewModel
NameDescriptionTypeAdditional information
Exchange_Date

string

None.

Customer_ID

integer

None.

Amount_To_Exchange

decimal number

None.

Amount

decimal number

None.

From_Currency_ID

integer

None.

To_Currency_ID

integer

None.

Currency_Rate

decimal number

None.

IsActive

boolean

None.

Notes

string

None.

User_Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Exchange_Date": "sample string 1",
  "Customer_ID": 2,
  "Amount_To_Exchange": 3.1,
  "Amount": 4.1,
  "From_Currency_ID": 5,
  "To_Currency_ID": 6,
  "Currency_Rate": 7.1,
  "IsActive": true,
  "Notes": "sample string 9",
  "User_Name": "sample string 10"
}

application/xml, text/xml

Sample:
<AddMoneyExchangeTransactionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <Amount>4.1</Amount>
  <Amount_To_Exchange>3.1</Amount_To_Exchange>
  <Currency_Rate>7.1</Currency_Rate>
  <Customer_ID>2</Customer_ID>
  <Exchange_Date>sample string 1</Exchange_Date>
  <From_Currency_ID>5</From_Currency_ID>
  <IsActive>true</IsActive>
  <Notes>sample string 9</Notes>
  <To_Currency_ID>6</To_Currency_ID>
  <User_Name>sample string 10</User_Name>
</AddMoneyExchangeTransactionViewModel>

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

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
Success

string

None.

ErrorText

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": "sample string 1",
  "ErrorText": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models">
  <Data />
  <ErrorText>sample string 2</ErrorText>
  <Success>sample string 1</Success>
</ResultModel>