Endpoint Details
- URL:
/api/v0/taxes/{tax_id}
- Method:
GET
- Authentication: Required (API Key Authentication)
- Content-Type:
application/json
Authentication
This endpoint requires API key authentication using:x-client-key
: Your API client keyx-client-secret
: Your API client secret
Path Parameters
Parameter | Type | Description | Required |
---|---|---|---|
tax_id | string | Unique identifier for the tax | Yes |
Response
Success Response (200 OK)
Response Fields
Tax Object
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the tax |
name | string | Tax name for identification |
description | string | Detailed description of the tax (optional) |
business_id | string | ID of the business this tax belongs to |
percentage | number | Tax percentage rate |
active | boolean | Whether the tax is currently active |
created_at | string | ISO 8601 timestamp when tax was created |
updated_at | string | ISO 8601 timestamp when tax was last updated |
apps | array | Applications associated with this tax |
Application Object
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the application |
business_id | string | ID of the business this application belongs to |
app_name | string | Internal application name |
display_name | string | Human-readable application name |
environment | string | Application environment (PRODUCTION, STAGING) |
stage | string | Application stage |
timezone | string | Application timezone |
created_at | string | ISO 8601 timestamp when app was created |
updated_at | string | ISO 8601 timestamp when app was last updated |
Example Requests
Error Responses
Tax Analysis
Rate Categorization
Zero Rate (0%)
Zero Rate (0%)
- Use Cases: Exempt items, non-taxable services
- Examples: Basic food items, medical services, educational materials
- Compliance: Often used for essential goods and services
Low Rate (0.1% - 4.9%)
Low Rate (0.1% - 4.9%)
- Use Cases: Reduced rate items, special categories
- Examples: Books, newspapers, children’s items
- Considerations: May require special documentation or approval
Standard Rate (5% - 14.9%)
Standard Rate (5% - 14.9%)
- Use Cases: Most common tax rates for general goods and services
- Examples: General sales tax, standard VAT rates
- Implementation: Straightforward application to most transactions
High Rate (15% - 24.9%)
High Rate (15% - 24.9%)
- Use Cases: Luxury items, higher tax jurisdictions
- Examples: Premium goods, certain services
- Considerations: May affect customer behavior and pricing strategies
Premium Rate (25%+)
Premium Rate (25%+)
Configuration Health
Active Status
Active Status
- Healthy: Active taxes with associated applications
- Warning: Inactive taxes still associated with applications
- Issue: Active taxes with no associated applications
Application Association
Application Association
- Single App: Tax used by one application only
- Multi App: Tax shared across multiple applications
- Unassigned: Tax not associated with any applications
Maintenance
Maintenance
- Recently Created: Created within last 7 days
- Recently Updated: Modified within last 7 days
- Needs Review: Not updated in over 365 days
Use Cases
Tax Detail Display
Show complete tax information in admin interfaces
Configuration Validation
Verify tax settings before applying to transactions
Audit and Compliance
Review tax configurations for regulatory compliance
Integration Setup
Retrieve tax details for third-party system integration
Rate Comparison
Compare tax rates across different jurisdictions
Application Management
Review which applications use specific tax rates
Implementation Examples
Security Considerations
Tax details contain sensitive business configuration data. Ensure proper access controls and audit logging.
Access Control
Access Control
- Only authenticated applications can access tax details
- Tax data is scoped to the business of the authenticated application
- Applications can only access taxes they’re associated with
Data Integrity
Data Integrity
- Tax rates are critical for financial calculations
- Verify tax data integrity before using in transactions
- Implement checksums or validation for critical tax data
Audit Requirements
Audit Requirements
- Log all tax data access for audit purposes
- Track who accessed tax configuration data and when
- Maintain records for regulatory compliance requirements
Rate Limiting
This endpoint is subject to the standard API rate limits:- Production: 1000 requests per hour per API key
- Development: 100 requests per hour per API key
Best Practices
1
Error Handling
Implement comprehensive error handling for missing or inaccessible taxes:
2
Caching Strategy
Cache frequently accessed tax details:
3
Validation
Always validate tax data before using in calculations:
4
Monitor Usage
Track tax usage patterns for optimization:
Related Endpoints
POST /api/v0/taxes
- Create a new taxGET /api/v0/taxes
- List all taxesPATCH /api/v0/taxes/{id}
- Update tax configurationDELETE /api/v0/taxes/{id}
- Delete tax