Is there a documentation for SuiteScript 2.x Batch to avoid API reach limit

We are having a problem in our system, we have lots of suitescript, cancel, update. Lots of agents update the orders at the same time. It causes Netsuite API reach limit.

What we want to do is to minimize our Netsuite API call. Using a batch.

But I cant find a sample code in the internet.

Our systems uses Node.js.

Rookie Asked on February 20, 2025 in SuiteApps.
Add Comment
9 Answer(s)

What APIs are you using REST Web Services, SOAP, RESTlets?

Advanced Answered on February 21, 2025.
Add Comment

Restlets @chris

Rookie Answered on February 21, 2025.
Add Comment

It should be possible to amend the RESTlet script to accommodate batches of data. Is the system sending the data in your control too? Are you able to amend the data that is sent?

Advanced Answered on February 21, 2025.
Add Comment

We are not using batches. Can I ask where can I find a documentation or sample code? We are using Nodejs

Rookie Answered on February 21, 2025.
Add Comment

Since RESTlets are completely custom endpoints, you will not find any documentation to cover this.

I am assuming that rather than sending one request at a time you would be able to wrap a couple of them in an array and loop through them in the RESTlet.

I would be happy to take a look at any code, if you like.

I have you also considered retry strategies as an alternative to batches?

Advanced Answered on February 22, 2025.
Add Comment

We are using SuiteSQL api call

example:

RE: Is there a documentation for SuiteScript 2.x Batch to avoid API reach limit

 

RE: Is there a documentation for SuiteScript 2.x Batch to avoid API reach limit

Are you saying that RESTlets has no limitation in api request?

 

Rookie Answered on February 25, 2025.
Add Comment

Is your data being sent to our from NetSuite?

Advanced Answered on February 25, 2025.
Add Comment

You had said that you were using RESTlets which is the reason for the response.

Could you please explain exactly what error you are seeing and when.

Advanced Answered on February 25, 2025.
Add Comment

Yes we are requesting data from Netsuite from our Nodejs App. Apologies, we are using SuiteSQL api.

Netsuite error we have is: Netsuite API request reach limit

Rookie Answered on February 25, 2025.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor