Tracking subscription status via webhook.

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?

499 Views
Message 1 of 3
Report
1 Best Answer
Alumni

Best Answer

Hello @dmitriy_l 👋

 

While the volunteers and moderators in this Community are not equipped to help when it comes to API questions, we do have Developer Forums where you can ask other developers any questions you might have.

 

Alternatively, you can request support from our team using this link or join our Discord community.

 

Thank you. 

Frances
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.

View Best Answer >

449 Views
Message 2 of 3
Report
2 REPLIES 2
Alumni

Best Answer

Hello @dmitriy_l 👋

 

While the volunteers and moderators in this Community are not equipped to help when it comes to API questions, we do have Developer Forums where you can ask other developers any questions you might have.

 

Alternatively, you can request support from our team using this link or join our Discord community.

 

Thank you. 

Frances
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
450 Views
Message 2 of 3
Report
Square Community Moderator

Hey @dmitriy_l 👋

I reached out to one of the engineers on the Subscriptions team about this. They provided the following information. (Please note: I'm just the messenger on this topic and my knowledge is limited 😅)

"If the payment was successful I'm not surprised invoice.canceledinvoice.refundedinvoice,scheduled_charge_failedpayout.failed, and refund.created weren't seen. Cancellation should trigger a subscription.updated event, but only when it takes effect which is always the end of the current cycle. Pausing and resuming are supposed to fire an event as well, but again only when they take effect (which will be the end of the current cycle). If the Seller is looking for an event which will fire immediately, the subscription.updated event will fire when any of the fields are updated, including the note, payment source, etc."

I hope this helps, but please do let me know if you have any additional questions that I can field to engineering for you 🙂

Violet
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.



418 Views
Message 3 of 3
Report