Discount Details (Object)
List of a discount's defining attributes. In the case of the Auto Redemption and Get Active Discount Basket APIs, the object returns a null value for invalid discounts.
- autoType: boolean
_select Whether the offer is enabled for auto-redemption or not. Possible values: true, false
- baseType: integer
_amount Discounted value
- campaignType: string
_name Name of the campaign through which the guest received the offer
- createdType: stringFormat: date-time
_at Date/time when the reward was created, in YYYY-MM-DDThh:mm:ss format
- descriptionType: string
Description that explains rewards as configured in the Punchh platform.
Thedescriptionvalue is returned in the language specified in the Accept-Language request header, provided the descriptions of redeemable and subscription have been translated into the relevant language in the Punchh platform. If the translation is unavailable, the response returns the value for this parameter in the default English language. For example, if the header specifies “fr” (French), the description is returned in French only if a French translation is configured for the description in the Punchh platform; otherwise the value is returned in the default English language. - endType: stringFormat: date-time
_date _tz Expiry date of the reward in ISO 8601 format
- imageType: string
Image URL of the reward
- itemType: integer
_id Item ID
- itemType: string
_properties Comma-separated values that provide additional details about a redeemable. For example, a redeemable could be a "Food_Item" or "Merchandise", etc. Can be configured for a business in the Punchh platform and attached to a redeemable. If no value is attached to a redeemable, a blank field will be returned.
- maxType: integer
_applicable _quantity The maximum quantity that can be discounted. Note: This parameter is returned for offers related to Price Rollback, Target Price for Bundle, and Target Price for Bundle (Advanced).
- metaType: string
_detail Meta information configured for
discount_typevalues: redemption_code, subscription, reward, and redeemable. The response returns a value only if the meta data field is configured in the Punchh platform when creating the discount. Currently, the Punchh platform supports multilingual values formeta_detailonly for coupon redemption.
Themeta_detailvalue for the coupon redemption (i.e., when discount_type = redemption_code) is returned in the language specified in the Accept-Language request header, provided the coupon meta data has been translated into the relevant language in the Punchh platform. If the translation is unavailable, the response returns the value for this parameter in the default English language. For example, if the header specifies “fr” (French), themeta_datavalue for a coupon is returned in French only if a French translation is configured for the coupon meta data in the Punchh platform; otherwise the value is returned in the default English language. - nameType: string
External discount name.
Thenamevalue is returned in the language specified in the Accept-Language request header, provided the redeemable name and subscription plan name have been translated into the relevant language in the Punchh platform. If the translation is unavailable, the response returns the value for this parameter in the default English language. For example, if the header specifies “fr” (French), the name is returned in French if a French translation is configured for the name in the Punchh platform; otherwise the value is returned in the default English language. - pointsType: integer
Points associated with the current reward
- startType: stringFormat: date-time
_date _tz Start date of the reward in ISO 8601 format
[
{
"item_id": 777658,
"name": "Flat $5 Off (Unlocks at 100 points)",
"image": "IMAGE_URL_GOES_HERE",
"points": 100,
"base_amount": 5,
"description": "",
"item_properties": null,
"meta_detail": null,
"start_date_tz": null,
"end_date_tz": null,
"created_at": "2022-09-08T18:41:16Z"
}
]
