> For the complete documentation index, see [llms.txt](https://developers.alephee.com/v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.alephee.com/v2/products/delete-methods/delete-products-from-a-price-list/examples.md).

# Examples

### Request:

{% code overflow="wrap" %}

```bash
curl --location --request DELETE 'https://api.alephcrm.com/v2/products/prices?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ&confirmationToken=WW \
--header 'Content-Type: application/json' \
--data-raw '
{
  "PriceListId": 246,
  "Products": [
    {
      "Sku": "95459391"
    },
    {
      "Sku": "95920465"
    },
    {
      "Sku": "96895448"
    },
    {
      "Sku": "AAAAAAAAAAAAAAAA95459391"
    },
    {
      "Sku": "06G260849"
    }
  ]
}’
```

{% endcode %}

### Response

```json
{
  "Quantities": {
    "Ok": 0,
    "Error": 5,
    "Warning": 0,
    "Info": 0,
    "Total": 5
  },
  "Items": [
    {
      "ItemNumber": 3,
      "ValidationLevel": {
        "Id": 0,
        "Name": "Error"
      },
      "KeyField": "SKU",
      "keyValue": "AAAAAAAAAAAAAAAA95459391",
      "Messages": [
        {
          "Level": {
            "Id": 0,
            "Name": "Error"
          },
          "Code": 0,
          "Message": "The given SKU was not found or it is not assigned to the given price list ID"
        }
      ]
    },
    {
      "ItemNumber": 4,
      "ValidationLevel": {
        "Id": 0,
        "Name": "Error"
      },
      "KeyField": "SKU",
      "keyValue": "06G260849",
      "Messages": [
        {
          "Level": {
            "Id": 0,
            "Name": "Error"
          },
          "Code": 0,
          "Message": "The given SKU was not found or it is not assigned to the given price list ID"
        }
      ]
    },
    {
      "ItemNumber": 0,
      "ValidationLevel": {
        "Id": 0,
        "Name": "Error"
      },
      "KeyField": "SKU",
      "keyValue": "95920465",
      "Messages": [
        {
          "Level": {
            "Id": 0,
            "Name": "Error"
          },
          "Code": 0,
          "Message": "The product with SKU 95920465 is shared to one or more seller accounts. Cannot remove the product from the price list. This product will be ignored and will not be processed"
        }
      ]
    },
    {
      "ItemNumber": 0,
      "ValidationLevel": {
        "Id": 0,
        "Name": "Error"
      },
      "KeyField": "SKU",
      "keyValue": "95459391",
      "Messages": [
        {
          "Level": {
            "Id": 0,
            "Name": "Error"
          },
          "Code": 0,
          "Message": "The product with SKU 95459391 is shared to one or more seller accounts. Cannot remove the product from the price list. This product will be ignored and will not be processed"
        }
      ]
    },
    {
      "ItemNumber": 0,
      "ValidationLevel": {
        "Id": 0,
        "Name": "Error"
      },
      "KeyField": "SKU",
      "keyValue": "96895448",
      "Messages": [
        {
          "Level": {
            "Id": 0,
            "Name": "Error"
          },
          "Code": 0,
          "Message": "The product with SKU 96895448 is shared to one or more seller accounts. Cannot remove the product from the price list. This product will be ignored and will not be processed"
        }
      ]
    }
  ]
}
```

### Request (with an expired confirmation token)

```bash
curl --location --request DELETE 'https://api.alephcrm.com/v2/products/prices?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ&confirmationToken=WW \
--header 'Content-Type: application/json' \
--data-raw '
{
  "PriceListId": 246,
  "Products": [
    {
      "Sku": "95459391"
    },
    {
      "Sku": "95920465"
    },
    {
      "Sku": "96895448"
    },
    {
      "Sku": "AAAAAAAAAAAAAAAA95459391"
    },
    {
      "Sku": "06G260849"
    }
  ]
}’
```

### Response

```json
{
    "Status": 401,
    "Message": "Invalid confirmation token given"
}
```
