What happens when a subscription payment fails at later date

Hi, I am building and application that uses the subscription API to create subscriptions for users with pre attached cards. Im struggling to find in the documentation what happens if at some later date the payment fails. This could happen because the user cancels the card, or the card reaches its expiration date, or any other host of reasons. If this happens what is the best way to find out, and what is the workflow on squares side, will you start sending them invoices, or send them an email prompting them for a new card?

Hi, yes if a subscription that has a card on file fails we will send an invoice so the customer can pay the invoice. If you are also subscribed to Invoices webhooks you will be notified of the failed card on file payment and can work with your customer to update the information. :slightly_smiling_face: