Delete Stock for Multiple Variants
Removes stock records for multiple product variants from specific warehouses in a single bulk operation. Permanently deletes the stock entries and sets quantities to zero. Returns lists of successful and failed deletions with failure reasons.
DELETE
/api/v1/{team_slug}/{app_slug}/variants/stock/bulkAuthorization
AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
Path parameters
team_slugstringrequiredTeam slug
app_slugstringrequiredApp slug
Request body
requiredapplication/jsonStock data to delete
itemsinternal_pkg_webserver_v1.BulkDeleteStockItem[]requiredmax items 100
Show propertiesHide properties
Array of
internal_pkg_webserver_v1.BulkDeleteStockItemvariant_idstringrequiredwarehouse_slugstringrequiredResponses
200
Stock deleted successfully
datainternal_pkg_webserver_v1.BulkDeleteStockResponserequiredShow propertiesHide properties
failedinternal_pkg_webserver_v1.BulkStockFailedOp[] | nullShow propertiesHide properties
Array of
internal_pkg_webserver_v1.BulkStockFailedOpreasonstringvariant_idstringwarehouse_slugstringsuccessfulinternal_pkg_webserver_v1.BulkDeleteStockItem[] | nullShow propertiesHide properties
Array of
internal_pkg_webserver_v1.BulkDeleteStockItemvariant_idstringrequiredwarehouse_slugstringrequireddetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequired400
Invalid request
detailsstring[]messagestringsuccessbooleanrequired401
Unauthorized access
detailsstring[]messagestringsuccessbooleanrequired500
Internal server error
detailsstring[]messagestringsuccessbooleanrequired