Get Reseller Discount Contracts
DescriptionFor a specified Reseller organization, retrieves all discount contracts data. The contracts list is paginated. Filtration and sorting of the contracts list can be done using appropriate parameters in request body.
- Default Filter: None
- Default Sorting Order: REMAINING_DURATION (Ascending)
Request
URLURL
Path Parameters
Path Parameters
ID of the partner organization in CSP
Query Parameters
Query Parameters
Number of results to be fetched per page
Record number to be first on the page
Request Body
Reseller discount contracts summary filters
{
"filters": [
{
"key": "STATUS",
"operator": "IN",
"value": [
"ACTIVE"
]
},
{
"key": "DISTRIBUTOR_NAME",
"operator": "LIKE",
"value": "Ingram"
},
{
"key": "CUSTOMER_NAME",
"operator": "LIKE",
"value": "Coke"
},
{
"key": "CBC_CONTRACT_ID",
"operator": "LIKE",
"value": "123"
},
{
"key": "CURRENCY",
"operator": "LIKE",
"value": "USD"
}
],
"period": "CURRENT",
"sorter": {
"key": "CURRENT_REMAINING_DURATION",
"operator": "ASC"
}
}
A list of filters for discount contracts list for Reseller
Authentication
Response
Response BodyResponse Body
200 OK
{
"aggregates": {
"currentYear": {
"expired": 0,
"total": 3
},
"totalYears": {
"expired": 0,
"total": 3
}
},
"data": {
"current": 1,
"next": 5,
"results": [
{
"billingEngineDiscountContractId": "12345",
"currency": "USD",
"currentYear": {
"endDate": "12/10/2022",
"startDate": "12/10/2021"
},
"customerName": "Coke",
"distributorName": "Ingram",
"expiring": false,
"status": "ACTIVE",
"totalYears": {
"endDate": "12/10/2022",
"startDate": "12/10/2019"
}
},
{
"billingEngineDiscountContractId": "23456",
"currency": "USD",
"currentYear": {
"endDate": "1/10/2023",
"startDate": "1/10/2022"
},
"customerName": "Mountain Dew",
"distributorName": "Ingram",
"expiring": false,
"status": "ACTIVE",
"totalYears": {
"endDate": "3/10/2023",
"startDate": "3/10/2021"
}
},
{
"billingEngineDiscountContractId": "34567",
"currency": "EURO",
"currentYear": {
"endDate": "2/15/2023",
"startDate": "2/15/2022"
},
"customerName": "Coke",
"distributorName": "Ingram",
"expiring": false,
"status": "ACTIVE",
"totalYears": {
"endDate": "2/15/2025",
"startDate": "2/15/2020"
}
}
],
"totalResultsCount": 3
}
}
Current and total years discount contracts aggregates
Errors
Bad Request - The request is either incomplete or incorrect
Unauthorized - The request requires user authentication
Forbidden - User does not have permission for this operation
Not Found - The requested resource does not exist
Internal Server Error - Please contact support