> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lucanto.eu/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lucanto.eu/_mcp/server.

# Reopen a locked quote for editing

POST https://app.lucanto.eu/api/v1/workspaces/{workspace_id}/quotes/{id}/reopen

Clears the lock and moves the quote to `reopened`, so its
content can be edited and then re-sent via
[`markQuoteSent`](#operation/markQuoteSent) or
[`sendQuote`](#operation/sendQuote). The quote **keeps its
number** — re-sending from `reopened` does not mint a new one.

**Not idempotent** — it requires a locked quote, so a second
call returns 422.

**Required scope: `manage:quotes`**.


Reference: https://docs.lucanto.eu/api-reference/api-reference/quotes/reopen-quote

## Authentication

- `Authorization` header (bearer token, required) — JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
- `Authorization` header (bearer token, required) — Lucanto API key. Two prefixes: * `lct_pat_<random><checksum>` — personal access token (owner: User) * `lct_live_<random><checksum>` — workspace token, live data Issue keys at `/settings/api_keys` (personal) or `/:workspace_id/settings/api_keys` (workspace). Plaintext token is shown once and never again.

## Request

### Path parameters

- `workspace_id` (long, required) — Workspace ID. The numeric ID shown in your URLs.
- `id` (ResourceId, required) — Quote ID. Either the numeric `id` or the `public_id` (`doc_…`).

### Headers

- `Idempotency-Key` (string, optional) — Client-supplied unique key (recommended: UUID v4) for safe retries. Within 24 hours, repeating the same key with the same request (method, path, query, body) replays the original response instead of re-executing the action — once the action has run, a 5xx included; a request stopped before it ran is not stored. Reusing a key with a different request returns `422 idempotency_key_conflict` (IETF draft §2.7).

## Response

### 200

OK. The quote with `status: reopened`, `status_transitions.locked_at` cleared and `status_transitions.reopened_at` set.

- `id` (long, required)
- `public_id` (string, required) — Stable public identifier of this record. Never changes once assigned. Its prefix names the entity: `doc_` document (invoice, proforma, credit note, quote, sales order), `exp_` expense, `cnt_` contact, `prj_` project, `ba_` bank account or cash register, `txn_` transaction, `lon_` loan, `bst_` bank statement. Accepted in place of the numeric `id` in this resource's path parameters and in request fields that reference it (`customer_id`, `bank_account_id`, …).
- `type` (enum, required) — Document type discriminator. Always `quote` on this endpoint.
  - Allowed values: `quote`
- `status` (enum, required) — Quote lifecycle state. `issued` is ready for external use; `sent` has reached the customer; `accepted` and `rejected` record the customer's decision; `expired` is past `expiry_date`; `reopened` is where [`reopenQuote`](#operation/reopenQuote) lands a previously locked quote (editable again, must be re-sent); `canceled` is explicitly retired.
  - Allowed values: `draft`, `issued`, `sent`, `accepted`, `rejected`, `expired`, `reopened`, `canceled`
- `expiry_date` (date, required) — Quote validity end date. Required at creation. The model rejects past dates on create unless the record originates from an import.
- `currency` (string, required) — ISO-4217 currency code.
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `payment_status` (enum, optional, nullable) — Derived settlement degree. Null for quotes because they are non-payable.
  - Allowed values: `unpaid`, `partially_paid`, `paid`, `overpaid`
- `overdue` (boolean, optional, nullable) — Null for quotes because they are non-payable.
- `paid_late` (boolean, optional, nullable) — Null for quotes because they are non-payable.
- `status_transitions` (DocumentStatusTransitions, optional)
- `number` (string, optional, nullable) — Quote number (formatted via number_series, e.g. 'CEN2026-0001'). Null for drafts.
- `issue_date` (date, optional, nullable)
- `delivery_date` (date, optional, nullable)
- `due_date` (date, optional, nullable) — Payment due date; typically null for quotes.
- `due_days` (integer, optional, nullable)
- `exchange_rate` (string, optional, nullable)
- `order_number` (string, optional, nullable)
- `included_in_turnover` (boolean, optional, nullable)
- `reverse_charge` (boolean, optional, nullable)
- `reverse_charge_text` (string, optional, nullable)
- `tax_scheme` (string, optional) — Tax scheme (UNCL 5153), e.g. "VAT".
- `discount_description` (string, optional, nullable)
- `discount_percentage` (string, optional, nullable)
- `discount_amount` (string, optional, nullable)
- `opening_text` (string, optional, nullable)
- `closing_text` (string, optional, nullable)
- `footer_note` (string, optional, nullable)
- `internal_note` (string, optional, nullable)
- `pdf_language` (string, optional, nullable)
- `pdf_locale` (string, optional, nullable)
- `delivery_method` (string, optional, nullable) — Delivery/carrier mode
- `email_sent_at` (datetime, optional, nullable)
- `amount_paid` (string, optional, nullable) — Amount settled so far. Always null for quotes (non-payable type).
- `amount_due` (string, optional, nullable) — Outstanding amount. Always null for quotes (non-payable type).
- `import_source` (enum, optional, nullable) — Origin of the document. `null` when it was created in Lucanto, in which case `totals` are Lucanto's EN 16931 calculation. A non-null value means the document was imported from that system and initially carries the source system's own figures, preserved verbatim; those may differ by cents from Lucanto's calculation because systems round VAT at different levels (line vs. category). `insight` means AI extraction from an uploaded file, not an import from another vendor. This records provenance only, not which calculation is currently in effect — editing line items or document discounts recomputes `totals` in Lucanto while leaving `import_source` set. In practice a document only ever carries `kros_developer`, `isdoc`, `superfaktura` or `null`. `kros` appears only on rows imported before the writer was renamed, and `insight` is written by the expense path only. The enum is kept as the union across resources rather than narrowed, so a legacy row cannot fail validation.
  - Allowed values: `kros`, `kros_developer`, `isdoc`, `superfaktura`, `insight`
- `totals` (QuoteTotals, optional)
- `settings` (QuoteSettings, optional)
- `line_items` (list of QuoteLineItem, optional)
- `customer` (PartyEmbed, optional, nullable) — The party identity as it appears on a document. On an ISSUED document this is the identity the document was issued with — a snapshot pinned at issue, which does NOT change when the legal entity is later renamed, re-registered, or moved. A draft follows the entity's current identity. `id` is the legal entity's id and is stable across identity changes, so a stored reference keeps resolving. This matches the PDF and the ISDOC export of the same document. `vat_period` is not part of this projection — a counterparty's filing period is not knowable.
- `supplier` (PartyEmbed, optional, nullable) — The party identity as it appears on a document. On an ISSUED document this is the identity the document was issued with — a snapshot pinned at issue, which does NOT change when the legal entity is later renamed, re-registered, or moved. A draft follows the entity's current identity. `id` is the legal entity's id and is stable across identity changes, so a stored reference keeps resolving. This matches the PDF and the ISDOC export of the same document. `vat_period` is not part of this projection — a counterparty's filing period is not knowable.

## Errors

### 401 Unauthorized Error

Missing or invalid authentication credentials.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 402 Payment Required Error

Workspace has no active subscription. Visit the upgrade URL to subscribe.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.
- `upgrade_url` (string, optional) — URL to the billing/plans page

### 403 Forbidden Error

Authenticated, but the token's scope or the user's role does not permit this action. Both the token scope and the user's role must allow the action. Also returned when a workspace token is sent to an endpoint that acts for a user (`/user`, `/user/workspaces`, devices, notification preferences, diagnostics): a workspace token has no user behind it, so use a personal access token or a JWT there.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 404 Not Found Error

Resource does not exist, or exists but is not visible to the authenticated principal (cross-workspace isolation returns 404, not 403, to avoid leaking existence).

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 409 Conflict Error

One of two conflicts; branch on `error`. - `idempotency_in_progress`: a request with this `Idempotency-Key` is still being processed. Retry shortly with the same key. - `conflict`: the record is in the trash. Restore it first; this answer is not stored, so the same key works afterwards.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 422 Unprocessable Entity Error

The quote cannot be reopened. `message` names which clause refused: - it is not locked — this covers a repeat call ("This document is not locked.") - it is partially or fully paid - it has already been transmitted to an electronic system

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 429 Too Many Requests Error

Rate limit exceeded. Retry after the window resets.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

## Types

### ResourceId

The record's numeric `id` or its `public_id` (`doc_01h455vb4pex5vsknk084sn02q`). The bare UUID form of the `public_id` is still accepted but deprecated.

- long
- string
- string

### DocumentStatusTransitions

- `issued_at` (datetime, optional, nullable)
- `sent_at` (datetime, optional, nullable)
- `locked_at` (datetime, optional, nullable)
- `reopened_at` (datetime, optional, nullable)
- `transmitted_at` (datetime, optional, nullable)
- `canceled_at` (datetime, optional, nullable)

### QuoteTotals

- `line_extension` (string, optional) — Sum of line nets before document-level discount (BT-106).
- `allowance_total` (string, optional) — Document-level discount amount (BT-107).
- `charge_total` (string, optional) — Document-level charge amount (BT-108). Always "0.00" in this version.
- `tax_exclusive` (string, optional) — Net taxable amount after discount, before VAT (BT-109).
- `tax_amount` (string, optional) — Total VAT across all rates (BT-110).
- `tax_inclusive` (string, optional) — Gross total including VAT (BT-112).
- `prepaid` (string, optional, nullable) — Always null for quotes (non-payable type; BT-113).
- `rounding` (string, optional, nullable) — Cash rounding adjustment (BT-114). Null for quotes (non-payable type).
- `payable` (string, optional, nullable) — Always null for quotes (non-payable type; BT-115).
- `tax_breakdown` (list of TaxBreakdownEntry, optional) — Per-(category, rate) breakdown. One entry per distinct EN 16931 BT-118 category + rate pair.

### QuoteSettings

- `show_payment_qr` (boolean, optional) — Effective: whether the payment QR renders
- `payment_qr_format` (enum, optional, nullable) — The document's OWN payment QR format choice (what was sent on create/update, or stamped at issue). null while it follows the workspace default, and for a document issued before the setting existed, whose QR the bank account's country decides. Not the format that finally prints.
  - Allowed values: `auto`, `pay_by_square`, `spayd`, `epc`, `none`
- `payment_qr_resolved` (PaymentQrResolved, optional) — What the document will print as its payment QR, and why — as saved, so a draft answers for the moment it is issued. Returned on a single document (get, create, update and the lifecycle actions) and left out of list items: it needs the customer's country and the bank account per row. The stored choice is `settings.payment_qr_format`; this is the outcome of applying it.

### QuoteLineItem

- `id` (long, required)
- `name` (string, required)
- `description` (string, optional, nullable)
- `line_number` (integer, optional, nullable)
- `quantity` (string, optional, nullable)
- `measure_unit` (string, optional, nullable)
- `unit_price` (string, optional, nullable)
- `tax_rate` (string, optional, nullable)
- `discount_description` (string, optional, nullable)
- `discount_percentage` (string, optional, nullable)
- `discount_unit_price` (string, optional, nullable)
- `created_at` (datetime, optional)
- `updated_at` (datetime, optional)

### PartyEmbed

The party identity as it appears on a document. On an ISSUED document this is the identity the document was issued with — a snapshot pinned at issue, which does NOT change when the legal entity is later renamed, re-registered, or moved. A draft follows the entity's current identity. `id` is the legal entity's id and is stable across identity changes, so a stored reference keeps resolving. This matches the PDF and the ISDOC export of the same document. `vat_period` is not part of this projection — a counterparty's filing period is not knowable.

- `id` (long, required)
- `legal_registration_id` (string, optional, nullable) — Legal/company registration identifier (SK/CZ IČO). `_id` denotes *identifier*, not a foreign key; the value is an opaque string and may be alphanumeric outside SK/CZ (e.g. UK `SC123456`).
- `tax_id` (string, optional, nullable) — Tax registration identifier (SK/CZ DIČ). An identifier string, not a number.
- `vat_id` (string, optional, nullable) — VAT identifier (SK/CZ IČ DPH). Alphanumeric with a country prefix (e.g. `SK2020123456`, `ATU12345678`) — an identifier, not a number.
- `vat_payer_type` (enum, optional, nullable) — VAT registration status (standard | non_payer_vat | foreign); nullable.
  - Allowed values: `standard`, `non_payer_vat`, `foreign`
- `email` (string, optional, nullable)
- `phone_number` (string, optional, nullable)
- `website` (string, optional, nullable)
- `address` (AddressEmbed, optional, nullable)
- `postal_address` (AddressEmbed, optional, nullable)
- `legal_name` (string, optional, nullable) — The legal registered name of the entity, including its legal form (e.g. "Stark Codes, s.r.o."). On an issued document this is the name at issue, not the entity's current name.

### TaxBreakdownEntry

- `category` (string, optional) — EN 16931 tax category code (BT-118): S, AE, O, K, G, E, Z.
- `rate` (string, optional) — Tax rate as a percentage (e.g. "23.0").
- `taxable` (string, optional) — Taxable base for this (category, rate).
- `tax` (string, optional) — Tax amount for this (category, rate).
- `exemption_reason` (string, optional, nullable) — Reason text for an exempt/zero/reverse-charge category (BT-120).

### PaymentQrResolved

What the document will print as its payment QR, and why — as saved, so a draft answers for the moment it is issued. Returned on a single document (get, create, update and the lifecycle actions) and left out of list items: it needs the customer's country and the bank account per row. The stored choice is `settings.payment_qr_format`; this is the outcome of applying it.

- `format` (enum, required, nullable) — The QR that prints: PAY by square (Slovak accounts), QR Platba / SPAYD (Czech accounts) or EPC QR (SEPA, EUR). `null` = no QR prints; `reason` says why.
  - Allowed values: `pay_by_square`, `spayd`, `epc`
- `reason` (enum, required) — Why `format` is what it is: - `payer` — `auto` chose the format the customer's banking app reads. - `explicit` — a format was chosen on the document or as the workspace default. - `account` — nothing in the payer's country applies, or the document predates the setting: the bank account's country decides. - `disabled` — the QR type is "none". - `unsupported` — a forced format cannot encode this account or currency (prints no QR). - `no_match` — no format can encode this account and currency (prints no QR). - `no_account` — no bank account on the document or as the workspace default. - `qr_off` — the document's payment-QR switch is off. - `not_bank_transfer` — the payment method is not a bank transfer. - `no_payment_details` — this document type prints no payment details (quote, credit note, …). - `canceled` — the document is canceled.
  - Allowed values: `payer`, `explicit`, `account`, `disabled`, `unsupported`, `no_match`, `no_account`, `qr_off`, `not_bank_transfer`, `no_payment_details`, `canceled`

### AddressEmbed

- `id` (long, required)
- `street` (string, optional, nullable)
- `city` (string, optional, nullable)
- `postal_code` (string, optional, nullable)
- `country_code` (string, optional, nullable) — ISO 3166-1 alpha-2 country code, uppercase (e.g. "SK").

## Examples

**Response**

```json
{
  "id": 1,
  "public_id": "doc_01h455vb4pex5vsknk084sn02q",
  "type": "quote",
  "status": "draft",
  "expiry_date": "2023-01-15",
  "currency": "string",
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z",
  "payment_status": "unpaid",
  "overdue": true,
  "paid_late": true,
  "status_transitions": {
    "issued_at": "2024-01-15T09:30:00Z",
    "sent_at": "2024-01-15T09:30:00Z",
    "locked_at": "2024-01-15T09:30:00Z",
    "reopened_at": "2024-01-15T09:30:00Z",
    "transmitted_at": "2024-01-15T09:30:00Z",
    "canceled_at": "2024-01-15T09:30:00Z"
  },
  "number": "string",
  "issue_date": "2023-01-15",
  "delivery_date": "2023-01-15",
  "due_date": "2023-01-15",
  "due_days": 1,
  "exchange_rate": "string",
  "order_number": "string",
  "included_in_turnover": true,
  "reverse_charge": true,
  "reverse_charge_text": "string",
  "tax_scheme": "string",
  "discount_description": "string",
  "discount_percentage": "string",
  "discount_amount": "string",
  "opening_text": "string",
  "closing_text": "string",
  "footer_note": "string",
  "internal_note": "string",
  "pdf_language": "string",
  "pdf_locale": "string",
  "delivery_method": "string",
  "email_sent_at": "2024-01-15T09:30:00Z",
  "amount_paid": "string",
  "amount_due": "string",
  "import_source": "kros",
  "totals": {
    "line_extension": "string",
    "allowance_total": "string",
    "charge_total": "string",
    "tax_exclusive": "string",
    "tax_amount": "string",
    "tax_inclusive": "string",
    "prepaid": "string",
    "rounding": "string",
    "payable": "string",
    "tax_breakdown": [
      {
        "category": "string",
        "rate": "string",
        "taxable": "string",
        "tax": "string",
        "exemption_reason": "string"
      }
    ]
  },
  "settings": {
    "show_payment_qr": true,
    "payment_qr_format": "auto",
    "payment_qr_resolved": {
      "format": "pay_by_square",
      "reason": "payer"
    }
  },
  "line_items": [
    {
      "id": 1,
      "name": "string",
      "description": "string",
      "line_number": 1,
      "quantity": "string",
      "measure_unit": "string",
      "unit_price": "string",
      "tax_rate": "string",
      "discount_description": "string",
      "discount_percentage": "string",
      "discount_unit_price": "string",
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T09:30:00Z"
    }
  ],
  "customer": {
    "id": 1,
    "legal_registration_id": "string",
    "tax_id": "string",
    "vat_id": "string",
    "vat_payer_type": "standard",
    "email": "string",
    "phone_number": "string",
    "website": "string",
    "address": {
      "id": 1,
      "street": "string",
      "city": "string",
      "postal_code": "string",
      "country_code": "string"
    },
    "postal_address": {
      "id": 1,
      "street": "string",
      "city": "string",
      "postal_code": "string",
      "country_code": "string"
    },
    "legal_name": "Stark Codes, s.r.o."
  },
  "supplier": {
    "id": 1,
    "legal_registration_id": "string",
    "tax_id": "string",
    "vat_id": "string",
    "vat_payer_type": "standard",
    "email": "string",
    "phone_number": "string",
    "website": "string",
    "address": {
      "id": 1,
      "street": "string",
      "city": "string",
      "postal_code": "string",
      "country_code": "string"
    },
    "postal_address": {
      "id": 1,
      "street": "string",
      "city": "string",
      "postal_code": "string",
      "country_code": "string"
    },
    "legal_name": "Stark Codes, s.r.o."
  }
}
```

**SDK Code**

```python
import requests

url = "https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen"

headers = {
    "Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript
const url = 'https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Idempotency-Key", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen")
  .header("Idempotency-Key", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lucanto.eu/api/v1/workspaces/42/quotes/1/reopen")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```