Search

saveCustomerProfessional

Create a link between two customers — specify that one is a “professional” for the other one.

“Professionals” are a specific one-to-many, one-way relationship between customers. A customer can have zero or more “professionals”, each one of which is a customer in itself, and one of which can be the “default professional”.

To see a list of a customer’s “professionals”, see getCustomers and pass the flag getAssociationsAndProfessionals = 1.

To delete the link between two customers, so that one ceases to be a “professional” for the other one, see API call deleteCustomerProfessional.

An identical feature is “customer’s associations”. See saveCustomerAssociation and deleteCustomerAssociation.

Input parameters

Parameter nameDescriptionPossible valueRequired
relationshipIDRequired for editing an existing relationship.Integer
customerIDCustomer ID.Integer
professionalIDProfessional ID.Integer
defaultInteger (0 or 1)

Response

Field nameTypeDescription
relationshipIDIntegerID of the newly-created or updated item