Add Discount Trigger Groups
post
/config/sim/v1/sales/discounts/triggergroups
Add the Discount trigger group object to a specified hierarchy unit .
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
-
Simphony-OrgShortName: string
The ShortName of the organization
Discount Trigger Group object of the organization
Root Schema : DiscountTriggerGrps
Type:
object
Model for Discount Trigger Groups Object
Show Source
-
effGrpObjNum:
integer
ObjectNumber of Effectivity GroupExample:
1
-
hierUnitId:
integer
Unique reference of the hierarchy unit of the propertyExample:
1
-
hierUnitName(optional):
object hierUnitName
Additional Properties Allowed: additionalPropertiesA group of string objects representing the name of the hierarchy unit configured languages
-
hierUnitObjNum(optional):
integer
Object number of the hierarchy unitExample:
1
-
minimumQuantity(optional):
integer
The minimum number of items that must be ordered from the Trigger Menu Item Group before the discount is applied to the check. Applicable only for autoRuleType 1 and 2Example:
1
-
name(optional):
object name
Additional Properties Allowed: additionalPropertiesA group of string objects representing the name of the Discounts in configured languages
-
objectNum:
integer
Object number of the DiscountExample:
1
-
sequenceNum:
integer
Sequence Number of the Menu Item GroupExample:
1
-
total(optional):
number
The total amount of Trigger Menu Item Group Items that must ordered to activate the Award Menu Item Group. Applicable only for autoRuleType 3Example:
1.23
-
triggerCondimentGroupName(optional):
object triggerCondimentGroupName
Additional Properties Allowed: additionalPropertiesA group of string objects representing the name of the trigger condiment menu item group in configured languages
-
triggerCondimentGroupObjNum(optional):
integer
Object number of the Condiment Menu Item Group to use as the trigger for the discountExample:
{ "en-US":"Enterprise", "es-SS":"Empresa", "lt=LT":"??mon??" }
-
triggerMIGroupName(optional):
object triggerMIGroupName
Additional Properties Allowed: additionalPropertiesA group of string objects representing the name of the trigger condiment menu item group in configured languages
-
triggerMIGroupObjNum:
integer
Object number of the Menu Item Group to trigger the discount award.Example:
1
Nested Schema : hierUnitName
Type:
object
Additional Properties Allowed
Show Source
A group of string objects representing the name of the hierarchy unit configured languages
Example:
{
"en-US":"Enterprise",
"es-SS":"Empresa",
"lt=LT":"??mon??"
}
Nested Schema : name
Type:
object
Additional Properties Allowed
Show Source
A group of string objects representing the name of the Discounts in configured languages
Example:
{
"en-US":"Enterprise",
"es-SS":"Empresa",
"lt=LT":"??mon??"
}
Nested Schema : triggerCondimentGroupName
Type:
object
Additional Properties Allowed
Show Source
A group of string objects representing the name of the trigger condiment menu item group in configured languages
Example:
{
"en-US":"Enterprise",
"es-SS":"Empresa",
"lt=LT":"??mon??"
}
Nested Schema : triggerMIGroupName
Type:
object
Additional Properties Allowed
Show Source
A group of string objects representing the name of the trigger condiment menu item group in configured languages
Example:
{
"en-US":"Enterprise",
"es-SS":"Empresa",
"lt=LT":"??mon??"
}
Response
Supported Media Types
- application/json
200 Response
Discount trigger group object of the organization
Root Schema : DiscountTriggerGrpsResponse
Type:
Show Source
object
-
effGrpObjNum:
integer
ObjectNumber of Effectivity GroupExample:
1
-
hierUnitId:
integer
Unique Hierarchy Unit ValueExample:
1
-
objectNum:
integer
Object Number of the revenue center.Example:
1
-
sequenceNum:
integer
Sequence Number of the discount award groupExample:
1
400 Response
400 Bad Request
Root Schema : ErrorDetails
Type:
object
Response body when the request returns an error.
Show Source
-
detail(optional):
string
A short, human-readable summary of the problem.Example:
Specified Data is invalid
-
errorDetails(optional):
string
A human-readable explanation specific to this occurrence of the problem.Example:
Entity Does Not Exist
-
o:errorCode(optional):
integer
Error code of the problemExample:
55223
-
status(optional):
integer
HTTP status code.Example:
400
-
title(optional):
string
A short, human-readable summary of the problem type.Example:
VALIDATION ERROR
-
type(optional):
string
A URI reference that identifies the problem type. When this member is not present, its value is assumed to be "about:blank".Example:
http://www.abc.org/xyz.html