To use the premium batch request for cart, you need CoCart Plus or higher. Otherwise feel free to use the standard WordPress batch process. Supports API v2 or higher.
How do I use it?
It’s very simple. Post your requests as you would do a standard WordPress batch request only you are using our special batch endpointwp-json/cocart/batch instead.
What about guest customers?
Simply provide the cart key to identify the cart for the guest customer the same way you would for a singular cart endpoint.If you used the standard batch process, you would have to apply the cart key to each request, which we don’t recommend.
<cart_key> that identifies the guest customers cart before sending the request: