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

# Update a proforma

PATCH https://app.lucanto.eu/api/v1/workspaces/{workspace_id}/proformas/{id}
Content-Type: application/json

Partial update. The `type` field is intentionally NOT updatable.
Updating a proforma that has already been converted to an
invoice is allowed but rare — the downstream invoice is
independent of the source proforma after conversion.


Reference: https://docs.lucanto.eu/api-reference/api-reference/proformas/update-proforma

## 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) — Proforma ID. Either the numeric `id` or the `public_id` (`doc_…`).

### Body (application/json)

This endpoint expects a ProformaUpdateRequest.

- `number` (string, optional)
- `number_series_id` (long, optional)
- `issue_date` (date, optional)
- `delivery_date` (date, optional)
- `due_date` (date, optional)
- `due_days` (integer, optional) — Payment term in days. May be negative — the web form derives it as due_date − issue_date, and neither the model nor the controller constrains the sign.
- `currency` (string, optional)
- `exchange_rate` (string, optional) — Decimal rate as document-currency per 1 base-currency. Optional — when creating a foreign-currency document without it, the ECB reference rate for the issue date is filled automatically (supported currencies only; otherwise it stays unset, i.e. 1.0).
- `payment_method` (string, optional)
- `variable_symbol` (string, optional)
- `constant_symbol` (string, optional)
- `specific_symbol` (string, optional)
- `order_number` (string, optional)
- `delivery_method` (string, optional) — Delivery/carrier mode. Permitted by Params::DocumentParams for every document type.
- `show_payment_qr` (boolean, optional) — Per-document override for the payment QR code. Omit to inherit the workspace default.
- `payment_qr_format` (enum, optional, nullable) — Per-document payment QR format. `auto` picks the format the customer's banking app reads (PAY by square for Slovakia, QR Platba for Czechia, EPC QR for other EEA countries). Omit to inherit the workspace default; send null to go back to it.
  - Allowed values: `auto`, `pay_by_square`, `spayd`, `epc`, `none`
- `project_id` (ProjectRef, optional) — Project this document belongs to (from the projects API). Must be in this workspace.
- `round_total` (boolean, optional) — Round the payable total to cash granularity (BT-114); the rounding delta is reported in totals.rounding.
- `quote_id` (DocumentRef, optional) — Quote this document was created from. Must be in this workspace.
- `sales_order_id` (DocumentRef, optional) — Sales order this proforma was issued for (from `GET /sales_orders`). Must be in this workspace.
- `customer_id` (ContactRef, optional) — Contact ID of the customer (from the contacts endpoints). Resolved to the contact's legal entity, workspace-scoped. Required.
- `bank_account_id` (BankAccountRef, optional) — The bank account's or cash register's numeric `id` or its `public_id` (`ba_…`).
- `included_in_turnover` (enum, optional)
  - Allowed values: `0`, `1`
- `reverse_charge` (boolean, optional)
- `reverse_charge_text` (string, optional)
- `discount_description` (string, optional)
- `discount_percentage` (string, optional)
- `discount_amount` (string, optional)
- `opening_text` (string, optional)
- `closing_text` (string, optional)
- `footer_note` (string, optional)
- `recipient_note` (string, optional)
- `internal_note` (string, optional)
- `pdf_language` (enum, optional) — Language of the rendered PDF and customer e-mail. `cz` is a deprecated alias of `cs`: still accepted on input, never returned.
  - Allowed values: `sk`, `cs`, `en`, `ro`, `uk`, `de`, `fr`, `cz`
- `pdf_locale` (string, optional) — Regional format for dates and amounts, a supported language-region tag such as "en-GB".
- `auto_on_payment` (enum, optional, nullable) — What happens when a payment lands on the proforma. Omitted: the workspace's `on_payment_preset` applies (document settings, section `proforma`). An explicit `null` means `nothing`.
  - Allowed values: `regular_invoice`, `regular_invoice_paid`, `tax_document`, `nothing`
- `line_items` (list of ProformaLineItemInput, optional)

## Response

### 200

OK

