Create or update a customer
loyverse_upsert_customerCreate a loyalty customer, or update one by passing its id. Loyverse does not document whether omitted fields survive an update, so on update fetch the customer first and send the full record. Loyverse: POST /customers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing customer id to update. Omit to create. | |
| city | No | City, town or village. | |
| name | Yes | The customer's name (required). | |
| note | No | A note about the customer. | |
| No | Email address. | ||
| region | No | Province, state or prefecture. | |
| address | No | Street address. | |
| postal_code | No | Postal / ZIP code. | |
| country_code | No | Two-letter ISO 3166-1 alpha-2 country code, e.g. US. | |
| phone_number | No | Phone number. | |
| customer_code | No | Your own customer code (e.g. a loyalty card number). |