Stock Update
API Reference
| Environment | Method | Endpoint |
|---|---|---|
| Sandbox | PUT | https://api-develop.unimall.ai/supplier/stocks |
| Production | PUT | https://api-prod.unimall.ai/supplier/stocks |
Description
This method allows you to update the stocks.
We recommend you update the stocks whenever it changes.
Request Parameters
| Field Name | Type | Is Required | Description | Sample Input |
|---|---|---|---|---|
| sku | String | Yes | The SKU of the product. | UM1000000001 |
| stock | Int | Yes | The stock level of the product. |
Sample Curl Request
curl -X 'PUT' \ 'https://api-develop.unimall.ai/supplier/stocks' \ -H 'accept: text/plain' \ -H 'X-API-Key: ******' \ -H 'Content-Type: application/json' \ -d '{ "sku": "UM1000000001", "stock": 100}Sample Response
HTTP 200
{ "data": {}, "isSuccess": true}