Create or update customer
loyverse_upsert_customerCreate a new customer or update an existing one by ID in Loyverse, storing only personal data the customer has provided.
Instructions
Create a customer, or update one by passing its id. This writes personal data to the merchant's Loyverse account, so only pass details the customer has given.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "loyverse_upsert_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Omit to create. | |
| city | No | ||
| name | Yes | ||
| note | No | ||
| No | |||
| region | No | ||
| address | No | ||
| postal_code | No | ||
| country_code | No | Two-letter ISO country code. | |
| phone_number | No | ||
| customer_code | No | Loyalty card or membership code. |