Create or update customer
save_customerCreate a new customer when no ID is given, or update existing customer fields; optionally add an address and manage group memberships.
Instructions
Without customer_id creates a customer (email required); with customer_id updates only the given fields. Can also add an address and add/remove the customer from groups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| phone | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| last_name | No | ||
| first_name | No | ||
| add_address | No | ||
| customer_id | No | ||
| company_name | No | ||
| add_to_groups | No | Customer group IDs to join | |
| remove_from_groups | No | Customer group IDs to leave |