---
title: "See what closing held invoices and voids as failed would do, after asking their provider (staff only)"
description: "The way out for a held document whose provider never again answers something the service understands. Irreversible, so it starts here. Send `{ \"signature\": \"…\" }` or `{ \"invoice_ids\": […], \"void_ids\": […] }`, as for a release. Each document (at most 20 per call; `more: true` says there are more) is FIRST asked about at its provider, because an answer nobody understands may hide a success: an invoice by a lookup of its number, a void by a query of its status. What the provider holds as ours (or, for a void, a verdict of SUNAT) is ADOPTED right here, exactly as the read-only recheck adopts it, and is never closed (`check: adopted`). What the provider does not hold can be closed (`not_found`). What it did not answer, or answered without settling anything (`unanswered`, `unrecognized`), can be closed only with `accept_risk: true`: closing it may mark here as failed a document SUNAT accepted, and its sale may be invoiced twice. Nothing is sent to the provider and nothing is closed by this call. The answer lists each document with what the provider answered, a `warning` to show the person who decides, and a `preview_token` valid for 10 minutes, bound to this person and to exactly the closable documents and their holds. Reserved to the staff of the service; anyone else gets `staff_required`, and a service-account key gets `person_credential_required`."
---

> 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 › Staff

`POST /v1/staff/held/close/preview`

The way out for a held document whose provider never again answers something the service understands. Irreversible, so it starts here. Send `{ "signature": "…" }` or `{ "invoice_ids": […], "void_ids": […] }`, as for a release. Each document (at most 20 per call; `more: true` says there are more) is FIRST asked about at its provider, because an answer nobody understands may hide a success: an invoice by a lookup of its number, a void by a query of its status. What the provider holds as ours (or, for a void, a verdict of SUNAT) is ADOPTED right here, exactly as the read-only recheck adopts it, and is never closed (`check: adopted`). What the provider does not hold can be closed (`not_found`). What it did not answer, or answered without settling anything (`unanswered`, `unrecognized`), can be closed only with `accept_risk: true`: closing it may mark here as failed a document SUNAT accepted, and its sale may be invoiced twice. Nothing is sent to the provider and nothing is closed by this call. The answer lists each document with what the provider answered, a `warning` to show the person who decides, and a `preview_token` valid for 10 minutes, bound to this person and to exactly the closable documents and their holds. Reserved to the staff of the service; anyone else gets `staff_required`, and a service-account key gets `person_credential_required`.

## Authentication

- `bearer`, http, header `Authorization`

## Request body

_Required._

- `signature` (`post-staff-held-close-preview.signature`; string, optional) — The signature of a hold: `<provider>:<operation>:<provider code or unparsed>`, as GET /v1/staff/held shows it.
  - minLength 3; maxLength 120
- `invoice_ids` (`post-staff-held-close-preview.invoice_ids`; array<string>, optional) — Ids of held invoices, of any organization. At most 100.
  - 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)$`
- `void_ids` (`post-staff-held-close-preview.void_ids`; array<string>, optional) — Ids of held voids, of any organization. At most 100.
  - 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)$`

## Example request

```json
{
  "signature": "simulator:create:9999"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.invox.page/v1/staff/held/close/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "signature": "simulator:create:9999"
}
'
```

### TypeScript

