# Retrieve Tax Component Template

`GET /lokta-lms/api/v1/taxes/component/template`

## Responses
- `default`: default response

## Response fields
- `creditAccount` (GLAccountData)
- `creditAccountType` (EnumOptionData)
- `debitAccount` (GLAccountData)
- `debitAccountType` (EnumOptionData)
- `glAccountOptions` (object)
- `glAccountTypeOptions` (array of EnumOptionData)
- `id` (integer)
- `name` (string)
- `percentage` (number)
- `startDate` (string)
- `taxComponentHistories` (array of TaxComponentHistoryData)

## Example request (cURL)
```bash
curl -X GET \
  'http://localhost:8080/lokta-lms/api/v1/taxes/component/template' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default'
```

## Example response
```json
{
  "creditAccount": {
    "accountTypeOptions": [],
    "allowedAssetsTagOptions": [],
    "allowedEquityTagOptions": [],
    "allowedExpensesTagOptions": []
  },
  "creditAccountType": {
    "code": "string",
    "id": 1,
    "value": "string"
  },
  "debitAccount": {
    "accountTypeOptions": [],
    "allowedAssetsTagOptions": [],
    "allowedEquityTagOptions": [],
    "allowedExpensesTagOptions": []
  },
  "debitAccountType": {
    "code": "string",
    "id": 1,
    "value": "string"
  }
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/retrieveTemplateTaxComponent
