Endpoint Details
- URL:
/api/v0/taxes
- 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
Query Parameters
Optional Parameters
Parameter | Type | Description | Default | Validation |
---|---|---|---|---|
skip | string | Number of records to skip for pagination | ”0” | Optional numeric string |
take | string | Number of records to return | ”10” | Optional numeric string |
While these parameters are defined in the controller, the current implementation returns all taxes associated with the application regardless of pagination parameters.
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 |
App 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
Business Logic
Application Scoping
Automatic Filtering
Automatic Filtering
- Only taxes associated with your authenticated application are returned
- Taxes are automatically filtered based on the application context
- No manual filtering required - the API handles application scoping
Business Isolation
Business Isolation
- Taxes are scoped to your business - other businesses’ taxes are not visible
- All returned taxes belong to the same business as your authenticated application
- Ensures data privacy and prevents unauthorized access
Data Relationships
Application Association
Application Association
- Each tax includes an
apps
array showing associated applications - Applications in the array can use this tax for calculations
- Empty
apps
array indicates tax is not assigned to any applications
Multi-Application Support
Multi-Application Support
- Taxes can be shared across multiple applications within the same business
- Applications inherit access to taxes they’re associated with
- Changes to tax rates affect all associated applications
Filtering and Sorting
Client-Side Filtering
Filter taxes by active/inactive status:
Use Cases
Tax Configuration Dashboard
Display all available taxes with status and rates for management
Invoice Tax Selection
Populate tax dropdown lists for invoice creation forms
Compliance Reporting
Generate reports showing all configured tax rates for audit purposes
Application Setup
Configure tax settings when setting up new applications
Detailed Examples
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
Caching
Cache tax data locally to reduce API calls:
2
Error Handling
Implement robust error handling:
3
Status Indication
Clearly indicate tax status in your UI:
4
Application Context
Show which applications use each tax:
Security Notes
Tax configurations are scoped to your authenticated application and contain sensitive business information. Ensure secure transmission and storage.
Data Scoping
Data Scoping
- Tax configurations are automatically scoped to your authenticated application
- Only taxes explicitly associated with your application are returned
- Business-level isolation prevents cross-business data access
Access Control
Access Control
- Requires valid API authentication
- Consider implementing additional access controls in your application layer
- Monitor access patterns for unusual activity
Data Protection
Data Protection
- Sensitive business information - ensure secure transmission
- Consider encryption for stored tax configuration data
- Implement audit logging for tax data access
Related Endpoints
POST /api/v0/taxes
- Create a new taxGET /api/v0/taxes/{id}
- Fetch specific tax detailsPATCH /api/v0/taxes/{id}
- Update tax configurationDELETE /api/v0/taxes/{id}
- Delete tax