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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Identifies the seller whose settings are being modified.
List of specific SKU IDs. Up to 500 SKUs in a batch.
The canceled-order auto-restock configuration to apply to the specified SKUs.
object
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.
Example
{ "seller_id": "124129082343241", "sku_ids": [ "124148921741214" ], "stock_operation_setting": { "enable_auto_restock": false }}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The update result of stock operation
object
Update inventory rule failed SkuID list
List of SkuIDs that successfully updated inventory rules
Example
{ "code": 0, "data": { "stock_operation": { "failed_sku_ids": [ "124148921741214" ], "success_sku_ids": [ "124148921741214" ] } }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}