List all discounts for products
Request Add parameter in header api-key
Example: api-key: ********************
Request samples curl --location --request GET 'https://api.logictrade.cloud/rest/v1/discounts/products?pageSize=100&pageNumber=1&quantity=3&referenceDate=2024-03-13T13:28:06.419Z' \
--header 'api-key;'
Responses application/json Generate Code
{
"pagination" : {
"totalResults" : 0 ,
"pageNumber" : 0 ,
"pageSize" : 0 ,
"totalPages" : 0
} ,
"results" : [
{
"id" : 0 ,
"code" : "string" ,
"name" : "string" ,
"discounts" : [
{
"description" : "string" ,
"startDate" : "2019-08-24" ,
"endDate" : "2019-08-24" ,
"fixedPrice" : {
"price" : 0 ,
"minQuantity" : 0
} ,
"percentageAmount" : {
"percentage" : 0 ,
"minQuantity" : 0
} ,
"buyXGetY" : {
"buyQuantity" : 0 ,
"getQuantity" : 0
} ,
"tieredPercentageAmount" : [
{
"tier" : 0 ,
"precentage" : 0
}
] ,
"customFields" : [
{
"name" : "string" ,
"values" : [
"string"
]
}
]
}
]
}
]
}
Modified at 2024-07-30 06:28:33