- 25 Jan 2024
- 1 Minute to read
Coupon Data on Mobile App
- Updated on 25 Jan 2024
- 1 Minute to read
Sharing coupon data helps you keep track of which coupon is provided, which user receives this coupon, and which campaign offers this coupon. Accordingly, you can take any necessary actions on your end.
Insider shares the coupon data of a campaign via a webhook that you provide. This campaign should be a campaign where you upload coupon codes.
This process requires two steps:
Webhook Integration for Coupons
1. Go to Settings > Mobile App Settings > General.
2. Check the Enable Webhook Integration for Coupons box.
3. Add your callback URL.4. Click the Save Changes button to complete this step.
Webhook Callback on Campaign Options
1. Go to the Edit Campaign Options step of the campaign creation flow.
2. Check the Send Coupon Data via Webhook box to trigger the callback URL to receive information of the users along with the coupon code they received, their variation ID, and campaign ID.
Sample Response
Below is a sample response that you can receive on the callback URL you added in the settings.
{
"inapp_id": 63,
"variat_id": 148,
"coupon_code": "coupon",
"udid": "25cf2aa1cf567475",
"identifier_value": sample@mail.com",
"identifier_key": "em"
}