Modo Claro
Update Bulk Quantities
POST
/products/quantities/bulkLast modified: a month 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
Parâmetros Bodyapplication/json
No schema defined
Exemplo
{
"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
Respostas
Created(201)
Error Validation(422)
unauthorized(401)
HTTP Code: 201
Content Type : JSONapplication/json
Esquema de Dados
No schema defined
Exemplo
{
"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: a month ago