# Get ingridient details

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

Core API · Ingredients · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/ingredients/get-ingridient-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 |
| --- | --- | --- | --- |
| `id` | string (uuid) | no |  |
| `name` | string or null | no |  |
| `price` | object or null | no |  |
| `price.amount` | number (double) | no |  |
| `price.currency` | string or null | no |  |
| `materialCost` | object or null | no |  |
| `materialCost.amount` | number (double) | no |  |
| `materialCost.currency` | string or null | no |  |
| `outletShares` | array<object> or null | no |  |
| `outletShares[].id` | string (uuid) | no |  |
| `outletShares[].name` | string or null | no |  |
| `outletShares[].productShareType` | integer (int32) | no | Allowed values: `0`, `1`. |

#### Example

```json
{
  "id": "65777ff2-4255-4c25-8680-d6a9465ec5de",
  "name": "Ingredient",
  "price": {
    "amount": 100,
    "currency": "SEK"
  },
  "materialCost": {
    "amount": 10,
    "currency": "SEK"
  },
  "outletShares": [
    {
      "id": "73ebe79b-9945-41d2-bed9-2571810276f9",
      "name": "Outlet share",
      "productShareType": 0
    }
  ]
}
```

### 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}/Ingredients/{id}" \
  -H "Access-Token: $ANCON_TOKEN"
```
