DeleteTaxes
This call is to remove a tax at a location . Please do not keep batch size of more than 20, i.e. the number of operations in a single request should not be more than 20.
Request Parameters
- BusinessDate
DateTime?— The BusinessDate from when the change should apply. Default is the current BusinessDate of the location - ChangesetName
string— Optionally provide a custom "changeset" name. If the value is not passed, a default "changeset" name is created. - IsImmediatePublish
bool— Whether or not the change should be applied immediately (will restart all registers at the location) - TaxIds
Array of int— A Collection of Tax Ids to delete
Response Parameters
- Message
string— Returns a PAR POS Error message if the request did not go through. Otherwise, this field will be null. - ResultCode
int— Returns one of the following:- 0 — Success
- 1 — Unknown Error
- 2 — Invalid Request
- 3 — Server Unavailable
- 4 — Access Denied
- Errors
Array of string— Contains error messages if the request failed
Headers
- Type: stringS
O A P Action required
Body
required
application/json
SOAP envelope for DeleteTaxes request containing tax IDs to delete.
Responses
- text/xml; charset=utf-8
Request Example for post/DeleteTaxes
cURL
curl --request POST \
--url 'https://{server_name_goes_here}.parpos.com/Settings2.svc?DeleteTaxes' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'AccessToken: your-access-token' \
--header 'LocationToken: your-location-token' \
--header 'SOAPAction: "http://www.brinksoftware.com/webservices/settings/v2/ISettingsWebService2/DeleteTaxes"' \
--data '<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://www.brinksoftware.com/webservices/settings/v2"
xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<v2:DeleteTaxes>
<v2:request>
<v2:TaxIds>
<arr:int>200001</arr:int>
</v2:TaxIds>
</v2:request>
</v2:DeleteTaxes>
</soapenv:Body>
</soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<DeleteTaxesResponse xmlns="http://www.brinksoftware.com/webservices/settings/v2">
<DeleteTaxesResult>
<Message>Success</Message>
<ResultCode>0</ResultCode>
<Errors/>
</DeleteTaxesResult>
</DeleteTaxesResponse>
</s:Body>
</s:Envelope>