This recipe outlines the steps to manage pre-orders for product variants, including enabling/disabling pre-orders, setting messages, and configuring limits.
Endpoint: POST https://www.wixapis.com/stores/v3/products/search
Use the productId from the search to get variant information:
Endpoint: POST https://www.wixapis.com/stores/v3/inventory-items/query
The response includes:
product.variantName - identifies each variantinventoryItemId - needed for updatesrevision - required for update operationslocationId - inventory locationpreorderInfo settingstrackQuantity: true is setUse when applying the same pre-order settings to multiple variants:
Endpoint: POST https://www.wixapis.com/stores/v3/bulk/inventory-items/update
Request Body (Enable Pre-Order):
Request Body (With Pre-Order Limit):
trackQuantity: truerevision field is required and must be an integerEndpoint: PATCH https://www.wixapis.com/stores/v3/inventory-items/{inventoryItemId}
Request Body (Enable Pre-Order):
Request Body (Disable Pre-Order):
When you set a preorderInfo.limit:
If setting a limit on a variant that wasn't tracking quantity:
trackQuantity will be enabled for this variant"After updating pre-order settings: