# Get voucher basis as PDF

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

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-pdf

## Path parameters

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

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `PartType` | integer (int32) | no | Allowed values: `0`, `1`, `2`. |
| `SaleType` | integer (int32) | no | Allowed values: `0`, `1`. |

## 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/octet-stream`)

#### Example (from schema)

```json
"string"
```

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