Update customer
update_customerChanges one customer record, chosen by id. Use it to correct a company name, address, VAT ID or email. Only the fields given are changed, but each one overwrites the stored value and the old value is not kept; an empty string clears a field, except the company name. No invoice is altered: Invoices and recurring invoice templates keep the recipient details they were created with. A company name another customer in the account already has is rejected and nothing is saved. The debtor number cannot be changed. The VAT ID is stored as given, without a format check. Saving an invoice for the same company name in the web app overwrites the record's address, VAT ID and email with that invoice's recipient details. It does not email anyone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Customer id, as returned by list_customers | |
| city | No | City | |
| No | Email address invoices for this customer go to | ||
| state | No | State or region | |
| vatId | No | VAT ID (e.g. DE123456789), stored as given | |
| street | No | Street and house number | |
| country | No | Country ISO code (e.g. DE, US) | |
| postalCode | No | Postal code | |
| companyName | No | New company or person name, unique in the account | |
| addressLine2 | No | Second address line |