Skip to content

Stock Update

API Reference

EnvironmentMethodEndpoint
SandboxPUThttps://api-develop.unimall.ai/supplier/stocks
ProductionPUThttps://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 NameTypeIs RequiredDescriptionSample Input
skuStringYesThe SKU of the product.UM1000000001
stockIntYesThe 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
}