# Get tax details

`GET /api/v1/Tenants/{tenantId}/Taxes/{id}`

Core API · Taxes · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/taxes/get-tax-details

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `tenantId` | string (uuid) | yes |  |
| `id` | string (uuid) | yes |  |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `correlationId` | string | no | Correlation Id for the request |

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 401 | Unauthorized |
| 404 | Not Found |

### 200 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tax` | object or null | no |  |
| `tax.id` | string (uuid) | no |  |
| `tax.tenantId` | string (uuid) | no |  |
| `tax.value` | object or null | no |  |
| `tax.value.type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `tax.value.rate` | number (double) | no |  |
| `tax.isDeleted` | boolean | no |  |
| `tax.isMandatory` | boolean | no |  |
| `tax.outletTaxSettings` | array<object> or null | no |  |
| `tax.outletTaxSettings[].outletId` | string (uuid) | no |  |
| `tax.outletTaxSettings[].outletName` | string or null | no |  |
| `tax.outletTaxSettings[].accountId` | string (uuid) or null | no |  |
| `tax.outletTaxSettings[].accountNumber` | string or null | no |  |
| `tax.outletTaxSettings[].voucherTracking` | object or null | no |  |
| `tax.outletTaxSettings[].voucherTracking.costCenter` | string or null | no |  |
| `tax.outletTaxSettings[].voucherTracking.project` | string or null | no |  |
| `tax.outletTaxSettings[].custom1` | string or null | no |  |
| `tax.outletTaxSettings[].custom2` | string or null | no |  |
| `tax.outletTaxSettings[].custom3` | string or null | no |  |
| `tax.outletTaxSettings[].custom4` | string or null | no |  |
| `tax.outletTaxSettings[].custom5` | string or null | no |  |

#### Example

```json
{
  "tax": {
    "id": "a6edcaea-3a45-43ca-bed8-6e5c09e59b74",
    "tenantId": "da5a5865-0715-4b54-aea6-38701db40990",
    "value": {
      "type": 1,
      "rate": 12
    },
    "isDeleted": false,
    "isMandatory": true,
    "outletTaxSettings": [
      {
        "outletId": "041bc7a0-a650-4b01-a612-64323396e0c0",
        "outletName": "Example outlet",
        "accountId": "1c0872b7-2cad-4678-b986-4e1724920235",
        "accountNumber": "1910",
        "voucherTracking": {
          "costCenter": "12",
          "project": "F"
        },
        "custom1": null,
        "custom2": null,
        "custom3": null,
        "custom4": null,
        "custom5": null
      }
    ]
  }
}
```

### 401 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |

#### Example (from schema)

```json
{
  "message": "string"
}
```

### 404 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |
| `errorCode` | string (uuid) | no |  |

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```

## Example request

```bash
curl -X GET "https://core-api.ancon.io/api/v1/Tenants/{tenantId}/Taxes/{id}" \
  -H "Access-Token: $ANCON_TOKEN"
```
