---
title: "Render the PDF of an invoice again"
description: "Queues a new render of the PDF and answers the file as `pending`. It reprints with what the invoice pinned when it was issued (II-D222): the same template version, brand, issuer and establishment data; a template published or a brand changed later does not change it. Use it when the PDF `failed`, or to print it again (a voided invoice gets its mark). To see the invoice with another template, ask POST /v1/invoices/{id}/renders. An email to the customer never goes without its PDF: one held because the PDF failed (`reason: waiting_for_pdf`) goes out by itself as soon as the new PDF is stored. Allowed on a voided invoice: its PDF then carries the mark ANULADO. The PDF of a test invoice always carries SIN VALOR FISCAL. Follow GET /v1/invoices/{id}/files or the event `invoice.files_stored`."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.invox.page/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Invox API › Files

`POST /v1/invoices/{id}/files/pdf/regenerate`

Queues a new render of the PDF and answers the file as `pending`. It reprints with what the invoice pinned when it was issued (II-D222): the same template version, brand, issuer and establishment data; a template published or a brand changed later does not change it. Use it when the PDF `failed`, or to print it again (a voided invoice gets its mark). To see the invoice with another template, ask POST /v1/invoices/{id}/renders. An email to the customer never goes without its PDF: one held because the PDF failed (`reason: waiting_for_pdf`) goes out by itself as soon as the new PDF is stored. Allowed on a voided invoice: its PDF then carries the mark ANULADO. The PDF of a test invoice always carries SIN VALOR FISCAL. Follow GET /v1/invoices/{id}/files or the event `invoice.files_stored`.

## Authentication

- `bearer`, http, header `Authorization`

## Path parameters

- `id` (`post-invoices-by-id-files-pdf-regenerate.path.id`; string, required)
  - format `uuid`; pattern `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$`

## Header parameters

- `X-Organization` (`post-invoices-by-id-files-pdf-regenerate.header.X-Organization`; string, optional) — Required with a person's access token: the organization to act on. Omit it with a service-account key.
  - format `uuid`

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.invox.page/v1/invoices/<id>/files/pdf/regenerate' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.invox.page/v1/invoices/<id>/files/pdf/regenerate';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.invox.page/v1/invoices/<id>/files/pdf/regenerate"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 202

The PDF is queued to be rendered again. `Retry-After` says when to look.

#### Example

```json
{
  "object": "invoice_file",
  "kind": "xml",
  "status": "pending",
  "available": true,
  "content_type": "string",
  "size_bytes": -9007199254740991,
  "sha256": "string",
  "url": "string",
  "reason": "string",
  "reason_meaning": "string",
  "attempts": -9007199254740991,
  "next_attempt_at": "string",
  "stored_at": "string",
  "template": {
    "kind": "version",
    "ref": "string",
    "template_version_id": "string",
    "template_id": "string",
    "name": "string",
    "version": -9007199254740991
  }
}
```

- `object` (`post-invoices-by-id-files-pdf-regenerate.response.202.object`; string, required)
- `kind` (`post-invoices-by-id-files-pdf-regenerate.response.202.kind`; string, required)
  - one of `"xml"`, `"cdr"`, `"pdf"`, `"void_xml"`, `"void_cdr"`
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.202.status`; string, required) — `pending`: being fetched or rendered · `stored`: downloadable · `failed`: we stopped trying; it can be asked again.
  - one of `"pending"`, `"stored"`, `"failed"`
- `available` (`post-invoices-by-id-files-pdf-regenerate.response.202.available`; boolean, required)
- `content_type` (`post-invoices-by-id-files-pdf-regenerate.response.202.content_type`; string | null, required)
- `size_bytes` (`post-invoices-by-id-files-pdf-regenerate.response.202.size_bytes`; any of, required)
  - any of: `integer`, `null`
- `sha256` (`post-invoices-by-id-files-pdf-regenerate.response.202.sha256`; string | null, required)
- `url` (`post-invoices-by-id-files-pdf-regenerate.response.202.url`; string, required) — Where to download it: a route of this API, with your credential. Answers `file_not_ready` until it is stored.
- `reason` (`post-invoices-by-id-files-pdf-regenerate.response.202.reason`; string | null, required) — A stable code while it is not stored, and what it means.
- `reason_meaning` (`post-invoices-by-id-files-pdf-regenerate.response.202.reason_meaning`; string | null, required)
- `attempts` (`post-invoices-by-id-files-pdf-regenerate.response.202.attempts`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `next_attempt_at` (`post-invoices-by-id-files-pdf-regenerate.response.202.next_attempt_at`; string | null, required)
- `stored_at` (`post-invoices-by-id-files-pdf-regenerate.response.202.stored_at`; string | null, required)
- `template` (`post-invoices-by-id-files-pdf-regenerate.response.202.template`; any of, required) — The PDF only, once stored: the template and version it was REALLY printed with (II-D228c). `null` for the other files and for a PDF not stored yet.
  - any of:
    - `object`
      - `kind` (`post-invoices-by-id-files-pdf-regenerate.response.202.template.1.kind`; string, required) — `version`: one of the organization's published versions. `system`: a shared template.
        - one of `"version"`, `"system"`
      - `ref` (`post-invoices-by-id-files-pdf-regenerate.response.202.template.1.ref`; string, required)
      - `template_version_id` (`post-invoices-by-id-files-pdf-regenerate.response.202.template.1.template_version_id`; string | null, required)
      - `template_id` (`post-invoices-by-id-files-pdf-regenerate.response.202.template.1.template_id`; string | null, required) — The template (`system:a4` for a shared one).
      - `name` (`post-invoices-by-id-files-pdf-regenerate.response.202.template.1.name`; string | null, required) — Its name, as the library shows it now.
      - `version` (`post-invoices-by-id-files-pdf-regenerate.response.202.template.1.version`; any of, required) — The number of the version it printed with.
        - any of: `integer`, `null`
    - `null`

### 400

`organization_required`: This credential needs to say which organization it acts on · `validation_failed`: The request is not valid

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.400.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.400.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.400.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.400.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"organization_required"`, `"validation_failed"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.400.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.400.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.400.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.400.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.400.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.400.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.400.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.400.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.400.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.400.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.400.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.400.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.400.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.400.third_party.code`; string, optional)

