{"openapi":"3.1.0","info":{"title":"GET /api/v1/tax/rates","version":"1.0.0","description":"List tax rates"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/tax/rates":{"get":{"tags":["tax"],"summary":"List tax rates","description":"List all tax rates for the business.","operationId":"list_tax_rates_api_v1_tax_rates_get","parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only show active rates","default":true,"title":"Active Only"},"description":"Only show active rates"},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by country","title":"Country"},"description":"Filter by country"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by state","title":"State"},"description":"Filter by state"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-business-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Business-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxRatesListResponse"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"TaxRateResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Tax rate UUID"},"business_id":{"type":"string","title":"Business Id","description":"Business UUID"},"name":{"type":"string","title":"Name","description":"Tax rate name"},"rate":{"type":"number","title":"Rate","description":"Tax rate as decimal"},"rate_percent":{"type":"number","title":"Rate Percent","description":"Tax rate as percentage"},"tax_type":{"type":"string","title":"Tax Type","description":"Tax type"},"country":{"type":"string","title":"Country","description":"Country code"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State/province"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County","description":"County"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City"},"tax_liability_ledger_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Liability Ledger Id","description":"Tax liability ledger"},"is_default":{"type":"boolean","title":"Is Default","description":"Is default"},"is_active":{"type":"boolean","title":"Is Active","description":"Is active"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"}},"type":"object","required":["id","business_id","name","rate","rate_percent","tax_type","country","is_default","is_active","created_at","updated_at"],"title":"TaxRateResponse","description":"Response schema for a tax rate."},"TaxRatesListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TaxRateResponse"},"type":"array","title":"Items","description":"List of items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total","description":"Total number of items (null when not calculated for performance)"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit","description":"Pagination limit"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Cursor for next page"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor","description":"Cursor for previous page"},"has_next":{"type":"boolean","title":"Has Next","description":"Whether there are more items"},"has_prev":{"type":"boolean","title":"Has Prev","description":"Whether there are previous items"}},"type":"object","required":["items","has_next","has_prev"],"title":"TaxRatesListResponse","description":"Paginated list of tax rates."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}