Skip to content

Update Stock Operation Settings

POST
/product/202608/inventory/operation/settings

Configure auto-restock behavior for 1 to 500 SKUs in one request. For seller-fulfilled orders, this setting controls whether inventory reserved for a canceled order is returned to the SKU’s available inventory.

shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

Media typeapplication/json
object
seller_id
required

Identifies the seller whose settings are being modified.

string
sku_ids

List of specific SKU IDs. Up to 500 SKUs in a batch.

Array<string>
<= 500 items
stock_operation_setting

The canceled-order auto-restock configuration to apply to the specified SKUs.

object
enable_auto_restock

Controls automatic inventory replenishment after a seller-fulfilled (FBM) order is canceled. When at least one SKU is supplied, omitting stock_operation_setting or enable_auto_restock uses false.

  • true: Enable automatic replenishment for the specified SKUs.
  • false: Disable automatic replenishment for the specified SKUs.
boolean
Example
{
"seller_id": "124129082343241",
"sku_ids": [
"124148921741214"
],
"stock_operation_setting": {
"enable_auto_restock": false
}
}

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
stock_operation

The update result of stock operation

object
failed_sku_ids

Update inventory rule failed SkuID list

Array<string>
success_sku_ids

List of SkuIDs that successfully updated inventory rules

Array<string>
Example
{
"code": 0,
"data": {
"stock_operation": {
"failed_sku_ids": [
"124148921741214"
],
"success_sku_ids": [
"124148921741214"
]
}
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}