Gets information on current taxes | Uses your API Key and some Filters in an array format and returns the search results using the given filters.
Optionally, you can use ReturnTopNRecords to limit the number of the results to the specified number (omit, or add ReturnTopNRecords = -1 to get all the available results). The ReturnTopNRecords chooses the top records in a TaxID descending order.
A. Return the first two mvTax objects with a tax value larger than 3. The results are returned as mvTaxes objects.
We can add two Filters by using the AndOr operator as shown below:
Value: {
"Filters": [
{
"FieldName": "TaxValue",
"SearchOperator": "GreaterThan",
"SearchValue": 3
}
],
"ReturnTopNRecords": 2
}
Response: {
"mvTaxes": [
{
"TaxID": 352,
"TaxName": "t5",
"TaxDescription": "",
"TaxValue": 5
},
{
"TaxID": 351,
"TaxName": "t4",
"TaxDescription": "",
"TaxValue": 4
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|