# Get fee details

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

Core API · Fees · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/fees/get-fee-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 |
| --- | --- | --- | --- |
| `fee` | object or null | no |  |
| `fee.id` | string (uuid) | no |  |
| `fee.tenantId` | string (uuid) | no |  |
| `fee.name` | string or null | no |  |
| `fee.position` | integer (int32) | no |  |
| `fee.amountInclTax` | object or null | no |  |
| `fee.amountInclTax.amount` | number (double) | no |  |
| `fee.amountInclTax.currency` | string or null | no |  |
| `fee.isDeleted` | boolean | no |  |
| `fee.taxes` | array<object> or null | no |  |
| `fee.taxes[].id` | string (uuid) | no |  |
| `fee.taxes[].rate` | number (double) | no |  |
| `fee.outletFeeSettings` | array<object> or null | no |  |
| `fee.outletFeeSettings[].outletId` | string (uuid) | no |  |
| `fee.outletFeeSettings[].outletName` | string or null | no |  |
| `fee.outletFeeSettings[].accountNumber` | string or null | no |  |
| `fee.outletFeeSettings[].accountId` | string (uuid) or null | no |  |
| `fee.outletFeeSettings[].voucherTracking` | object or null | no |  |
| `fee.outletFeeSettings[].voucherTracking.costCenter` | string or null | no |  |
| `fee.outletFeeSettings[].voucherTracking.project` | string or null | no |  |
| `fee.outletFeeSettings[].custom1` | string or null | no |  |
| `fee.outletFeeSettings[].custom2` | string or null | no |  |
| `fee.outletFeeSettings[].custom3` | string or null | no |  |
| `fee.outletFeeSettings[].custom4` | string or null | no |  |
| `fee.outletFeeSettings[].custom5` | string or null | no |  |

#### Example

```json
{
  "fee": {
    "id": "eb196cdc-60be-4bb8-9c17-5356f265395f",
    "tenantId": "38843c21-fc67-464f-aa89-595b997bb010",
    "name": "Delivery fee",
    "position": 0,
    "amountInclTax": {
      "amount": 99,
      "currency": "SEK"
    },
    "isDeleted": false,
    "taxes": [
      {
        "id": "4576d36f-2f13-4df2-9dc9-6b229895392a",
        "rate": 12
      }
    ],
    "outletFeeSettings": [
      {
        "outletId": "b860e783-660f-4b72-b586-b8814b4366d8",
        "outletName": "Example outlet",
        "accountNumber": "1910",
        "accountId": "6894c70d-6cab-441d-927a-981afdf1eadb",
        "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}/Fees/{id}" \
  -H "Access-Token: $ANCON_TOKEN"
```
