Add Discounts

post

/config/sim/v1/sales/discounts

Add the Discount object to a specified hierarchy unit .

Request

Supported Media Types
Header Parameters
Body ()
Discount object of the organization
Root Schema : DiscountCURequestBody
Type: object
Model for Discount Object
Show Source
Nested Schema : autoRule
Type: object
Determine how Simphony calculates a discount
Show Source
  • A Boolean flag indicating to allow award of a higher priced trigger item if the trigger item is also an award item. Applicable only for autoRuleType ??? 2 and 3
    Example: false
  • The types of Automatic Discounts rule;0 ??? Not Active;1 - Item Price Substitution;2 - Quantity Threshold;3 - Total Price Threshold;4 - Combination Pricing;5 - Sales Price
    Example: 1
  • The award algorithm to be used in the discount.;1- Best Deal for Customer to apply the highest discount amount to the check;2 - Best Deal for Merchant to apply the lowest discount amount to the check
    Example: 1
  • awardGroups
    An array of award groups for the discount
  • The maximum number of times the coupon discount can be entered on a check. Enter 0 for unlimited entries
    Example: 1
  • The order in which the POS client calculates discounts. Applicable only for autoRuleType 1-4
    Example: 1
  • triggerGroups
    Menu Item Group to trigger the discount award.
  • A Boolean flag indicating to use the Menu Item Groups promotion price for the discounted menu item. Does not function with Combination Pricing Discounts. Applicable only for autoRuleType ??? 1,2,3 and 5
    Example: false
Nested Schema : consumerDisplayname
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"
}
Nested Schema : effectivity
Type: object
An object representing the effective dates for the record
Show Source
Nested Schema : exclusivity
Type: object
Exclusivity stops all discounts from applying to a check at once. Discount exclusivity controls how multiple discounts interact with each other.
Show Source
  • A string value of 0s & 1s of length 32 representing the enablement or disablement of the discount on specific menu items
    Example: 00000000000000000000000000000000
  • A string value of 0s & 1s of length 32 representing the enablement or disablement of the discount on transactions
    Example: 00000000000000000000000000000000
Nested Schema : menuLevels
Type: object
An object containing the menu levels on which the discount is active
Show Source
  • A string value of 0s & 1s of length 8 representing the enablement or disablement of the discount on main levels
    Example: 00000000
  • A string value of 0s & 1s of length 8 representing the enablement or disablement of the discount on sub levels
    Example: 00000000
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"
}
Nested Schema : awardGroups
Type: array
An array of award groups for the discount
Show Source
Nested Schema : triggerGroups
Type: array
Menu Item Group to trigger the discount award.
Show Source
Nested Schema : items
Type: object
Show Source
  • The discount amount for flat amount-based discount. Applicable only for awardType ??? 2
    Example: 1
  • The price to charge for each item in the Trigger Menu Item Group. Applicable only for awardType ??? 3
    Example: 1
  • The maximum number of items discounted after reaching the Trigger MI Group's Minimum Quantity
    Example: 1
  • Object number of the menu item group that is to be discounted. Applicable only for autoRuleType ??? 2 and 3
    Example: 1
  • Type of the award;0 ??? None;1 ??? Percent Off;2 ??? Amount Off;3 ??? Amount Substitution
    Example: 1
  • 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-4
    Example: 1
  • The percentage of the percent-based discount. Applicable only for awardType ??? 1. For Example 155% will be 1.55 in the 200 response body.
    Example: 1
  • The sequence number of the award group
    Example: 1
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Discount object of the organization
Body ()
Root Schema : DiscountResponse
Type: object
Show Source

400 Response

400 Bad Request
Body ()
Root Schema : ErrorDetails
Type: object
Response body when the request returns an error.
Show Source
Back to Top