## Creates or updates discount prices for products.

`products.create_discount_prices(ProductCreateDiscountPricesParams**kwargs)  -> ProductCreateDiscountPricesResponse`

**post** `/api/v2/public/products/discountprices`

Creates or updates discount prices for products.

### Parameters

- `discounts: Optional[Iterable[Discount]]`

  The list of discount price entries.

  - `is_delete: bool`

    When true, removes the existing discount entry.

  - `discount_description: Optional[str]`

    Human-readable description of the discount.

  - `discount_group: Optional[str]`

    Optional discount group identifier.

  - `discount_id: Optional[str]`

    Unique discount identifier.

  - `discount_type: Optional[int]`

    Numeric discount type.

  - `line_number: Optional[int]`

    Line number on the discount.

  - `price: Optional[float]`

    Discounted price value.

  - `product_number: Optional[str]`

    The product number this discount applies to.

  - `valid_from: Optional[Union[str, datetime, null]]`

    Start of the discount's validity period.

  - `valid_to: Optional[Union[str, datetime, null]]`

    End of the discount's validity period.

- `is_expire_discounts: Optional[bool]`

- `is_flush: Optional[bool]`

### Returns

- `class ProductCreateDiscountPricesResponse: …`

  Standard success response returned by mutation endpoints.

  - `success: bool`

    Indicates whether the operation completed successfully.

  - `data: Optional[str]`

    Optional data payload returned by the operation.

  - `message: Optional[str]`

    Human-readable message describing the result.

### Example

```python
import os
from colleqtive_sdk import Colleqtive

client = Colleqtive(
    bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"),  # This is the default and can be omitted
)
response = client.products.create_discount_prices()
print(response.success)
```

#### Response

```json
{
  "success": true,
  "data": "data",
  "message": "message"
}
```
