YM REST Services

<back to all web services

TaxRateRequest

Requires Authentication
Requires any of the roles:admin, oauthadminRequires any of the permissions:/admin/store/, CanAdminMembers
The following routes are available for this service:
GET/Ams/{ClientID}/TaxRateReturns the tax rate for the given client and location - with cache.
TaxRateRequest Parameters:
NameParameterData TypeRequiredDescription
CountryquerystringNo
LocationquerystringNo
BaseDto Parameters:
NameParameterData TypeRequiredDescription
UsingRedisformboolNo
AppInitTimeformDateTimeNo
ServerIDformstringNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
TaxRate Parameters:
NameParameterData TypeRequiredDescription
RateformdoubleNo
BasicRateformdoubleNo
CountryRateformdoubleNo
LocationRateformdoubleNo
CountryNoShipformboolNo
CountryTaxShippingformboolNo
LocationNoShipformboolNo
LocationTaxShippingformboolNo
TaxShippingformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Ams/{ClientID}/TaxRate HTTP/1.1 
Host: ws.yourmembership.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TaxRate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
  <BasicRate>0</BasicRate>
  <CountryNoShip>false</CountryNoShip>
  <CountryRate>0</CountryRate>
  <CountryTaxShipping>false</CountryTaxShipping>
  <LocationNoShip>false</LocationNoShip>
  <LocationRate>0</LocationRate>
  <LocationTaxShipping>false</LocationTaxShipping>
  <Rate>0</Rate>
</TaxRate>