Skip to content
Get started

Create Prices

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

Creates or updates standard product prices. Each price has a price group and a validity window, so future prices can be loaded ahead of time. For promotions use the discount prices endpoint.

ParametersExpand Collapse
ProductCreatePricesParams parameters
IReadOnlyList<Body> body
required string PriceID

Unique price identifier.

minLength1
required string ProductNumber

The product number this price applies to.

minLength1
string? CountryCode

Optional ISO country code restricting the price.

Double Price

Price value.

formatdouble
string? PriceGroup

Optional price group identifier.

Double? PriceQuantity

Quantity for which the price applies.

formatdouble
Int PriceType

Numeric price type.

formatint32
string? PriceUnit

Unit of measure the price applies to.

string? StoreNumber

Optional store number restricting the price.

DateTimeOffset ValidFrom

Start of the price’s validity period.

formatdate-time
DateTimeOffset ValidTo

End of the price’s validity period.

formatdate-time
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.

Create Prices

ProductCreatePricesParams parameters = new();

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

Console.WriteLine(response);
{
  "success": true,
  "data": "data",
  "message": "message"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}
Returns Examples
{
  "success": true,
  "data": "data",
  "message": "message"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}