Event - Gift Card Auto Reload Enabled
This event is generated when the gift card auto reload setting is enabled for the business in the Punchh platform. Contact your Punchh representative to update this Punchh platform configuration. These events are triggered as they happen in the Punchh system based on configuration.
{
"content_id": "CONTENT_ID_GOES_HERE",
"timestamp": 1619693178,
"business_id": 6,
"business_uuid": "BUSINESS_UUID_GOES_HERE",
"business_slug": "slugname",
"event_name": "transactional_notifications",
"event_type": "gift_card_auto_reload_enabled",
"action": "create",
"payload": {
"user_name":"USER_NAME_GOES_HERE",
"gift_card_balance": "$0.0",
"gift_card_number": null,
"owner_name": "OWNER_NAME_GOES_HERE",
"user": {
"email": "test@example.com",
"first_name": "FIRST_NAME_GOES_HERE",
"last_name": "LAST_NAME_GOES_HERE",
"gender": "declined",
"secondary_email": "test1@example.com",
"unsubscribed": false,
"birthday": "1988-09-29",
"preferred_locale": "en",
"signup_channel": "MobileEmail",
"marketing_email_subscription": true,
"marketing_pn_subscription": true,
"sms_subscription": false,
"last_activity_at": "2023-08-05T09:24:19Z",
"user_status": "active",
"guest_type": "Loyalty",
"account_balance": {
"user_id": 111111111,
"total_visits": 0,
"total_credits": 0.0,
"total_debits": "0.0",
"loyalty_points": 0.0,
"pending_points": 0.0,
"total_lifetime_points": 0.0,
"net_balance": 0.0,
"net_debits": 0.0,
"total_point_credits": 0.0,
"banked_currency": 0.0
},
"external_source_id": "SOURCE_ID_GOES_HERE",
"external_source": "SOURCE_GOES_HERE",
"user_id": 111111111
}
},
"meta": {
"type":"user_notifications",
"namespace":"punchh_server",
"action":"create"
}
}
Meta Fields
Meta Fields are common attributes such as content_id, timestamp, etc. that are returned in event responses, providing additional information about events. Click here to view the descriptions of the attributes.
Response Parameters
| Payload | ||
| user_name | String | Username that identifies the user in the system |
| gift_card_balance | String | Balance amount on the gift card |
| gift_card_number | String | Unique gift card number as issued by the gift card processor (e.g., Aloha, Vantiv, Valutec, etc.) used by the business |
| owner_name | String | Name of the user who owns the gift card |
| user | Object | See the user object in Event - Rewards Expiry Reminder |
| user.account_balance | Object | See the account_balance object in Event - Guest |
| meta | Object | Meta information object |
| type | String | Type of the notification |
| namespace | String | Namespace associated with the operation |
| action | String | Action performed in the operation |