DELETE /api/v2/buyer/discovery/{discoveryId}/products
Removes products from the session selection. Use productIds for legacy
product-wide removal, or productRefs when you need to remove one exact
inventory-source variant or repeat selection. Products that are not in the
selection are ignored. Returns the remaining selection and refreshed budget
context.
Request
Parameters
*Provide at least one non-empty
productIds or productRefs array.
To remove only one inventory-source variant when two selected products share a
storefront and product ID, send the exact provenance returned by discovery:
Response
budgetContext.remainingBudget.
Errors
400 VALIDATION_ERROR— neither removal array contains a target.404 NOT_FOUND—discoveryIddoes not exist or is not visible to the authenticated account.
Related
Discovery overview
Selection model and budget allocation
Get products
List the current selection
Add products
Add products to the selection