The following endpoint can be used to add or update a customer within the Hyfin application. The customer mobile phone number and email address will be used to send payment requests to the customer.
The following endpoint can be used to add or update a customer. You must replace the {base_url} and {site_id} variable with the site id that was provided when the site was created.
{
"external_id": "39772634",
"first_name": "John",
"last_name": "Doe",
"account_name": "",
"mobile_phone": "111-222-3333",
"email": "johndoe@abc.com",
"notes": "World's best customer",
"active": true,
"notification_options": {
"notify_phone": true,
"notify_email": true
}
}
{
"success": true,
"action": "added",
"_id": "60f720d248f143332af022e0"
}
{
"success": false,
"errors": [
"invalid field2",
"missing field_name"
]
}