Create Discount Prices
ProductCreateDiscountPricesResponse Products.CreateDiscountPrices(ProductCreateDiscountPricesParams?parameters, CancellationTokencancellationToken = default)
POST/api/v2/public/products/discountprices
Creates or updates promotional prices, which override the standard price while they are valid. The is_flush header replaces all existing discount prices instead of merging, so only use it when sending the complete set.
Create Discount Prices
ProductCreateDiscountPricesParams parameters = new();
var response = await client.Products.CreateDiscountPrices(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."
}