create_customer
Create a new customer record in Clover with duplicate protection, checking existing email or phone before adding. Optionally preview the payload with dry-run and confirm duplicates as needed.
Instructions
Modifies merchant data. Create a new customer record in Clover.
Idempotency guard: searches for an existing customer with the same email or phone before creating. If a match is found and confirm_duplicate is False, the call is refused and the existing match is returned.
dry_run=True returns the would-be POST payload without sending it. Requires CUSTOMERS_R (duplicate check) and CUSTOMERS_W (write).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| phone | No | ||
| dry_run | No | ||
| last_name | Yes | ||
| first_name | Yes | ||
| confirm_duplicate | No | ||
| marketing_allowed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||