- Authentication
- Pagination
- Rate limits
- Error codes
- Changelog
- Configuration Service
- Endpoints
- Authentication
- Customer
- Supplier
- Product
- Product
- Groups
- Discount
- Stock
- Prices
- Descriptions
- Refereces
- Quote
- Sales order
- Invoice
- Delivery
- Purchase order
List all discounts for customers
GET
/rest/v1/discounts/customers
Request
Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Query Params
pageSize
integer
optional
Example:
100
pageNumber
integer
optional
Example:
1
referenceDate
string
optional
Example:
2024-03-13T13:28:06.419Z
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.logictrade.cloud/rest/v1/discounts/customers?pageSize=100&pageNumber=1&referenceDate=2024-03-13T13:28:06.419Z' \
--header 'api-key;'
Responses
🟢200Success
application/json
Body
pagination
object
optional
totalResults
integer
optional
pageNumber
integer
optional
pageSize
integer
optional
totalPages
integer
optional
results
array [object {4}]
required
id
integer
optional
number
string
optional
name
string
optional
discounts
array [object {6}]
optional
Example
{
"pagination": {
"totalResults": 0,
"pageNumber": 0,
"pageSize": 0,
"totalPages": 0
},
"results": [
{
"id": 0,
"number": "string",
"name": "string",
"discounts": [
{
"description": "string",
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"general": [
{
"percentageAmount": {
"percentage": 0,
"minQuantity": 0
}
}
],
"products": [
{
"id": 0,
"code": "string",
"name": "string",
"fixedPrice": {
"price": 0,
"minQuantity": 0
},
"percentageAmount": {
"percentage": 0,
"minQuantity": 0
},
"buyXGetY": {
"buyQuantity": 0,
"getQuantity": 0
},
"tieredPercentageAmount": [
{
"tier": 0,
"precentage": 0
}
]
}
],
"productGroups": [
{
"code": "string",
"description": "string",
"percentageAmount": {
"percentage": 0,
"minQuantity": 0
}
}
]
}
]
}
]
}
Modified at 2024-07-30 06:28:44