Send small numbers of inventory updates in one request, up to five megabytes of total payload.
Method | POST |
Path | /inventory/batch/small |
Url Params | none |
Body | ItemInventory[] |
Response JSON |
SmallBatchAsyncUpdateResponse |
Request Headers |
Standard headers |
Request Size Limit | 5 megabytes |
Rate limit | No more than 10 calls per second to this API |
Details
Use this API to send small amounts of inventory update objects (up to five megabytes worth) in a single API call - note if you use gzip encoding you will be able to send more inventory objects in a single request. The API will receive the inventory updates and process them after the fact, returning an HTTP response immediately. Developers may call the InventoryChangeLog API to determine what happened.
Dsco computes that if a partner sent every attribute possible on the ItemInventory object (for a size of ~2000 bytes) for each object included in the request without using gzip encoding each request could handle roughly 2,500 objects no problem. Dsco computes that in the more common case each ItemInventory object is closer to 1000 bytes and each request could handle roughly 5,000 ItemInventory objects without gzipping. At 10 a second that means in one minute Dsco could receive well over three million ItemInventory objects to be updated. With gzip encoding turned on this would increase by a measurable percent.
Comments
Please sign in to leave a comment.