Restock behavior on cancel sale, warnings field, and stock_quantity changed

Stock now restores when canceling single-option items, cancel responses include warnings, and stock_quantity values have changed.

Required action

Update your integration to handle warnings if you validate cancel sale responses against a strict schema.

Changes

  • Purchased stock is now restored when canceling orders with restock set to true for single-option products with per-option inventory.
  • Cancel sale responses now include warnings, returning notices when applicable or an empty array when there are none.
  • The warnings array includes code for the warning type, detail_id for the sales detail ID, and message for the warning text.
  • Colorme.sale.items stock_quantity on the post-purchase cart now returns the purchased option stock for single-option products.

Affected areas

PUT /v1/sales/{sale_id}/cancelrestockwarningscodedetail_idmessageColorme.sale.itemsstock_quantity

Open official page

This summary is independently created by Release Radar and is not an official announcement from the vendor. Please read the official page for accurate details.