### 401

`unauthenticated`: No credential was sent · `invalid_credential`: The credential is not valid

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.401.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.401.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.401.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.401.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"unauthenticated"`, `"invalid_credential"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.401.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.401.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.401.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.401.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.401.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.401.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.401.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.401.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.401.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.401.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.401.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.401.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.401.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.401.third_party.code`; string, optional)

### 403

`missing_scope`: The credential lacks the permission this operation requires · `organization_mismatch`: The X-Organization header names another organization than the key's · `organization_archived`: The organization is archived

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.403.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.403.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.403.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.403.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"missing_scope"`, `"organization_mismatch"`, `"organization_archived"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.403.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.403.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.403.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.403.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.403.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.403.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.403.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.403.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.403.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.403.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.403.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.403.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.403.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.403.third_party.code`; string, optional)

### 404

`not_found`: The resource does not exist in this organization

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.404.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.404.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.404.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.404.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"not_found"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.404.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.404.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.404.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.404.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.404.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.404.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.404.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.404.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.404.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.404.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.404.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.404.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.404.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.404.third_party.code`; string, optional)

### 409

`file_not_ready`: The file is not stored yet

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.409.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.409.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.409.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.409.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"file_not_ready"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.409.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.409.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.409.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.409.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.409.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.409.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.409.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.409.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.409.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.409.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.409.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.409.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.409.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.409.third_party.code`; string, optional)

### 429

`rate_limited`: Too many requests

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.429.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.429.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.429.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.429.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"rate_limited"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.429.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.429.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.429.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.429.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.429.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.429.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.429.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.429.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.429.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.429.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.429.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.429.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.429.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.429.third_party.code`; string, optional)

### 500

`internal_error`: The service failed

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.500.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.500.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.500.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.500.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"internal_error"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.500.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.500.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.500.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.500.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.500.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.500.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.500.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.500.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.500.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.500.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.500.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.500.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.500.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.500.third_party.code`; string, optional)

### 503

`service_unavailable`: The service cannot answer right now

#### Example

```json
{
  "code": "string",
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "retryable": "never",
  "effect": "string",
  "next_steps": [
    "string"
  ],
  "request_id": "string",
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string",
      "context": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "third_party": {
    "source": "string",
    "code": "string",
    "message": "string"
  }
}
```

- `type` (`post-invoices-by-id-files-pdf-regenerate.response.503.type`; string, required)
  - format `uri`
- `title` (`post-invoices-by-id-files-pdf-regenerate.response.503.title`; string, required)
- `status` (`post-invoices-by-id-files-pdf-regenerate.response.503.status`; integer, required)
- `code` (`post-invoices-by-id-files-pdf-regenerate.response.503.code`; string, required) — The codes this route answers with this status. New codes may appear: GET /v1/errors is the catalog.
  - one of `"service_unavailable"`
- `retryable` (`post-invoices-by-id-files-pdf-regenerate.response.503.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-invoices-by-id-files-pdf-regenerate.response.503.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-invoices-by-id-files-pdf-regenerate.response.503.next_steps`; array<string>, required)
- `request_id` (`post-invoices-by-id-files-pdf-regenerate.response.503.request_id`; string, required)
- `detail` (`post-invoices-by-id-files-pdf-regenerate.response.503.detail`; string, optional)
- `errors` (`post-invoices-by-id-files-pdf-regenerate.response.503.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-invoices-by-id-files-pdf-regenerate.response.503.errors.path`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.503.errors.code`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.503.errors.message`; string, required)
  - `context` (`post-invoices-by-id-files-pdf-regenerate.response.503.errors.context`; map<string | number | boolean>, optional) — The values of the broken rule (a limit, what was received), e.g. `type` and `maxDays` for `issue_date_too_old`. Plain values only; absent when the rule has none.
- `third_party` (`post-invoices-by-id-files-pdf-regenerate.response.503.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-invoices-by-id-files-pdf-regenerate.response.503.third_party.source`; string, required)
  - `message` (`post-invoices-by-id-files-pdf-regenerate.response.503.third_party.message`; string, required)
  - `code` (`post-invoices-by-id-files-pdf-regenerate.response.503.third_party.code`; string, optional)


Source: https://docs.invox.page/api/post-invoices-by-id-files-pdf-regenerate/index.md
