Update a ProAbono customer (write)
update_customerUpdate a ProAbono customer by shared reference, creating the customer if it doesn't exist. Only specified fields are changed, preserving other data.
Instructions
WRITE. Updates a ProAbono customer identified by its shared reference. The endpoint is an upsert: if no customer carries that reference, one is created rather than an error raised. Only the fields passed are changed. Do not pass a field the merchant's application is not the authority for -- the hosted pages let the customer edit their own name and language, and this overwrites what they set.
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": {
"customer_ref": "<customer_ref>"
},
"name": "update_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Internal name, shown in the BackOffice. | |
| No | The customer's email address. | ||
| language | No | ISO 639 language code. | |
| metadata | No | Free key/value pairs stored on the record. At most 5 keys, 450 characters per value. | |
| customer_ref | Yes | Shared reference of the customer to update. |