Hi. I am integrating with Square via API. To track the subscription status, I am using webhooks. For this, I have connected the following events: invoice.canceled, invoice.payment_made, invoice.refunded, invoice.scheduled_charge_failed, payout.failed, refund.created, subscription.updated. Out of these events, only invoice.payment_made is triggered. When I pause, cancel a subscription, etc., the event is not triggered. I tried connecting all available events, but the data is still not being sent.
Could you please tell me which event should be responsible for pausing, canceling a subscription, etc.? Maybe I’m doing something wrong?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Use Webhooks to Integrate with a Payroll System
Pay or Refund Invoices
Use Customer Webhooks
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
The subscription.updated
webhook event should be triggered when a subscription is paused or cancelled. This event is generated when any field in a Subscription is updated, such as when it’s paused, resumed, or cancelled. If you’re not receiving this event, it might be worth checking your webhook setup and ensuring that your endpoint is correctly receiving and handling these notifications.
This answer was reviewed by @Bryan-Square.