Skip to content
Get started

Creates or updates product prices.

products.create_prices(ProductCreatePricesParams**kwargs) -> ProductCreatePricesResponse
POST/api/v2/public/products/prices

Creates or updates product prices.

ParametersExpand Collapse
prices: Optional[Iterable[Price]]

The product prices to create or update.

price: float

Price value.

formatdouble
price_id: str

Unique price identifier.

minLength1
price_type: int

Numeric price type.

formatint32
product_number: str

The product number this price applies to.

minLength1
valid_from: Union[str, datetime]

Start of the price’s validity period.

formatdate-time
valid_to: Union[str, datetime]

End of the price’s validity period.

formatdate-time
country_code: Optional[str]

Optional ISO country code restricting the price.

price_group: Optional[str]

Optional price group identifier.

price_quantity: Optional[float]

Quantity for which the price applies.

formatdouble
price_unit: Optional[str]

Unit of measure the price applies to.

store_number: Optional[str]

Optional store number restricting the price.

ReturnsExpand Collapse
class ProductCreatePricesResponse:

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.

Creates or updates product prices.

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_prices()
print(response.success)
{
  "success": true,
  "data": "data",
  "message": "message"
}
Returns Examples
{
  "success": true,
  "data": "data",
  "message": "message"
}