update_invoice
Modify an existing invoice by updating its fields such as number, dates, currency, positions, and notes.
Instructions
Updates specified invoice
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | invoice ID | |
| number | No | unique number | |
| contact_id | No | id of a contact | |
| contact_address_id | No | id of a contact's address | |
| contact_prepage_address_id | No | id of a contact's prepage address | |
| contact_person_id | No | id of a contact's person | |
| date | No | date of the invoice | |
| due | No | due date of the invoice | |
| period_from | No | service period from | |
| period_to | No | service period to | |
| period_text | No | service/delivery | |
| currency | No | currency (e.g. CHF, EUR) | |
| vat_included | No | whether prices in invoice include VAT | |
| discount_rate | No | optional discount rate | |
| discount_type | No | optional discount type; possible values: A - amount, P - in % | |
| cash_discount_rate | No | cash discount value in % | |
| cash_discount_date | No | cash discount deadline date | |
| bank_account_id | No | bank account id | |
| isr_id | No | ISR id | |
| isr_position | No | ISR position; possible values: A - additional page, F - first page, L - last page | |
| payment_link_paypal | No | whether to print PayPal link on invoice | |
| payment_link_postfinance | No | whether to print PostFinance link on invoice | |
| payment_link_payrexx | No | whether to print Payrexx link on invoice | |
| payment_link_smartcommerce | No | whether to print SmartCommerce link on invoice | |
| language | No | language; possible values: de, en, es, fr, it | |
| signature_id | No | signature id | |
| layout_id | No | layout id | |
| notes | No | optional notes | |
| custom_fields | No | custom fields values | |
| positions | No | positions objects | |
| texts | No | texts objects | |
| free_texts | No | free texts objects | |
| workflow | No | workflow objects |