curl --request POST \
--url https://api.rootfi.dev/accounting/tax_rates \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Tax Rate",
"code": "1234567890",
"effective_tax_rate": 10,
"total_tax_rate": 10,
"tax_type": "VAT",
"components": [
{
"name": "Rootfi Test Tax Rate Component",
"is_compound": false,
"rate": 10,
"tax_agency": "igst"
}
]
}
]
}'
{
"data": {
"status": "SUCCESS",
"upload_job_id": "xQm2K441VosP8W4",
"data": [
{
"job_id": "aXI9pUDA5T7E2LS",
"status": "success",
"response": {
"platform_id": "3770712000001298001",
"name": "Track Categories",
"code": "GST",
"effective_tax_rate": 12,
"total_tax_rate": 12,
"tax_type": "igst",
"components": [
{
"name": "Track Categories",
"rate": 12,
"tax_agency": "igst",
"is_compound": false
}
],
"updated_at": "2000-12-31T18:30:00.000Z",
"raw_data": {
"platform_id": "3770712000001298001",
"name": "Track Categories",
"code": "GST",
"effective_tax_rate": 12,
"total_tax_rate": 12,
"tax_type": "igst",
"components": [
{
"name": "Track Categories",
"rate": 12,
"tax_agency": "igst",
"is_compound": false
}
],
"updated_at": "2000-12-31T18:30:00.000Z"
}
},
"error": null
}
]
},
"request_timestamp": "2000-12-31T18:30:00.000Z",
"response_timestamp": "2021-06-01T00:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}Add a tax rate.
curl --request POST \
--url https://api.rootfi.dev/accounting/tax_rates \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Tax Rate",
"code": "1234567890",
"effective_tax_rate": 10,
"total_tax_rate": 10,
"tax_type": "VAT",
"components": [
{
"name": "Rootfi Test Tax Rate Component",
"is_compound": false,
"rate": 10,
"tax_agency": "igst"
}
]
}
]
}'
{
"data": {
"status": "SUCCESS",
"upload_job_id": "xQm2K441VosP8W4",
"data": [
{
"job_id": "aXI9pUDA5T7E2LS",
"status": "success",
"response": {
"platform_id": "3770712000001298001",
"name": "Track Categories",
"code": "GST",
"effective_tax_rate": 12,
"total_tax_rate": 12,
"tax_type": "igst",
"components": [
{
"name": "Track Categories",
"rate": 12,
"tax_agency": "igst",
"is_compound": false
}
],
"updated_at": "2000-12-31T18:30:00.000Z",
"raw_data": {
"platform_id": "3770712000001298001",
"name": "Track Categories",
"code": "GST",
"effective_tax_rate": 12,
"total_tax_rate": 12,
"tax_type": "igst",
"components": [
{
"name": "Track Categories",
"rate": 12,
"tax_agency": "igst",
"is_compound": false
}
],
"updated_at": "2000-12-31T18:30:00.000Z"
}
},
"error": null
}
]
},
"request_timestamp": "2000-12-31T18:30:00.000Z",
"response_timestamp": "2021-06-01T00:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}curl --request POST \
--url https://api.rootfi.dev/accounting/tax_rates \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Tax Rate",
"code": "1234567890",
"effective_tax_rate": 10,
"total_tax_rate": 10,
"tax_type": "VAT",
"components": [
{
"name": "Rootfi Test Tax Rate Component",
"is_compound": false,
"rate": 10,
"tax_agency": "igst"
}
]
}
]
}'
The company ID
1
Show child attributes
Display name of the tax rate
Simple ID for the tax rate
The total tax rate after accounting for the compounding effects of all tax components
The sum of all the tax rate components
The type of tax as mentioned in the accounting platform
An array of all the tax components
Show child attributes
A JSON containing fields that you can directly pass to the accounting platform.
Show child attributes
The status of the job.
SUCCESS, FAILED, CREATED, RUNNING The ID of the job.
Show child attributes
The ID of the job.
The status of the job.
success, failed Show child attributes
The ID that the accounting platform uses to identify this tax rate
Display name of the tax rate
Simple ID for the tax rate
The total tax rate after accounting for the compounding effects of all tax components
The sum of all the tax rate components
The type of tax as mentioned in the accounting platform
An array of all the tax components
Show child attributes
The name of the component
The tax rate of the component
Whether the tax component is compounded or not
The tax agency of the component
The last ISO 8601 timestamp that the data was updated at
The raw JSON response we receive from the accounting platform for this tax rate
The time at which the request was received by the server
The time at which the response was sent by the server
The unique ID of the request