Stay organized with collectionsSave and categorize content based on your preferences.
custombatchis a common method that allows you to group several API calls,
known as "entries" into one single HTTP request. Each entry only references a
single method call.
Custom batch is a good choice when:
You've just started using the API and have a lot of product data to upload.
You need to synchronize local data with the server by sending lots of
updates and deletes.
Make batch requests
Sending batch requests is similar to sending API calls in parallel. Note that
there is no guarantee that the order of entries defined in the request will
be in the order that they are executed. We recommend that you don't use
interdependent calls in a single batch request (such as creating and updating
the same shipment).
Similarly, the responses received for batched requests may be returned in a
different order to that of the request entries. TheBatchIdcan be used to
correlate requests and responses since the responses may be returned out of
sequence.
You can batch requests in the API by calling the appropriatecustombatchmethod:
Resources and their corresponding custom batch methods
To avoid errors when uploading large batches, we recommend limiting the size
ofcustombatchrequests to a maximum of 1,000 entries. The following maximums
apply tocustombatchrequests:
50,000 entries percustombatchrequest
32Mb transfer size
Calls that exceed the maximums result in the followingrequest_too_largeerrors:
"Too many requests in a batch."
"Request payload size exceeds the limit: %d bytes."
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-13 UTC."],[],["The Merchant API beta, a new version of the Content API for Shopping, is introduced. It uses `custombatch`, a method to group multiple API calls into a single HTTP request for efficient data uploading and synchronization. `Custombatch` suits large data transfers but doesn't guarantee execution order. `BatchId` correlates requests and responses. Batches can have top-level or entry-specific errors. There is a recommended limit of 1,000 entries per batch with maximum limits of 50,000 entries, and 32Mb size.\n"],null,[]]