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
body: Optional[Iterable[Body]]
price_id: str

Unique price identifier.

product_number: str

The product number this price applies to.

minLength1
country_code: Optional[str]
price: Optional[float]
formatdouble
price_group: Optional[str]
price_quantity: Optional[float]
formatdouble
price_type: Optional[int]
formatint32
price_unit: Optional[str]
store_number: Optional[str]
valid_from: Optional[Union[str, datetime]]
formatdate-time
valid_to: Optional[Union[str, datetime]]
formatdate-time
ReturnsExpand Collapse
class ProductCreatePricesResponse:

Standard success response returned by mutation endpoints.

data: Optional[str]

Optional data payload returned by the operation.

message: Optional[str]

Human-readable message describing the result.

success: Optional[bool]

Indicates whether the operation completed successfully.

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.data)
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}
Returns Examples
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}