Reputation: 674
I would like to know how to create the correct body for creating a customer record. I am using the Postman examples that I downloaded from Netsuite and I'm accessing /record/v1/customer
as POST, but I keep getting this Sector and Subsidiary error. By the way, I don't have access to the Netsuite dashboard for now. I am still waiting
for my company to give me access. Would really appreciate the help, or even just pointing me to the right direction. Thanks a lot!
Upvotes: 1
Views: 1778
Reputation: 2985
Try a get request to:
/record/v1/customer
That will list all the customers currently in your account, by ID (hopefully there are some).
Pick one of those IDs (eg 99) and make a get request to:
/record/v1/customer/99
and that will return the customer record in JSON. Have a look for something that looks like sector
in there.
Upvotes: 1
Reputation: 919
Sector is not a NetSuite standard field name. It could either be a custom entity field or a standard field that was renamed to Sector. You will have to get the correct ID for this field from your account.
Upvotes: 2