Skip to content
Esc
↑↓navigate↵open⌘Jpreview

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/bulk
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
team_slugstringrequired

Team slug

app_slugstringrequired

App slug

Request body
requiredapplication/json

Stock data to delete

itemsinternal_pkg_webserver_v1.BulkDeleteStockItem[]required
max items 100
Show properties
Array of internal_pkg_webserver_v1.BulkDeleteStockItem
variant_idstringrequired
warehouse_slugstringrequired
Responses
200

Stock deleted successfully

datainternal_pkg_webserver_v1.BulkDeleteStockResponserequired
Show properties
failedinternal_pkg_webserver_v1.BulkStockFailedOp[] | null
Show properties
Array of internal_pkg_webserver_v1.BulkStockFailedOp
reasonstring
variant_idstring
warehouse_slugstring
successfulinternal_pkg_webserver_v1.BulkDeleteStockItem[] | null
Show properties
Array of internal_pkg_webserver_v1.BulkDeleteStockItem
variant_idstringrequired
warehouse_slugstringrequired
detailsstring[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

successbooleanrequired
400

Invalid request

detailsstring[]
messagestring
successbooleanrequired
401

Unauthorized access

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X DELETE 'https://api.enad.io/api/v1/string/string/variants/stock/bulk' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "items": [
    {
      "variant_id": "string",
      "warehouse_slug": "string"
    }
  ]
}'
Response
{
  "data": {
    "failed": [
      {
        "reason": "string",
        "variant_id": "string",
        "warehouse_slug": "string"
      }
    ],
    "successful": [
      {
        "variant_id": "string",
        "warehouse_slug": "string"
      }
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}