Discussions
Suitetalk - Create Customer (POST) issue
Hi, I am trying to create a Customer with the endpoint - POST
https://xxxxxx.suitetalk.api.netsuite.com/services/rest/record/v1/customer/
I am trying with this payload:
{ "entityid": "123452", "companyname": "Intact Test 2", "subsidiary": { "id": "3" }, "contactRoles": { "items": [ {
"contact": { "id": "5986", "refName": "Intact Contact" }, "contactName": "Intact Contact", "email": "test@intact .com", "giveAccess": false, "role": { "id": "14", "refName": "Customer Center" } } ] }}
I get this error:
"detail": "Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.", "o:errorPath": "contactRoles", "o:errorCode": "USER_ERROR"