- 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
Get all discounts for a customer by id
GET
/rest/v1/discounts/customers/{id}
Request
Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Path Params
id
integer
required
Example:
1
Query Params
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/1?referenceDate=2024-03-13T13:28:06.419Z' \
--header 'api-key;'
Responses
🟢200Success
application/json
Body
id
integer
optional
number
string
optional
name
string
optional
discounts
array [object {6}]
optional
description
string
optional
startDate
string <date>
optional
endDate
string <date>
optional
general
array [object {1}]
optional
products
array [object {7}]
optional
productGroups
array [object {3}]
optional
Example
{
"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:50