How to prevent API Throttling?
I am working in a CREATOR app that will create a pick list for the warehouse floor.
The basic logic is:
- loop through all pending sales orders and pull any line_item that is both in-stock and in-inventory.
- Output this as a pick list page
- The staff marks each line_item as picked/not-picked (picked_status)
- update the records in Inventory
A few problems exist:
- There may be more than 200 Pending sales orders and Creator has a maximum of 200 records can be processed per request.
- I can use the query to get sales orders in batches of 200.
- API requests are limited to 50 per minute, per API endpoint, per public IP address.
- There will be more than 50 line_items. I don't know how to get around this
- I am currently have the function returning a string with HTML formatted table of the line items and the picked_status selector.
- Is there a size limit for the string?
- I want to save the picked_status
- but the sales order does not have a way to create a custom filed for a line item.
- and there is no documentation for accessing the pickelists module of Inventory
Any insights are welcome.