Skip to content
Get started

Creates or updates discount prices for products.

POST/api/v2/public/products/discountprices

Creates or updates discount prices for products.

Header ParametersExpand Collapse
is_flush: optional boolean
Body ParametersJSONExpand Collapse
discounts: optional array of object { discount_description, discount_group, discount_id, 7 more }

The list of discount price entries.

discount_description: optional string
discount_group: optional string
discount_id: optional string
discount_type: optional number
formatint64
is_delete: optional boolean
line_number: optional number
formatint64
price: optional number
formatfloat
product_number: optional string

The product number this discount applies to.

valid_from: optional string
formatdate-time
valid_to: optional string
formatdate-time
ReturnsExpand Collapse
data: optional string

Optional data payload returned by the operation.

message: optional string

Human-readable message describing the result.

success: optional boolean

Indicates whether the operation completed successfully.

Creates or updates discount prices for products.

curl https://api.colleqtive.net/api/v2/public/products/discountprices \
    -X POST \
    -H "Authorization: $COLLEQTIVE_BEARER_TOKEN"
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}
Returns Examples
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}