webhook
subscription-status
Sent to the same endpoint, signed and retried exactly like the payment webhook.
Event types:
| Event | When sent |
|---|---|
| subscription.created | The subscription was created after its first payment was confirmed. |
| subscription.renewed | A renewal was paid; a payment.succeeded for the renewal's payment is sent too. |
| subscription.payment_failed | A renewal failed or needs the shopper to authenticate; the subscription is past_due. |
| subscription.canceled | The subscription ended. |
| subscription.upgraded | An upgrade was applied; amount is the new amount. When the upgrade was charged, a payment.succeeded for its payment is sent too. |
data.payment_id is present on subscription.created, subscription.renewed and subscription.upgraded (when the upgrade was charged) only.

