Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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"