Update Bulk Quantities
POST
/products/quantities/bulkThis 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
Identifier Type. Value can either be id
or variant_id
Identifier Value, such as Product ID or and sku ID
Quantity Value
Mode of quantity update; one of the allowed enum values
Option to indicate the product is of unlimited quantity
Branch ID, List of Branches IDs can be found here.
Reason ID for the update
{
"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
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A text or data communication generated by a system or application in response to a request.
A numerical or alphanumeric identifier used in various systems and protocols to indicate the status or outcome of a specific request.
{
"status": 201,
"success": true,
"data": {
"message": "The details has been queued to update, it may take several minutes to finish the process",
"code": 201
}
}