Taxes

Tax management in Crane Ledger handles sales tax, VAT, and other tax calculations for invoices and bills. Tax rates can be configured at the organization level and applied to line items.

The Tax Object

GET/organizations/:organization_id/taxes/:id
Auth required
{
  "id": "tax_xxxxxxxxxxxxxxxx",
  "object": "tax",
  "organization_id": "org_xxxxxxxxxxxxxxxx",
  "name": "California Sales Tax",
  "description": "State sales tax for California",
  "rate": "8.2500",
  "tax_type": "sales_tax",
  "is_active": true,
  "is_compound": false,
  "created_at": "2024-01-01T10:00:00Z",
  "updated_at": "2024-01-01T10:00:00Z"
}

Attributes

AttributeTypeDescription
idstringUnique identifier with tax_ prefix
organization_idstringThe organization this tax belongs to
namestringTax rate display name
descriptionstringOptional detailed description
ratestringTax rate as decimal (e.g., "8.2500" for 8.25%)
tax_typeenumsales_tax, vat, excise, or other
is_activebooleanWhether the tax rate is active
is_compoundbooleanWhether this tax is applied on top of other taxes
created_atdatetimeWhen the tax was created
updated_atdatetimeWhen the tax was last updated

List Taxes

GET/organizations/:organization_id/taxes
Auth required

Returns a list of tax rates for the organization.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID

Query Parameters

ParameterTypeDescription
tax_typeenumFilter by tax type
is_activebooleanFilter by active status (default: true)
limitintegerNumber of results (default: 20, max: 100)
offsetintegerPagination offset

Response

{
  "object": "list",
  "data": [
    {
      "id": "tax_xxxxxxxxxxxxxxxx",
      "name": "California Sales Tax",
      "rate": "8.2500",
      "tax_type": "sales_tax",
      "is_active": true
    },
    {
      "id": "tax_yyyyyyyyyyyyyyyy",
      "name": "Federal Excise Tax",
      "rate": "2.5000",
      "tax_type": "excise",
      "is_active": true
    }
  ],
  "has_more": false,
  "total_count": 2
}

Create Tax

POST/organizations/:organization_id/taxes
Auth required
1 credits

Creates a new tax rate for the organization.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID

Request Body

ParameterTypeRequiredDescription
namestringYesTax rate name
descriptionstringNoTax rate description
ratestringYesTax rate as decimal string
tax_typeenumYessales_tax, vat, excise, or other
is_compoundbooleanNoWhether tax is compound (default: false)

Response

{
  "id": "tax_xxxxxxxxxxxxxxxx",
  "organization_id": "org_xxxxxxxxxxxxxxxx",
  "name": "New York Sales Tax",
  "description": "State sales tax for New York",
  "rate": "8.8750",
  "tax_type": "sales_tax",
  "is_active": true,
  "is_compound": false,
  "created_at": "2024-01-15T14:30:00Z",
  "updated_at": "2024-01-15T14:30:00Z"
}

Get Tax

GET/organizations/:organization_id/taxes/:id
Auth required

Retrieves the details of a specific tax rate.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID
idstringYesThe tax ID

Update Tax

PUT/organizations/:organization_id/taxes/:id
Auth required
1 credits

Updates an existing tax rate.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID
idstringYesThe tax ID

Request Body

ParameterTypeDescription
namestringUpdated tax name
descriptionstringUpdated description
ratestringUpdated tax rate
is_activebooleanActive status

Delete Tax

DELETE/organizations/:organization_id/taxes/:id
Auth required
1 credits

Deletes a tax rate. Tax rates with associated transactions cannot be deleted.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID
idstringYesThe tax ID

Tax Types

Sales Tax

  • Applied to retail sales and services
  • Varies by jurisdiction (state, county, city)
  • Can be single rate or combined rates

VAT (Value Added Tax)

  • Common in European countries
  • Applied at each stage of production/distribution
  • Businesses can reclaim VAT paid on inputs

Excise Taxes

  • Applied to specific goods (alcohol, tobacco, fuel)
  • Fixed amount per unit or percentage of price
  • Often collected by specialized tax authorities

Tax Calculations

Single Tax Rate

Item Price: $100.00
Tax Rate: 8.25%
Tax Amount: $8.25
Total: $108.25

Multiple Tax Rates

Item Price: $100.00
State Tax (6%): $6.00
Local Tax (2.25%): $2.25
Total Tax: $8.25
Total: $108.25

Compound Taxes

Item Price: $100.00
Base Tax (8%): $8.00
Compound Tax (5% on $108): $5.40
Total Tax: $13.40
Total: $113.40

Best Practices

Tax Rate Management

  • Keep tax rates up to date with regulatory changes
  • Document rate change effective dates
  • Maintain audit trails of rate modifications

Multi-Jurisdiction Compliance

  • Track applicable tax rates by location
  • Automate tax calculation based on customer location
  • Maintain records for tax authority audits

Tax Calculation Accuracy

  • Use precise decimal calculations to avoid rounding errors
  • Apply taxes at the line item level for accuracy
  • Support both inclusive and exclusive tax display

Need help?

Create a free account to access our support portal. Once signed in, use the Support tab in your dashboard to submit a support ticket — our team typically responds within 24 hours.