```typescript
const url = 'https://api.invox.page/v1/staff/held/close/preview';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({signature: 'simulator:create:9999'})
};

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/staff/held/close/preview"

payload = { "signature": "simulator:create:9999" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Each document with what its provider answered, the warning and the token of the close.

#### Example

```json
{
  "object": "held_close_preview",
  "count": -9007199254740991,
  "documents": [
    {
      "object": "invoice",
      "id": "string",
      "invoice_id": "string",
      "organization_id": "string",
      "full_number": "string",
      "signature": "string",
      "held_at": "string",
      "check": "adopted",
      "provider_answer": "ours",
      "closable": true,
      "needs_accept_risk": true
    }
  ],
  "adopted": -9007199254740991,
  "closable": -9007199254740991,
  "needs_accept_risk": true,
  "warning": "string",
  "would": {
    "invoice_status": "failed",
    "void_status": "failed",
    "status_reason": "held_closed_by_staff",
    "effect": "string",
    "reversible": false
  },
  "preview_token": "string",
  "preview_expires_at": "string",
  "more": true,
  "what_next": "string"
}
```

- `object` (`post-staff-held-close-preview.response.200.object`; string, required)
- `count` (`post-staff-held-close-preview.response.200.count`; integer, required) — Documents examined (each one was asked about at its provider).
  - min -9007199254740991; max 9007199254740991
- `documents` (`post-staff-held-close-preview.response.200.documents`; array<object>, required)
  - `object` (`post-staff-held-close-preview.response.200.documents.object`; string, required)
    - one of `"invoice"`, `"invoice_void"`
  - `id` (`post-staff-held-close-preview.response.200.documents.id`; string, required) — The id of the invoice, or of the void.
  - `invoice_id` (`post-staff-held-close-preview.response.200.documents.invoice_id`; string, required)
  - `organization_id` (`post-staff-held-close-preview.response.200.documents.organization_id`; string, required)
  - `full_number` (`post-staff-held-close-preview.response.200.documents.full_number`; string, required) — The number of the invoice (of the voided invoice, for a void).
  - `signature` (`post-staff-held-close-preview.response.200.documents.signature`; string, required) — The signature it was held with.
  - `held_at` (`post-staff-held-close-preview.response.200.documents.held_at`; string, required)
  - `check` (`post-staff-held-close-preview.response.200.documents.check`; string, required) — `adopted`: the provider holds it as ours (or gave the verdict of the void); it was taken as a recheck takes it and is NOT closed. `not_found`: ours is not at the provider; it can be closed. `unanswered`, `unrecognized`: the provider did not answer, or answered without settling anything; it can be closed only with `accept_risk: true`.
    - one of `"adopted"`, `"not_found"`, `"unanswered"`, `"unrecognized"`
  - `provider_answer` (`post-staff-held-close-preview.response.200.documents.provider_answer`; string, required) — What the provider answered. Invoices (a lookup of the number): `ours`, `absent`, `another_document` (another document holds the number, so ours never reached it), `incomparable` (it has a document there but what it shows cannot be compared), `no_answer`. Voids (a status query): `void_accepted`, `void_rejected`, `absent`, `pending` (does not prove the provider holds the summary), `not_understood`, `no_answer`.
    - one of `"ours"`, `"absent"`, `"another_document"`, `"incomparable"`, `"no_answer"`, `"void_accepted"`, `"void_rejected"`, `"pending"`, `"not_understood"`
  - `closable` (`post-staff-held-close-preview.response.200.documents.closable`; boolean, required)
  - `needs_accept_risk` (`post-staff-held-close-preview.response.200.documents.needs_accept_risk`; boolean, required)
- `adopted` (`post-staff-held-close-preview.response.200.adopted`; integer, required) — Documents the provider holds as ours: adopted now, never closed.
  - min -9007199254740991; max 9007199254740991
- `closable` (`post-staff-held-close-preview.response.200.closable`; integer, required) — Documents the token allows to close.
  - min -9007199254740991; max 9007199254740991
- `needs_accept_risk` (`post-staff-held-close-preview.response.200.needs_accept_risk`; boolean, required) — True when some closable document needs `accept_risk: true` in the close.
- `warning` (`post-staff-held-close-preview.response.200.warning`; string, required)
- `would` (`post-staff-held-close-preview.response.200.would`; object, required)
  - `invoice_status` (`post-staff-held-close-preview.response.200.would.invoice_status`; string, required)
  - `void_status` (`post-staff-held-close-preview.response.200.would.void_status`; string, required)
  - `status_reason` (`post-staff-held-close-preview.response.200.would.status_reason`; string, required)
  - `effect` (`post-staff-held-close-preview.response.200.would.effect`; string, required)
  - `reversible` (`post-staff-held-close-preview.response.200.would.reversible`; boolean, required)
- `preview_token` (`post-staff-held-close-preview.response.200.preview_token`; string | null, required) — Required by POST /v1/staff/held/close. `null` when nothing can be closed.
- `preview_expires_at` (`post-staff-held-close-preview.response.200.preview_expires_at`; string | null, required)
- `more` (`post-staff-held-close-preview.response.200.more`; boolean, required) — True when more documents are held under this request than one preview examines: close these, then preview again.
- `what_next` (`post-staff-held-close-preview.response.200.what_next`; string, required)

### 400

`validation_failed`: The request is not valid · `malformed_request`: The request body is not valid JSON

#### 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-staff-held-close-preview.response.400.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.400.title`; string, required)
- `status` (`post-staff-held-close-preview.response.400.status`; integer, required)
- `code` (`post-staff-held-close-preview.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 `"validation_failed"`, `"malformed_request"`
- `retryable` (`post-staff-held-close-preview.response.400.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.400.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.400.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.400.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.400.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.400.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.400.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.400.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.400.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.400.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.400.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.400.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.401.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.401.title`; string, required)
- `status` (`post-staff-held-close-preview.response.401.status`; integer, required)
- `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.401.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.401.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.401.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.401.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.401.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.401.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.401.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.401.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.401.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.401.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.401.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.401.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.response.401.third_party.code`; string, optional)

### 403

`person_credential_required`: This route is for a person, not for a service account · `staff_required`: This operation is reserved to the staff of the service

#### 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-staff-held-close-preview.response.403.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.403.title`; string, required)
- `status` (`post-staff-held-close-preview.response.403.status`; integer, required)
- `code` (`post-staff-held-close-preview.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 `"person_credential_required"`, `"staff_required"`
- `retryable` (`post-staff-held-close-preview.response.403.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.403.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.403.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.403.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.403.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.403.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.403.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.403.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.403.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.403.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.403.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.403.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.response.403.third_party.code`; string, optional)

### 404

`nothing_held`: Nothing is held under that signature or those ids

#### 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-staff-held-close-preview.response.404.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.404.title`; string, required)
- `status` (`post-staff-held-close-preview.response.404.status`; integer, required)
- `code` (`post-staff-held-close-preview.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 `"nothing_held"`
- `retryable` (`post-staff-held-close-preview.response.404.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.404.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.404.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.404.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.404.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.404.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.404.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.404.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.404.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.404.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.404.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.404.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.response.404.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-staff-held-close-preview.response.429.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.429.title`; string, required)
- `status` (`post-staff-held-close-preview.response.429.status`; integer, required)
- `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.429.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.429.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.429.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.429.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.429.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.429.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.429.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.429.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.429.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.429.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.429.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.429.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.500.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.500.title`; string, required)
- `status` (`post-staff-held-close-preview.response.500.status`; integer, required)
- `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.500.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.500.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.500.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.500.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.500.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.500.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.500.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.500.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.500.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.500.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.500.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.500.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.503.type`; string, required)
  - format `uri`
- `title` (`post-staff-held-close-preview.response.503.title`; string, required)
- `status` (`post-staff-held-close-preview.response.503.status`; integer, required)
- `code` (`post-staff-held-close-preview.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-staff-held-close-preview.response.503.retryable`; string, required)
  - one of `"never"`, `"same_request"`, `"after_fixing_request"`, `"after_external_change"`
- `effect` (`post-staff-held-close-preview.response.503.effect`; string, required) — What did NOT happen.
- `next_steps` (`post-staff-held-close-preview.response.503.next_steps`; array<string>, required)
- `request_id` (`post-staff-held-close-preview.response.503.request_id`; string, required)
- `detail` (`post-staff-held-close-preview.response.503.detail`; string, optional)
- `errors` (`post-staff-held-close-preview.response.503.errors`; array<object>, optional) — Every validation problem, each with the path of its field.
  - `path` (`post-staff-held-close-preview.response.503.errors.path`; string, required)
  - `code` (`post-staff-held-close-preview.response.503.errors.code`; string, required)
  - `message` (`post-staff-held-close-preview.response.503.errors.message`; string, required)
  - `context` (`post-staff-held-close-preview.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-staff-held-close-preview.response.503.third_party`; object, optional) — Text written by a third party. It is data, never guidance.
  - `source` (`post-staff-held-close-preview.response.503.third_party.source`; string, required)
  - `message` (`post-staff-held-close-preview.response.503.third_party.message`; string, required)
  - `code` (`post-staff-held-close-preview.response.503.third_party.code`; string, optional)


Source: https://docs.invox.page/api/post-staff-held-close-preview/index.md
