curl --request POST \
--url https://api.rootfi.dev/v4/payments/tax_rates \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"name": "<string>",
"rate": 123,
"jurisdiction": "<string>",
"status": "ACTIVE"
}
'{
"rootfi_id": 157,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456",
"rootfi_deleted_at": "2023-11-07T05:31:56Z",
"platform_unique_id": "<string>",
"raw_data": {},
"data_hash": "<string>",
"name": "<string>",
"rate": 123,
"jurisdiction": "<string>",
"status": "ACTIVE",
"created_at": "<string>",
"updated_at": "<string>"
}Create a new tax rate.
curl --request POST \
--url https://api.rootfi.dev/v4/payments/tax_rates \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 123,
"name": "<string>",
"rate": 123,
"jurisdiction": "<string>",
"status": "ACTIVE"
}
'{
"rootfi_id": 157,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456",
"rootfi_deleted_at": "2023-11-07T05:31:56Z",
"platform_unique_id": "<string>",
"raw_data": {},
"data_hash": "<string>",
"name": "<string>",
"rate": 123,
"jurisdiction": "<string>",
"status": "ACTIVE",
"created_at": "<string>",
"updated_at": "<string>"
}| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Display name (e.g., “California Sales Tax”) |
| rate | number | Yes | Tax rate as decimal (e.g., 0.0725 for 7.25%) |
| jurisdiction | string | Yes | Geographic area (e.g., “CA”, “NY”, “US”) |
| status | string | No | Status (default: ACTIVE) |
{
"name": "California Sales Tax",
"rate": 0.0725,
"jurisdiction": "CA",
"status": "ACTIVE"
}
Tax rate created successfully
V4 TaxRate model for jurisdiction-based tax rates.
The unique ID we assign for that data's information
157
The date at which RootFi first synced this data
"2024-01-22T05:07:31.465Z"
The latest date at which RootFi updated this data
"2024-01-22T05:07:31.000Z"
The ID of the company in the accounting platform
1089
An unique custom RootFi ID made from platform's unique_id.
"123456"
The date at which the data was deleted in the accounting platform
The ID of the data in the accounting platform.
A JSON containing fields that you can directly get from the accounting platform.
The hash of the data
Display name (e.g., California Sales Tax).
Tax rate as a decimal (e.g., 0.0725 for 7.25%).
Geographic area where tax applies (e.g., CA, NY).
Current status of this tax rate (ACTIVE, ARCHIVED, UNKNOWN).
ACTIVE, ARCHIVED, UNKNOWN Original creation timestamp (ISO 8601).
Last update timestamp (ISO 8601).