Webhooks
Trigger subscriptions events to a custom webhook channel. Glassfy monitors the subscriptions and sends relevant events to the custom Webhook even if the user does not have the app open.
- Create a new Trigger for Webhook in the Glassfy dashboard and paste the "Incoming Webhook URL"
- Set your webhook URL to the "URL" field.
Request format
Glassfy sends POST
requests every time an event is generated with the following format:
Request body
{
"type": 5002,
"store": "i",
"vendorid": "8NOV6FQBHHRJ4F9N2HV0HUXOQ5LL0QA3",
"appid": "SZ126UWWVGTH82UE9313EQQ5N1YM3QOA",
"original_transaction_id": "R9YECBG3ZG9ACDMHZA4GWAIFB97BXZ0T",
"subscriberid": "R9YECBG3ZG9ACDMHZA4GWAIFB97BXZ0T",
"productid": "ios_premium_weekly_1_99",
"purchase_date_ms": "1608726707766",
"price": "1.99",
"currency_code": "GBP",
"quantity": "1",
"event_date": "1608726707"
}
Retries
Glassfy will send POST requests to your server with the authentication header and json with the details of the event. Your server must return a 200 status code. If the status code is not 200 Glassfy will retry 5 times (after 5, 15, 30 and 60 minutes). After all the retries Glassfy stops sending the event.
Updated about 1 year ago