cURL
curl --request POST \ --url https://api.example.com/vendor/products/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "update": [ { "id": "<string>", "title": "<string>", "status": "draft", "discountable": true } ], "delete": [ "<string>" ] } '
{ "updated": "<array>", "deleted": "<array>" }
Updates multiple products for the authenticated vendor. Allows updating title, status, and discountable fields.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The products to update.
Show child attributes
The products IDs to delete.
OK
The updated products.
The deleted products.