PUT taxclasses/{taxclassid}/taxratecountries
Updates a Country specific tax rate in a Tax class
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| taxclassid | The ID of the Tax Class | integer | Required |
Body Parameters
The details of the update
Collection of TaxRateCountryUpdateModel
| Name | Description | Type | Additional information |
|---|---|---|---|
| TaxRateCountryId | The Id of the TaxRateCountry | integer | None. |
| TaxRate | The tax rate | decimal number | None. |
| ISOCountryCodeTwoLetter | The two letter ISO code | string | Max length: 2 Min length: 2 |
Request Formats
application/json, text/json
Sample:
[
{
"TaxRateCountryId": 1,
"TaxRate": 1.0,
"ISOCountryCodeTwoLetter": "sample string 2"
},
{
"TaxRateCountryId": 1,
"TaxRate": 1.0,
"ISOCountryCodeTwoLetter": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfTaxRateCountryUpdateModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<TaxRateCountryUpdateModel>
<TaxRate>1</TaxRate>
<ISOCountryCodeTwoLetter>sample string 2</ISOCountryCodeTwoLetter>
<TaxRateCountryId>1</TaxRateCountryId>
</TaxRateCountryUpdateModel>
<TaxRateCountryUpdateModel>
<TaxRate>1</TaxRate>
<ISOCountryCodeTwoLetter>sample string 2</ISOCountryCodeTwoLetter>
<TaxRateCountryId>1</TaxRateCountryId>
</TaxRateCountryUpdateModel>
</ArrayOfTaxRateCountryUpdateModel>
Response Information
Resource Description
Updates a Country specific tax rate in a Tax class
Collection of ObjectNone.
Response Formats
application/json, text/json
Sample:
[
{
"Success": false,
"Error": "Something went wrong",
"TaxRateCountryID": 1,
"CountryName": "BARBADOS",
"ISOCountryCodeTwoLetter": "BB",
"TaxRate": 21.0
},
{
"Success": true,
"TaxRateCountryID": 25,
"CountryName": "MAURITIUS",
"ISOCountryCodeTwoLetter": "MU",
"TaxRate": 21.0
}
]
application/xml, text/xml
Sample:
<ArrayOfTaxRateCountryResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<TaxRateCountryResponse>
<TaxRateCountryID>1</TaxRateCountryID>
<CountryName>BARBADOS</CountryName>
<ISOCountryCodeTwoLetter>BB</ISOCountryCodeTwoLetter>
<TaxRate>21</TaxRate>
<Success>false</Success>
<Error>Something went wrong</Error>
</TaxRateCountryResponse>
<TaxRateCountryResponse>
<TaxRateCountryID>25</TaxRateCountryID>
<CountryName>MAURITIUS</CountryName>
<ISOCountryCodeTwoLetter>MU</ISOCountryCodeTwoLetter>
<TaxRate>21</TaxRate>
<Success>true</Success>
</TaxRateCountryResponse>
</ArrayOfTaxRateCountryResponse>