POST taxclasses/{taxclassid}/taxratecountries
Creates a new 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 new Country specific tax rates
Collection of TaxRateCountryBaseModel
Name | Description | Type | Additional information |
---|---|---|---|
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:
[ { "TaxRate": 1.0, "ISOCountryCodeTwoLetter": "sample string 1" }, { "TaxRate": 1.0, "ISOCountryCodeTwoLetter": "sample string 1" } ]
application/xml, text/xml
Sample:
<ArrayOfTaxRateCountryBaseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TaxRateCountryBaseModel> <TaxRate>1</TaxRate> <ISOCountryCodeTwoLetter>sample string 1</ISOCountryCodeTwoLetter> </TaxRateCountryBaseModel> <TaxRateCountryBaseModel> <TaxRate>1</TaxRate> <ISOCountryCodeTwoLetter>sample string 1</ISOCountryCodeTwoLetter> </TaxRateCountryBaseModel> </ArrayOfTaxRateCountryBaseModel>
Response Information
Resource Description
Creates a new Country specific tax rate in a Tax Class
Collection of TaxRateCountryResponseName | Description | Type | Additional information |
---|---|---|---|
Success | An indicator of the success of a create, update or delete | boolean | None. |
Error | In the event of a failure, a description of the problem | string | None. |
TaxRateCountryID | The ID of the country specific tax rate | integer | None. |
CountryName | The name of the country that the tax rate applies to | string | None. |
ISOCountryCodeTwoLetter | The two letter ISO code | string | None. |
TaxRate | The tax rate | decimal number | None. |
Response Formats
application/json, text/json
Sample:
[ { "Success": true, "Error": "sample string 2", "TaxRateCountryID": 3, "CountryName": "sample string 4", "ISOCountryCodeTwoLetter": "sample string 5", "TaxRate": 1.0 }, { "Success": true, "Error": "sample string 2", "TaxRateCountryID": 3, "CountryName": "sample string 4", "ISOCountryCodeTwoLetter": "sample string 5", "TaxRate": 1.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>3</TaxRateCountryID> <CountryName>sample string 4</CountryName> <ISOCountryCodeTwoLetter>sample string 5</ISOCountryCodeTwoLetter> <TaxRate>1</TaxRate> <Success>true</Success> <Error>sample string 2</Error> </TaxRateCountryResponse> <TaxRateCountryResponse> <TaxRateCountryID>3</TaxRateCountryID> <CountryName>sample string 4</CountryName> <ISOCountryCodeTwoLetter>sample string 5</ISOCountryCodeTwoLetter> <TaxRate>1</TaxRate> <Success>true</Success> <Error>sample string 2</Error> </TaxRateCountryResponse> </ArrayOfTaxRateCountryResponse>