Create or update a ProAbono customer (write)
create_update_customerCreates or updates a ProAbono customer by customer reference, covering first-time provisioning and later changes. Only provided fields are written, so pass only fields your app owns.
Instructions
WRITE. Creates a ProAbono customer in the configured Segment, or updates it when one already carries that reference -- the endpoint is an upsert keyed on ReferenceCustomer, so this one tool covers both and never fails because the customer exists. Use it for the first provisioning at sign-up or first login, which is the recommended path (the hosted pages and the rights read both need the customer to exist), and for every later change. Only the fields passed are written. Do not pass a field the merchant's application is not the authority for: the hosted pages let customers edit their own name and language, and this overwrites what they set.
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, e.g. "en". | |
| metadata | No | Free key/value pairs stored on the record. At most 5 keys, 450 characters per value. | |
| customer_ref | Yes | Shared reference, derived from the application's user identifier. |