Our documentation has moved!

You are currently viewing a legacy version of our help articles.
For the most up-to-date version, please use the new Chargify Help & Support Site.
Follow

New Webhooks: Component Allocation Change and Metered Usage

Its been too long since we posted to the change log!  Things HAVE been changing though, so I'll try to get caught up.  We'll start with some new webhooks...

Component Allocation Change Webhook

 This webhook notifies your listener any time an allocation is changed on a Quantity-Based Component or the enabled status is changed on an On/Off Component.  It does not fire if an initial value is set for the allocation at the same time the subscription is created (i.e. at signup)*.  It does fire if a component is added (i.e. allocation changed from 0 to 1) any time after signup - it will fire for any subsequent change.

The webhook contains data about the component, subscription, product, previous allocation, new allocation, memo, and timestamp.

Documentation for this webhook can be found in the main Webhooks Documentation

Metered Usage Webhook

This webhook notifies your listener any time metered usage is reported to Chargify.  It does not fire when unit balances are reset to 0 at the beginning of a period.

The webhook contains data about the component, subscription, product, quantity, previous balance, new balance, memo, and timestamp.

Documentation for this webhook can be found in the main Webhooks Documentation.

Up Next...

As noted above with the (*), there is a slight hole here.  There is no way, via webhooks, to know about component allocations that are set as a part of subscription creation.  We're going to close that hole by adding component information to the signup_success webhook, soon.  We feel this is best because (1) the webhooks may come out of order and (2) we want to help you avoid the situation where  you must trigger on signup_success to create a subscriber on your side, then wait for another webhook to know the full parameters of that signup.

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Vishwas Sahane

    So how would I know which component have been added in subscription at the signup event in webhook?

  • 0
    Avatar
    Vishwas Sahane

    Also how to know whether a product is checked as taxable or not ?

    This info is not present in payload data of webhook.

    Can I check this via API?

Please sign in to leave a comment.
Powered by Zendesk