Skip to main content
POST
/
vendor
/
products
/
batch
Batch Update Products
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
update
object[]
required

The products to update.

delete
string[]
required

The products IDs to delete.

Response

200 - application/json

OK

updated
array

The updated products.

deleted
array

The deleted products.