Latency for application to send webhook events after being Oauthed

Is there any latency for application to send webhook events after being Oauthed by merchant in other square account?

Our merchant used Oauth so that our application can send webhook events when something updated in their data. However, we found that the app still not sending webhook event to our endpoints. Is there any latency between two time points?

Not that I know of…if your app is subscribed to webhooks, then when you OAuth a merchant, they will automatically be subscribed to the same webhooks. Can you share the app id and merchant id in question? What events are you expecting that aren’t sending?

The app that granted permissions by other account merchant: sq0idp-JlogjOwvnkjWIjwdaK1BAw
Merchant Location ID: D9M9PSTSV1N0F
Merchant ID: JQ8YGYX77ZR26

We expected order.updated and refund.updated.

It looks like this location only has Reader SDK transactions. Reader SDK, nor POS, will fire order webhooks. The only webhooks that fire are those explicitly created by calling CreateOrder. I do not see a recent refund (last one looks like from December 8th), so is there a refund that should’ve fired?

No, refund doesn’t matter here. The order updated in this merchant location doesn’t trigger our Oauth application to send order.updated event.

As I mentioned above, I only see Reader SDK and POS transactions which do not trigger order.updated events.

That’s weird. We did create order on this merchant. Because we received the webhook event order.updated from merchant’s application. Ex: dCFJj4TalTQuOm4wOOURNTKkWa4F is one order id created in the merchant’s account.

Oh shoot, sorry for the confusion I was confusing myself. I do see order.updated being sent several times (the last one happened at 2:56 PM PST) to sq0idp-JlogjOwvnkjWIjwdaK1BAw application for that order. It looks like your application responded too as there were no retries.

Can you check or let me know how to check the sender application ID of a specific order or webhook event, example order id: dCFJj4TalTQuOm4wOOURNTKkWa4F? I expected receiving webhook events both from “sq0idp-JlogjOwvnkjWIjwdaK1BAw”, the Oauth app and merchant’s app, however, when I use this Oauth app’s webhook signature to validate the event, it never succeed. It only succeed when I use merchant’s app’s webhook signature. That’s why I guess the Oauth app doesn’t produce relative webhook events.

I do see two webhooks being sent, for different application ids. It looks like you’re sending them to the same URL so you wouldn’t know which is for which application. Although, why does the merchant have an additional application in the first place if you’re already using OAuth? Seems like you only need one of these if they’re doing the same thing.

We were using merchant’s application before using Oauth. Is there a way to check the sender application ID of a specific order or webhook event?

No, that’s not currently possible.

Can you give me the id and timestamp of one wbhook event that sent by app sq0idp-JlogjOwvnkjWIjwdaK1BAw? We want to locate it in our log system.

Sure, dCFJj4TalTQuOm4wOOURNTKkWa4F order.updated webhook was sent to sq0idp-JlogjOwvnkjWIjwdaK1BAw at 12-22-2020 2:56:16 PM PST. The event_id was e2305a39-556b-4a53-888c-11febb2a7d66,

1 Like