# Webhooks for recurring payments

**URL:** <https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510>\
**Category:** Questions\
**Tags:** webhooks-api\
**Created:** [February 9, 2023, 1:25pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510 "2023-02-09T13:25:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 9, 2023, 1:25pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/1 "2023-02-09T13:25:21Z")

</div>

Hi, I’m trying to do a simple integration for recurring payments using this article: [https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout](https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout).

I’m a bit lost and would really appreciate some clarifications.

Which webhook should I check and what data to make sure that payment was made? Will payment.updated and “status”: “COMPLETED” be okay?

What webhook will be sent for next period payment? Can somebody show me example of initial webhook and the next one?

Is there a page where I can view list of sandbox payments and subscriptions?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 9, 2023, 4:03pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/2 "2023-02-09T16:03:53Z")

</div>

Yes, the `payment.updated` and `payment.created` events will fire every time a payment is made for a subscription. Also an [invoices.paymet.made](https://developer.squareup.com/reference/square/invoices-api/webhooks/invoice.payment_made) event will trigger as well.

For a seller view of subscriptions and payments you can see them in the [Square Sandbox Seller Dashboard](https://developer.squareup.com/docs/devtools/sandbox/overview). Also if you want example webhook payloads you can send test events from the webhooks subscription. 🙂

---

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 9, 2023, 6:25pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/3 "2023-02-09T18:25:12Z")

</div>

Thank you for answering me.  
In webhook payload there is event\_id, data.id and data.order\_id. Could you tell me which one will stay the same for all subsequent payments and which will be unique to individual payment? I wasn’t able to find answer for it myself, thanks.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 9, 2023, 10:31pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/4 "2023-02-09T22:31:55Z")

</div>

Those values will change with every unique payment. Were you expecting one of the IDs to stay the same? 🙂

---

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 10, 2023, 10:05am UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/5 "2023-02-10T10:05:29Z")

</div>

For initial payment I have order\_id generated with payment link so I can compare it to a webhook data but how can I identify future payments? I need some common id to link first payment to future recurring payments. How else can I process recurring payments webhooks?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 10, 2023, 4:14pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/6 "2023-02-10T16:14:05Z")

</div>

You’ll use the `subscription_id` track any further payments associated to the subscription. The invoices events will have the subscription\_id associated to the payments. 🙂

---

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 10, 2023, 6:21pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/7 "2023-02-10T18:21:37Z")

</div>

With initial subscription payment I only get order.\* and payment.\* webhooks and I’ve subscribed to all webhook events possible. There is no subscription\_id in those events data. How can I get it?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 10, 2023, 7:41pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/8 "2023-02-10T19:41:59Z")

</div>

You didn’t get a `subscription.created` event? 🙂

---

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 11, 2023, 10:36am UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/9 "2023-02-11T10:36:23Z")

</div>

I didn’t get any subscription.\* event for any of sandbox subscription payments. I’ve subscribed to all events and created requests according to the article I’ve linked before. What can be wrong?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 13, 2023, 4:18pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/10 "2023-02-13T16:18:17Z")

</div>

What’s your application ID? 🙂

---

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 13, 2023, 4:39pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/11 "2023-02-13T16:39:03Z")

</div>

ID: sandbox-sq0idb-8qp-xR55PsSdUt\_41lxx6g  
Currently url for webhook subscription is incorrect, there was the same result with correct one and there is no subscription.\* event in webhook logs.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 13, 2023, 6:32pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/12 "2023-02-13T18:32:33Z")

</div>

Oh, are these subscriptions created with [CreatePaymentLink](https://developer.squareup.com/reference/square/checkout-api/create-payment-link)? If so this is a gap in Sandbox. They won’t trigger a subscription webhook. However they do trigger them in production. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![z123456](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@z123456](https://developer.squareup.com/forums/u/z123456)\
**Post date:** [February 14, 2023, 10:55am UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/13 "2023-02-14T10:55:21Z")

</div>

Yes, it’s created with CreatePaymentLink. I can delay integration for a few weeks but I would prefer it to be fully functional in dev mode. Can I get notified when it’s solved?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 14, 2023, 5:31pm UTC](https://developer.squareup.com/forums/t/webhooks-for-recurring-payments/8510/14 "2023-02-14T17:31:26Z")

</div>

Okay, unfortunately this isn’t a quick fix and we don’t currently have a timeline for a fix. 🙂
