Skip to main content
POST
/
products
/
bulk
/
quantity
Bulk update product quantity
curl --request POST \
  --url https://api.salesive.com/api/v1/products/bulk/quantity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "productIds": [
    "66a1f2c4e1b3a40012ab34cd",
    "66a1f2c4e1b3a40012ab34ce"
  ],
  "quantity": 50
}
'
{
  "status": 200,
  "success": true,
  "message": "Bulk update product quantity",
  "data": {}
}
Sets the stock quantity for multiple products in the store at once. The response message states how many were updated; no data payload is returned. Requires the WRITE_INVENTORY scope.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.

Body

application/json
productIds
string[]
required

Array of product ObjectIds (at least one).

quantity
integer
required

New stock quantity to set on all listed products (>= 0).

Response

Bulk update product quantity — success.

status
integer
required
Example:

200

success
boolean
required
Example:

true

message
string
required
Example:

"Bulk update product quantity"

data
object
required
Example:
{}