Knowledge Base: API: Subscription Update Post-backs

What is a Post-Back?

In order to notify your application of events that happen inside the Chargify application, such as new signups and accounts entering dunning, Chargify can "post-back" to your application. Postbacks can go to different urls, and are configured on their respective settings.

What is the Subscription update Post-Back?

When subscriptions change in a way that may affect how you deal with the subscription owners, we can send you a post back that contains the IDs of all of the affected subscriptions. The Post-back data will be a JSON encoded array of IDs of the subscriptions that have changed since you were last successfully notified, such as:

[201, 345, 468]

This would indicate that the subscriptions with IDs 201, 345, and 468 have changed in some way that you may care about (i.e. the state has changed, there was an upgrade or downgrade, etc.)

Unless you return an HTTP status code in the 4xx or 5xx range, we will assume you successfully received and accepted the update. If we receive an HTTP Status Code response in the 4xx or 5xx range, we will continue to notify you about the same subscriptions sent in the update.