POST api/Currencies/Add

Request Information

URI Parameters

None.

Body Parameters

CurrencyBindingModel
NameDescriptionTypeAdditional information
Id

string

String length: inclusive between 0 and 5

Description

string

None.

InvoiceEnabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Description": "sample string 2",
  "InvoiceEnabled": true
}

application/xml, text/xml

Sample:
<CurrencyBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <Description>sample string 2</Description>
  <Id>sample string 1</Id>
  <InvoiceEnabled>true</InvoiceEnabled>
</CurrencyBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CurrencyViewModel
NameDescriptionTypeAdditional information
Id

string

None.

Description

string

None.

InvoiceEnabled

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Description": "sample string 2",
  "InvoiceEnabled": true
}

application/xml, text/xml

Sample:
<CurrencyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <Description>sample string 2</Description>
  <Id>sample string 1</Id>
  <InvoiceEnabled>true</InvoiceEnabled>
</CurrencyViewModel>