Stock
· Revision #1
Update Stock Endpoint
Structure
Name
|
Type
|
Description
|
|
*.sku |
string |
The SKU of the variant |
Yes |
*.stock_level |
int |
The new stock_level of the variant |
Yes |
*.stock_action |
string |
The stock action (e.g., set, add, remove & multiply). Defaults to set |
No |
Example Request
POST /api/stock
Example Response
[
{
"sku": "ABC123",
"stock_level": 23
},
{
"sku": "DEF456",
"stock_level": 3,
"stock_action": "add"
},
{
"sku": "GHI789",
"stock_level": 1,
"stock_action": "remove"
},
{
"sku": "JKL101",
"stock_level": 2,
"stock_action": "multiply"
}
]