- `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)
  - Allowed values: `proforma`
- `status` (enum, required) — Proforma lifecycle state. Settlement degree is reported separately by `payment_status`; `settled` is the explicit lifecycle state after downstream settlement handling. `reopened` is where [`reopenProforma`](#operation/reopenProforma) lands a previously locked proforma; it is editable again and must be re-issued.
  - Allowed values: `draft`, `issued`, `sent`, `settled`, `expired`, `reopened`, `canceled`
- `currency` (string, required)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `payment_status` (enum, optional, nullable) — Derived settlement degree (money is the source of truth). Null for non-payable document types, drafts, canceled documents, and rows created before the payment_status backfill ran.
  - Allowed values: `unpaid`, `partially_paid`, `paid`, `overpaid`
- `overdue` (boolean, optional, nullable) — Whether a positive balance remains after the due date.
- `paid_late` (boolean, optional, nullable) — Whether full settlement landed after the due date.
- `status_transitions` (DocumentStatusTransitions, optional)
- `number` (string, optional, nullable)
- `issue_date` (date, optional, nullable)
- `delivery_date` (date, optional, nullable)
- `due_date` (date, optional, nullable)
- `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)
- `auto_on_payment` (string, optional, nullable) — What happens when a payment lands on this proforma: `regular_invoice_paid` (delivered at payment: one paid invoice for a payment that covers it, a tax document for a part-payment), `tax_document` (a tax document for every payment), `nothing`, or the legacy `regular_invoice`. NULL on older proformas, read as `nothing`. When converting via `/convert_to_invoice`, this value is overridden to `regular_invoice` regardless of the stored setting.
- `amount_paid` (string, optional, nullable) — Amount settled so far (payments + advance deductions).
- `amount_due` (string, optional, nullable) — Outstanding amount (tax_inclusive − amount_paid).
- `payment` (ProformaPayment, optional)
- `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` (ProformaTotals, optional)
- `settings` (ProformaSettings, optional)
- `line_items` (list of ProformaLineItem, 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.

### 422 Unprocessable Entity Error

The request could not be processed: a validation error (with `errors[]`), or a refusal with its own error code — for example `idempotency_key_conflict` (an `Idempotency-Key` reused with a different request) or a lifecycle refusal.

- `UpdateProformaRequestUnprocessableEntityError`
  - ValidationError: ValidationError
  - Error: Error

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

### ProjectRef

The project's numeric `id` or its `public_id` (`prj_…`).

- long
- string

### DocumentRef

The document's numeric `id` or its `public_id` (`doc_…`).

- long
- string

### ContactRef

The contact's numeric `id` or its `public_id` (`cnt_…`).

- long
- string

### BankAccountRef

The bank account's or cash register's numeric `id` or its `public_id` (`ba_…`).

- long
- string

### ProformaLineItemInput

- `id` (long, optional)
- `name` (string, optional)
- `description` (string, optional)
- `line_number` (integer, optional)
- `quantity` (string, optional)
- `measure_unit` (string, optional)
- `unit_price` (string, optional)
- `tax_rate` (string, optional)
- `discount_description` (string, optional)
- `discount_unit_price` (string, optional)
- `discount_percentage` (string, optional)
- `_destroy` (boolean, optional) — On update only — set true to remove this item.

### 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)

### ProformaPayment

- `method` (string, optional, nullable)
- `payment_type` (string, optional, nullable) — Variant for the method, or free text when method is 'other'
- `means_code` (string, optional) — EN 16931 BT-81 (UNCL4461). 'other' -> ZZZ
- `bank_account` (BankAccountEmbed, optional, nullable)
- `variable_symbol` (string, optional, nullable) — SK/CZ bank-transfer payment symbol.
- `specific_symbol` (string, optional, nullable)
- `constant_symbol` (string, optional, nullable)
- `recipient_note` (string, optional, nullable) — Bank-transfer message for the recipient (SK 'správa pre príjemcu', ≤140).

### ProformaTotals

- `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) — Amount already settled before this document's balance falls due — advance deposits, DPP deductions (BT-113). Null for non-payable types (e.g. quotes).
- `rounding` (string, optional) — Cash rounding adjustment (BT-114). Non-zero when round_total is true — signed delta so that tax_inclusive − prepaid + rounding = payable.
- `payable` (string, optional, nullable) — Net amount payable = tax_inclusive − prepaid (BT-115). Null for non-payable types (e.g. quotes).
- `tax_breakdown` (list of TaxBreakdownEntry, optional) — Per-(category, rate) breakdown. One entry per distinct EN 16931 BT-118 category + rate pair.

### ProformaSettings

- `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.

### ProformaLineItem

- `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.

### ValidationError

- `error` (enum, required)
  - Allowed values: `unprocessable_entity`
- `message` (string, required) — Concatenated summary of all validation errors
- `errors` (list of string, required) — Individual validation error messages
- `request_id` (string, required)
- `docs_url` (string, required)

### Error

- `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.

### BankAccountEmbed

- `id` (long, required)
- `iban` (string, optional, nullable)
- `swift_code` (string, optional, nullable) — SWIFT/BIC.
- `account_number` (string, optional, nullable)
- `account_number_prefix` (string, optional, nullable)
- `bank_code` (string, optional, nullable)
- `account_holder_name` (string, optional, nullable) — Name on the account (EN 16931 BT-85).
- `currency` (string, optional, nullable)

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

**Request**

```json
{}
```

**Response**

```json
{
  "id": 1,
  "public_id": "doc_01h455vb4pex5vsknk084sn02q",
  "type": "proforma",
  "status": "draft",
  "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",
  "auto_on_payment": "string",
  "amount_paid": "string",
  "amount_due": "string",
  "payment": {
    "method": "string",
    "payment_type": "string",
    "means_code": "string",
    "bank_account": {
      "id": 1,
      "iban": "string",
      "swift_code": "string",
      "account_number": "string",
      "account_number_prefix": "string",
      "bank_code": "string",
      "account_holder_name": "string",
      "currency": "string"
    },
    "variable_symbol": "string",
    "specific_symbol": "string",
    "constant_symbol": "string",
    "recipient_note": "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/proformas/1"

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

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

print(response.json())
```

```javascript
const url = 'https://app.lucanto.eu/api/v1/workspaces/42/proformas/1';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

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

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	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/proformas/1")

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

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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.patch("https://app.lucanto.eu/api/v1/workspaces/42/proformas/1")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lucanto.eu/api/v1/workspaces/42/proformas/1', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.lucanto.eu/api/v1/workspaces/42/proformas/1");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

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

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()
```