saveCustomerAssociation

Create a link between two customers — specify that one is an "association" for the other one.

"Associations" are a specific one-to-many, one-way relationship between customers. A customer can have zero or more "associations", each one of which is a customer in itself, and one of which can be the "default association".

To see a list of a customer's "associations", see getCustomers and pass the flag getAssociationsAndProfessionals = 1.

To delete the link between two customers, so that one ceases to be an "association" for the other one, see API call deleteCustomerAssociation.

An identical feature is "customer's professionals". See saveCustomerProfessional and deleteCustomerProfessional.

Input parameters

Parameter name Description Possible value Required
relationshipID Required for editing an existing relationship. integer
customerID Customer ID. integer
associationID Association ID. integer
default Integer (0 or 1)

Response

Field name Type Description
relationshipID integer ID of the newly-created or updated item