Warm tip: This article is reproduced from stackoverflow.com, please click
netsuite rest suitetalk

Requesting Sales Order Data from Netsuite Web Service (Suitetalk)

发布于 2020-05-12 12:07:28

I want to extract Sales Orders from my netsuite instance. To test this I use postman. When using the Netsuite REST API Tutorial Environment with the url:

{{proto}}://{{host}}/rest/platform/{{version}}/record/salesorder

(postman fills the variables with environment values)
I should get a JSON object that contains a list of all sales orders.
But I get this error :

{
    "type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
    "title": "Invalid search query Record 'transaction' was not found. Reason: INSUFFICIENT_PERMISSIONS - Missing permissions for this record.",
    "status": 400,
    "o:errorCode": "INVALID_PARAMETER"
}

I have tried giving the role that i use for my web service user a lot of permissions, but i havent found the right one yet. What permissions are needed, to make this get-request?

Questioner
Markante Makrele
Viewed
142
Johny 2020-02-28 16:30

for your request to work, you will need at least these two permissions:

Manage Roles > Edit > Permissions > Transactions:

  • Find Transaction
  • Sales Order

Plus of course you need Integration permissions:

Manage Roles > Edit > Permissions > Setup:

  • Log in using Access Tokens
  • REST Web Services

Manage Roles > Edit > Permissions > Reports:

  • SuiteAnalytics Workbook