Contact Associations
Attaches a contact to an entity (client, vendor, etc.)
Base URL
https://{{accountid}}.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=customscript_prac_api_contactassoc&deploy=customdeploy_prac_api_contactassoc_v1
HTTP: PUT
To attach a contact to an entity you will need the internal IDs of the contact and entity (number), and the ID of the entity type (string). "attached": true attaches the contact, "attached": false detaches the contact.
Note: You can use the NetSuite Records Browser to find the ID of the entity type. In PracticeERP, the display name of the customer record has been changed to "Client," but the internal ID of the record type remains "customer."
Entity type examples
- Client = "customer"
- Contact = "contact"
- Employee = "employee"
- Vendor = "vendor"
Payload
{
"contactId": 1483,
"entityType": "customer",
"entityId": 1743,
"attached": false
}