Get Discount Award Groups
post
/config/sim/v1/sales/discounts/getawardgroups
Gets all the Discount Award Groups
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
Discount Award Groups Get Object
Root Schema : DiscountAwardGrpsBody
Type:
object
The input Body model that needs to be given.
Show Source
-
effGrpObjNum:
integer
Object Number of the effectivity groupExample:
2
-
hierUnitId(required):
integer
Unique reference of the hierarchy.Example:
2
-
include:
string
Objects included in the response.Example:
hierUnitId
-
includeAll:
string
This can take 2 values: basic or detailed. If 'basic' is specified, The response contains all the properties of the object except
Ext values. If 'detailed' is specified, The response contains all the properties of the object. Example:detailed
-
languages:
string
If specified, limits translated strings returnedExample:
en-US, de-DE
-
limit:
integer
If using paging, number of results returned in this page.Example:
10
-
objectNum(required):
integer
Object Number of the discountExample:
2
-
offset:
integer
Starting resource record index. Not required if paging parameters are not supportedExample:
0
-
orderBy:
string
Sorts the response by the specified field name and sort order.Example:
objectNum:asc
-
searchCriteria:
string
Search criteria to filter results based on field value.Example:
where equals(objectNum,1)
Response
Supported Media Types
- application/json
200 Response
A collection of Discount Award Groups.
Root Schema : DiscountAwardGrpsGetResponsev1
Type:
Show Source
object
-
count:
integer
Current response record count.Example:
9
-
hasMore:
boolean
Flag indicating if there are more objects to fetch.Example:
true
-
items:
array items
Array of Discount Award Group objects of the organization.
-
limit:
integer
Server page sizeExample:
10
-
offset:
integer
Starting resource record indexExample:
0
-
totalResults:
integer
Total number of rows (excluding the paging parameters)Example:
100
Nested Schema : items
Type:
array
Array of Discount Award Group objects of the organization.
Show Source
-
Array of:
object DiscountAwardGrpsResponsev1
Model for Discount Award Groups Object
Nested Schema : DiscountAwardGrpsResponsev1
Type:
object
Model for Discount Award Groups Object
Show Source
-
amountOff:
number
The discount amount for flat amount-based discount. Applicable only for awardType - 2Example:
2.55
-
amountSubstitution:
number
The price to charge for each item in the Trigger Menu Item Group. Applicable only for awardType - 3Example:
1.22
-
awardMIGroupName:
object awardMIGroupName
A group of string objects representing the name of the trigger condiment menu item group in configured languages
-
awardMIGroupObjNum:
integer
Object number of the Menu Item Group to trigger the discount award.Example:
1
-
awardType:
integer
Type of the award; 0 - None, 1 - Percent Off, 2 - Amount Off, 3 - Amount SubstitutionExample:
1
-
effGrpObjNum:
integer
Object Number of the effectivity groupExample:
1
-
hierUnitId:
integer
Unique reference of the hierarchy unit of the propertyExample:
1
-
hierUnitName:
object hierUnitName
A group of string objects representing the name of the hierarchy unit configured languages
-
hierUnitObjNum:
integer
Object number of the hierarchy unitExample:
1
-
maxCount:
integer
When Simple Transaction Exclusivity is set for this discount, enter the maximum number of discounts that can be applied to one check. Applicable only for autoRuleType - 1-4Example:
1
-
name:
object name
A group of string objects representing the name of the Discounts in configured languages
-
objectNum:
integer
Object number of the DiscountExample:
1
-
percentOff:
number
The percentage of the percent-based discount. Applicable only for awardType - 1Example:
1.55
-
sequenceNum:
integer
Sequence Number of the Menu Item GroupExample:
1
Nested Schema : awardMIGroupName
Type:
object
A group of string objects representing the name of the trigger condiment menu item group in configured languages
Example:
{
"en-US":"Enterprise",
"de-DE":"Unternehmen",
"es-MX":"Empresa"
}
Nested Schema : hierUnitName
Type:
object
A group of string objects representing the name of the hierarchy unit configured languages
Example:
{
"en-US":"Enterprise",
"de-DE":"Unternehmen",
"es-MX":"Empresa"
}
Nested Schema : name
Type:
object
A group of string objects representing the name of the Discounts in configured languages
Example:
{
"en-US":"Enterprise",
"de-DE":"Unternehmen",
"es-MX":"Empresa"
}