> For the complete documentation index, see [llms.txt](https://docs-staging.billeasy.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-staging.billeasy.in/mobile-pos-apis/untitled-4.md).

# update stock by id

## Get Cakes

<mark style="color:green;">`POST`</mark> `{{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  |             |

{% tabs %}
{% tab title="200 Cake successfully retrieved.RE" %}

```
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
            }
        ]
    }
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}
