Authorization: Bearer ********************
[
{
"productCode": "A001",
"qty": 20
},
{
"productCode": "A002",
"qty": 20
},
{
"productCode": "A003",
"qty": 20
}
]
curl --location --request PUT 'https://api.gofive.co.th/v1/products/stock' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"productCode": "A001",
"qty": 20
},
{
"productCode": "A002",
"qty": 20
},
{
"productCode": "A003",
"qty": 20
}
]'
{
"data": [
{
"productCode": "A001",
"qty": 30,
"isSuccess": true
},
{
"productCode": "A002",
"qty": 50,
"isSuccess": false,
"error": {
"description": "product code not found"
}
},
{
"productCode": "",
"qty": 10,
"isSuccess": false,
"error": {
"description": "require product code"
}
}
],
"statusCode": 1000,
"httpStatusCode": 200
}