mercury_update_customer
Update an existing customer's contact details by providing only the fields to change. Existing invoices are not modified.
Instructions
Update an existing Accounts Receivable customer. Pass only the fields you want to change.
USE WHEN: amending a customer's contact details (name, email, billing address) after creation. Existing invoices are not retroactively modified.
DO NOT USE: to delete a customer (use mercury_delete_customer). To change the customer of an existing invoice, cancel + recreate the invoice.
SIDE EFFECTS: writes the new customer record to Mercury. Persistent. Only the fields you pass are changed — omitted fields keep their current value.
RETURNS: { id, name, email, address, ... } — the updated customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| No | |||
| address | No | Customer billing address (Mercury requires `name` in the address) | |
| customerId | Yes | Customer ID |