When the API is used and a client buys a monthly subscription, is there a way to set up the API to send a notification every month when the payment goes through or the User cancels or the Payment is declined?
For example, user signs up on Oct 1, on Nov 1, do I get a notification they successfully paid for another month?
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:
https://developer.squareup.com/docs/app-marketplace/requirements/subscriptions-api
Additional Documentation
Payments API Webhooks
Use Customer Webhooks
Square Developer
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.
Yes, you can leverage Square’s webhook functionality to receive notifications about subscription events. Specifically, you can subscribe to the ‘subscription.updated’ webhook event. This event is triggered when a subscription is renewed, cancelled, or if a payment fails. When a subscription is renewed, the ‘subscription.updated’ event will be triggered and the status of the subscription will be ‘ACTIVE’. If a payment fails or a user cancels their subscription, the status will change to ‘CANCELED’ or ‘FAILED’, triggering the ‘subscription.updated’ webhook event.
This answer was reviewed by @Bryan-Square.
Additionally, every time the customer is billed for the subscription they will be sent an invoice. They’ll also get an invoice if a payment fails requesting them to pay the balance due.