POST api/VisaPrices
Request Information
URI Parameters
None.
Body Parameters
SimpleVisaPriceBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Cost | decimal number |
Required |
|
| CountryOriginId | string |
Required |
|
| CountryDestinationId | string |
Required |
|
| CurrencyId | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Cost": 1.0,
"CountryOriginId": "sample string 2",
"CountryDestinationId": "sample string 3",
"CurrencyId": "sample string 4"
}
application/xml, text/xml
Sample:
<SimpleVisaPriceBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Cost>1</Cost> <CountryDestinationId>sample string 3</CountryDestinationId> <CountryOriginId>sample string 2</CountryOriginId> <CurrencyId>sample string 4</CurrencyId> </SimpleVisaPriceBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VisaPrice| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| cost | decimal number |
None. |
|
| CountryOriginId | string |
Required String length: inclusive between 0 and 3 |
|
| CountryDestinationId | string |
Required String length: inclusive between 0 and 3 |
|
| CurrencyId | string |
Required String length: inclusive between 0 and 3 |
|
| CountryOrigin | Country |
None. |
|
| CountryDestination | Country |
None. |
|
| Currency | Currency |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.