Light Mode
Update Bulk Quantities
POST
/products/quantities/bulkLast modified: 25 days ago
This endpoint allows you to update unlimited bulk quantities by providing the IDs of the products you want to update its quantity in your body request, where it will process the update procedure and then execute later on.
Request
Body Params application/json
No schema defined
Example
{
"products": [
{
"identifer_type": "id",
"identifer": "613398835",
"quantity": 60,
"mode": "increment",
"branch": "349994915",
"reason_id": 566146469,
"unlimited_quantity": true
},
{
"identifer_type": "id",
"identifer": "9834759404",
"quantity": 80,
"mode": "overwrite",
"branch": "349994915",
"reason_id": 566146469,
"unlimited_quantity": true
},
{
"identifer_type": "variant_id",
"identifer": "3498732894",
"quantity": 14,
"mode": "decrement",
"branch": "349994915",
"reason_id": 566146469
},
{
"identifer_type": "variant_id",
"identifer": "8439405958",
"quantity": 140,
"branch": "349994915",
"reason_id": 566146469
}
]
}
Request samples
Responses
Created(201)
Error Validation(422)
unauthorized(401)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 201,
"success": true,
"data": {
"message": "The details has been queued to update, it may take several minutes to finish the process",
"code": 201
}
}
Last modified: 25 days ago