ar-invoices

Update Issuer Profile

Partial update of one issuer profile — an omitted field is left unchanged.

ZCT-265: this route is declared PATCH but bound the create schema and dumped it whole, so an omitted field was written at its Pydantic default. A caller doing exactly what the ar_invoice_readiness gate asks — completing the address after issuer_incomplete — silently cleared bank_account_id (the creditor account printed on the Swiss QR-bill), default_payment_terms_id and is_default, and reset country/template_key. Nothing in the response distinguished the fields it had changed from the ones it had wiped.

An explicit null still clears a nullable field; the five NOT NULL columns are refused by name (ar_invoice._NON_NULLABLE_ISSUER_FIELDS).

patch/companies/{company_id}/ar/issuer-profiles/{profile_id}

Request

  • Base URL: https://app.zeno-works.ch (the document declares no server; this is the origin it was published from)
  • URL: https://app.zeno-works.ch/companies/{company_id}/ar/issuer-profiles/{profile_id}
  • Auth: none declared

Path parameters

company_idstring required
profile_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

labelstring nullable
legal_namestring nullable
address_line1string nullable
address_line2string nullable
postal_codestring nullable
citystring nullable
countrystring nullable
vat_numberstring nullable
contact_emailstring nullable
contact_phonestring nullable
bank_account_idstring nullable
logo_document_idstring nullable
footer_textstring nullable
legal_textstring nullable
default_language'de' | 'en' | 'fr' | 'it' nullable
default_payment_terms_idstring nullable
template_keystring nullable
is_defaultboolean nullable

Response

Successful Response

labelstring required
legal_namestring required
address_line1string nullable
address_line2string nullable
postal_codestring nullable
citystring nullable
countrystring
vat_numberstring nullable
contact_emailstring nullable
contact_phonestring nullable
bank_account_idstring nullable
logo_document_idstring nullable
footer_textstring nullable
legal_textstring nullable
default_languagestring nullable
default_payment_terms_idstring nullable
template_keystring
is_defaultboolean
idstring required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.