Receives a notification when a subscription is cancelled and no further payments are due. You can filter to a specific type of purchase (e.g. for a product, upsell or downsell) by using a trigger field. Note: bumps do not support subscriptions, so are not options.
1
to receive only test mode purchases
2
to receive only live mode purchases
product
upsell
downsell
If the subscription » type
key above is set to product
, provide the numeric ID of the product.
{"event": "order_rebill_cancelled", "target_url": "https://mysite.com/webhooks/123/", "trigger_fields": {"subscription": {"type": "product", "product_id": 5}}}
If the subscription » type
key above is set to upsell
, provide the numeric ID of the upsell.
{"event": "order_rebill_cancelled", "target_url": "https://mysite.com/webhooks/123/", "trigger_fields": {"subscription": {"type": "upsell", "upsell_id": 13}}}
If the subscription » type
key above is set to downsell
, provide the numeric ID of the downsell.
{"event": "order_rebill_cancelled", "target_url": "https://mysite.com/webhooks/123/", "trigger_fields": {"subscription": {"type": "downsell", "downsell_id": 1}}}