update stock by id
Get Cakes
POST
{{base-url}}clients/updateStock
This endpoint allows you to get free cakes.
Headers
Name
Type
Description
x-api-access
string
x-api-secret
string
x-client-token
string
Content-Type
string
Request Body
Name
Type
Description
client_id
integer
store_id
integer
product_id
integer
quantity
number
Request:-
{
"client_id": 306,
"store_id": 210,
"product_id": 2463,
"quantity" : 106
}
Response:-
{
"success": true,
"msg": "stock updated successfully",
"data": {
"affectedRows": 1,
"count": 1,
"rows": [
{
"quantity": 106
}
]
}
}
Last updated
Was this helpful?