---
search:
  tags:
    - Orders
    - GET
seo:
  description: >-
    Renders the order confirmation as a PDF, generated fresh on every request.
    Always renders… Reference for the GET /orders/{id}/pdf endpoint in the Sibi
    API.
sidebar:
  label: Get order PDF
  badge: GET
title: Get order PDF
type: openapi-operation
---
Renders the order confirmation as a PDF, generated fresh on every request. Always renders the order document — the same content as GET /&#123;id&#125; laid out as a printable confirmation.

`GET /orders/{id}/pdf`

**Responses**

- `200` — The rendered order-confirmation PDF, returned as raw \`application/pdf\` bytes.
- `400` — Bad request - Invalid input data
- `401` — Unauthorized - Missing or invalid authentication
- `403` — Forbidden - The token is missing the scope this operation requires, or was minted for the other environment
- `404` — Not found - No order exists with the given id
- `500` — Internal server error

Response example, 400:

```json
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input parameters"
}
```

Response example, 401:

```json
{
  "code": "UNAUTHORIZED",
  "message": "Missing or invalid authentication token"
}
```

Response example, 403 · environmentMismatch:

```json
{
  "code": "TOKEN_ENVIRONMENT_MISMATCH",
  "message": "A test token was used against the production API. Test tokens only work against the Sibi test environment; use a production token here."
}
```

Response example, 403 · insufficientScope:

```json
{
  "code": "INSUFFICIENT_SCOPE",
  "message": "The presented token is missing the `read:orders` and `read:own:orders` scopes, of which this endpoint requires at least one. Create a token with the scopes you need at https://developer.sibipro.com."
}
```

Response example, 404:

```json
{
  "code": "ORDER_NOT_FOUND",
  "message": "Unable to find order with id: SIBI-12345678"
}
```

Response example, 500:

```json
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": [
    {
      "field": "unknown",
      "error": "Internal server error occurred while processing request"
    }
  ]
}
```
