List product discounts
POST/v2/discounts/search
List product discounts
Request
Header Parameters
Tenant identifier
- application/json
Body
required
Possible values: >= 1
Default value: 1
Pagination page number
Possible values: >= 1
Default value: 12
Pagination offset number
createdAt
object
nullable
Date greater than provided date
Date less than provided date
lastModifiedAt
object
nullable
Date greater than provided date
Date less than provided date
Search by Discounts primary identifiers
Search by Pricesheets primary identifiers
Search by product ids
Search by category ids
Search by price groups
value
object
nullable
greater than or equal
less than or equal
equal to
Possible values: [[object Object]
]
Discount type
quantityFrom
object
nullable
greater than or equal
less than or equal
equal to
Inputs to sort by
validFrom
object
nullable
Date greater than provided date
Date less than provided date
validTo
object
nullable
Date greater than provided date
Date less than provided date
Responses
- 200
- 400
- 403
- 500
Paginated list of discounts
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
items
object[]
required
List of items of type Discount
Primary identifier
Creation date
Last modified date
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
Total number of items found
Possible values: >= 1
Default value: 12
The amount of items to show per page
Possible values: >= 1
Default value: 1
The current page
Possible values: >= 1
Total amount of pages
Possible values: >= 1
Start position of the current page
Possible values: >= 1
End position of the current page
{
"items": [
{
"id": 1234,
"createdAt": "2022-01-01T00:00:00.000Z",
"lastModifiedAt": "2022-01-02T00:00:00.000Z",
"validFrom": "2022-01-01T00:00:00.000Z",
"validTo": "2022-01-31T00:00:00.000Z"
}
],
"itemsFound": 12,
"offset": 12,
"page": 4,
"pages": 1,
"start": 1,
"end": 12
}
Bad request
Forbidden
Unknown list discounts error