Delete multiple source items configuration for low quantity

POST /V1/inventory/low-quantity-notifications-delete

Delete multiple source items configuration for low quantity

Body

  • sourceItems array[object] Required

    Represents amount of product on physical storage Entity id getter is missed because entity identifies by compound identifier (sku and source_code) Used fully qualified namespaces in annotations for proper work of WebApi request parser

    Hide sourceItems attributes Show sourceItems attributes object
    • sku string

      Source item sku

    • Source code

    • quantity number

      Source item quantity

    • status integer

      Source item status (One of self::STATUS_*)

    • ExtensionInterface class for @see \Magento\InventoryApi\Api\Data\SourceItemInterface

      Hide extension_attributes attribute Show extension_attributes attribute object

Responses

  • 401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

POST /V1/inventory/low-quantity-notifications-delete
curl \
 -X POST https://magento2.winkelstraat.mac/rest/all/V1/inventory/low-quantity-notifications-delete \
 -d '{"sourceItems":[{"sku":"string","source_code":"string","quantity":42.0,"status":42,"extension_attributes":{"origin":"string"}}]}'
Request examples
{
  "sourceItems": [
    {
      "sku": "string",
      "source_code": "string",
      "quantity": 42.0,
      "status": 42,
      "extension_attributes": {
        "origin": "string"
      }
    }
  ]
}
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}