Tax Templates

Endpoints

Get tax templates

POST/api/RPC.common.Api.TaxDeals.get?token=<TOKEN>

Key TaxDeals.get · Open page

Parameters

6 body parameters inside data[]
FieldTypeDescription
idIntegerTax template ID
coderequiredStringTax template ID
namerequiredStringTax template name
get_allBooleanGet all
offsetNumberOffset
limitNumberLimit

Request example

Search By Id:
{
   "data" : [
      {
         "id" : 21889
      }
   ]
}
Search By Code:
{
   "data" : [
      {
         "code" : 1
      }
   ]
}
Search By Name:
{
   "data" : [
      {
         "name" : "Sales"
      }
   ]
}
Search By All Params:
{
   "data" : [
      {
         "code" : 1,
         "id" : 21889,
         "name" : "Sales"
      }
   ]
}
Get All:
{
	"data":[
		{}
	],
	"get_all":1,
	"limit":10000,
	"offset":0
}

cURL

Search By Id:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "id" : 21889      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.TaxDeals.get?token=<TOKEN>"
Search By Code:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "code" : 1      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.TaxDeals.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "name" : "Sales"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.TaxDeals.get?token=<TOKEN>"
Search By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "code" : 1,         "id" : 21889,         "name" : "Sales"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.TaxDeals.get?token=<TOKEN>"
Curl example Get All:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{	"data":[		{}	],	"get_all":1,	"limit":10000,	"offset":0}	' "https://<DOMAIN_NAME>/api/RPC.common.Api.TaxDeals.get?token=<TOKEN>"

Response example

    HTTP/1.1 200 OK
{
   "result" : [
      {
         "name" : "Sales",
         "id" : 21889,
         "income" : 1,
         "code" : 1,
         "expense" : 0
      }
   ],
   "count" : 1,
   "total_count" : 1
}