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.
{
"display_name": "ABC Plumbing",
"primary_contact": {
"first_name": "John",
"last_name": "Doe",
"mobile_phone": "333-444-5555",
"email": "johndoe@abc.com",
"billing_address": {
"address_line1": "123 Main Street",
"address_line2": "Suite 123",
"city": "Naples",
"state_code": "FL",
"zip_code": "34102"
}
}
}
{
"display_name": "ABC Plumbing",
"contacts": [
{
"_id": "6839e415564d3cc21603221e",
"isPrimary": true
},
{
"_id": "6839e415564d3cc2160t623c",
"isPrimary": false
}
]
}
{
"success": true,
"action": "added",
"_id": "60f720d248f143332af022e0"
}
{
"success": false,
"errors": [
"invalid field2",
"missing field_name"
]
}