# Get voucher basis as SIE

`GET /public/api/v1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}/SIE`

Voucher API · VoucherBases · base URL `https://voucher-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/voucher/voucher-bases/get-voucher-basis-as-sie

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `outletId` | string (uuid) | yes |  |
| `voucherBasisId` | string (uuid) | yes |  |

## Header parameters

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

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |

### 200 response (`application/octet-stream`)

#### Example (from schema)

```json
"string"
```

### 400 response (`application/octet-stream`)

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

#### Example

```json
{
  "message": "Cannot create voucher.\nMissing account number for way of payments:\nInvoice\nMissing account number for product groups:\nSnus, Food (TakeAway)\nMissing account number for taxes:\n20\n",
  "errorCode": "aad1dadd-f6c5-401c-9ae1-cdf0788dc952",
  "additionalData": {
    "paymentMethods": [
      "Invoice"
    ],
    "productGroups": [
      "Snus",
      "Food (TakeAway)"
    ],
    "taxes": [
      "20"
    ],
    "fees": []
  }
}
```

### 404 response (`application/octet-stream`)

| 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://voucher-api.ancon.io/public/api/v1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}/SIE" \
  -H "Access-Token: $ANCON_TOKEN"
```
