Offer Webhooks

Receive Offer updates in a more scalable way

Triggering Events

Below are the following events that trigger Offer's webhooks. In the springbig database offers are synonymous to reward_grants

On Creation: reward_grant_created

{
   "reward_grant":{
      "merchant_id":420,
      "member_id":1216000,
      "member_email":"[email protected]",
      "member_phone_number":"814-420-4200",
      "created_at":"2023-06-28T16:00:06Z",
      "communication_id":1387,
      "communication_type":"Campaign",
      "offers":[
         {
            "id":1337101,
            "active":true,
            "status":"issued",
            "_type":"coupon",
            "max_redemptions":-1,
            "expiration":"2023-07-01T03:59:59.000Z",
            "name":"webhook testing",
            "description":null,
            "offer_type":"coupon",
            "item_value":0,
            "bonus_type":null,
            "bonus_value":null,
            "cash_reward":false,
            "meta":null,
            "discount_amount":null,
            "discount_type":null,
            "images":[
               
            ]
         }
      ]
   },
   "event_name":"reward_grant_created"
}
AttributeDefinitionSample Response
merchant_idthe member's merchant's account id
member_idthe member's unique identifier
member_emailthe member's email addressvalid email format
member_phone_numberthe member's phone number as a string valuevalid 10-digit number e.g. 814-420-4200
created_atthe timestamp of the reward_grant
communication_idthe index id relevant to the communication typeinteger, null
communication_typethe communication source of the reward grantCampaign, AutoCampaignMessage, ExternalSubscriptionPlan, null

Communication_type + Communication_id expanded

The communication type indicates the communication source where the offer (reward_grant) was created.

  • when type: Campaign, the identifier (id) refers to the campaign_id
  • when type: AutoCampaignMessage, the identifier (id) refers to the autoconnect.message_id
  • when type: ExternalSubscriptionPlan, the identifier (id) refers to the subscription_plan.id
  • when type: Null, there is no message identifier because this offer was not triggered by a message type. This offer is a standalone offer that is not linked to any messages. The feature that supports this offer is called "Member Offers"

Offers

AttributeDefinitionSample Response
idthe offer (reward_grant) unique identifier
activeboolean that determines the state of the offer - when an offer is issued, the value will remain truetrue, false
statusthe status of the offer when it is triggered to a customerissued
_typethe offer type can be a coupon: defined discount, bonus_point: point multiplier, instant_point: issues points when the customer meets criteria (instant points are only supported through communication_type offers)coupon, bonus_point, instant_point
max_redemptionsan integer that defines the max redemptions allowed to be redeemed. -1 = unlimited1-10, -1
expirationthe date that the offer is set to expire in UTC format
namethe name of the offer
descriptiona description was added to the offer
offer_typeoffertype = type
item_valuedefaults to 0 - this value is only respected for rewards, not offers
bonus_typedetermines if the mounts are added or multiplied to a sale, only relevant to a bonus type offeradd, multiply
bonus_valuethe number of points to be earned if type: bonus
cash_rewardboolean if the offer is a cash reward (only relevant to rewards) - offer default to falsefalse
metaan arbitrary value that is determined between POS + springbig for in-store redemptions
discount_amounta defined discount amount as an integer
discount_typethe discount type can be percentage or dollar%, $
imagesan array of image links if an image is attached to an offer
event_namecurrently support creating events onlyreward_grant_created

Did this page help you?