Skip to content
Get started

Creates or updates product prices.

ProductCreatePricesResponse Products.CreatePrices(ProductCreatePricesParams?parameters, CancellationTokencancellationToken = default)
POST/api/v2/public/products/prices

Creates or updates product prices.

ParametersExpand Collapse
ProductCreatePricesParams parameters
IReadOnlyList<Price>? prices

The product prices to create or update.

required Double Price

Price value.

formatdouble
required string PriceID

Unique price identifier.

minLength1
required Int PriceType

Numeric price type.

formatint32
required string ProductNumber

The product number this price applies to.

minLength1
required DateTimeOffset ValidFrom

Start of the price’s validity period.

formatdate-time
required DateTimeOffset ValidTo

End of the price’s validity period.

formatdate-time
string? CountryCode

Optional ISO country code restricting the price.

string? PriceGroup

Optional price group identifier.

Double? PriceQuantity

Quantity for which the price applies.

formatdouble
string? PriceUnit

Unit of measure the price applies to.

string? StoreNumber

Optional store number restricting the price.

ReturnsExpand Collapse
class ProductCreatePricesResponse:

Standard success response returned by mutation endpoints.

required Boolean Success

Indicates whether the operation completed successfully.

string? Data

Optional data payload returned by the operation.

string? Message

Human-readable message describing the result.

Creates or updates product prices.

ProductCreatePricesParams parameters = new();

var response = await client.Products.CreatePrices(parameters);

Console.WriteLine(response);
{
  "success": true,
  "data": "data",
  "message": "message"
}
Returns Examples
{
  "success": true,
  "data": "data",
  "message": "message"
}