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

    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 string

      Source code

    • quantity number

      Source item quantity

    • status integer

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

    • extension_attributes object

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

      Hide extension_attributes attribute Show extension_attributes attribute object
      • origin string

Responses

  • 401

    401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

POST /V1/inventory/low-quantity-notifications-delete
curl \
 --request POST 'https://magento2.winkelstraat.mac/rest/all/V1/inventory/low-quantity-notifications-delete' \
 --data '{"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"
}