{"openapi":"3.1.0","info":{"title":"GET /api/v1/fixed-assets/categories/{category_id}","version":"1.0.0","description":"Get asset category"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/fixed-assets/categories/{category_id}":{"get":{"tags":["fixed-assets"],"summary":"Get asset category","description":"Get a specific asset category.","operationId":"get_asset_category_api_v1_fixed_assets_categories__category_id__get","parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}},{"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/AssetCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AssetCategoryResponse":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Category name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description","description":"Category description"},"default_useful_life_months":{"type":"integer","maximum":600.0,"minimum":1.0,"title":"Default Useful Life Months","description":"Default useful life in months for assets in this category","default":60},"default_depreciation_method":{"$ref":"#/components/schemas/DepreciationMethod","description":"Default depreciation method","default":"straight_line"},"default_salvage_percent":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Default Salvage Percent","description":"Default salvage value as percentage of cost","default":0},"id":{"type":"string","title":"Id","description":"Category ID"},"asset_ledger_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Ledger Id","description":"Ledger account for asset cost"},"depreciation_expense_ledger_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Depreciation Expense Ledger Id","description":"Ledger account for depreciation expense"},"accumulated_depreciation_ledger_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accumulated Depreciation Ledger Id","description":"Ledger account for accumulated depreciation"},"asset_count":{"type":"integer","title":"Asset Count","description":"Number of assets in this category","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Record creation timestamp"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"AssetCategoryResponse","description":"Schema for asset category response."},"DepreciationMethod":{"type":"string","enum":["straight_line","declining_balance","double_declining","units_of_production"],"title":"DepreciationMethod","description":"Depreciation calculation methods."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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":[]}]}