#mulo_webhooks

1 messages ยท Page 1 of 1 (latest)

covert matrixBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1277629733328388206

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

loud cobalt
#

or each webhook receives events regardless of products?

daring needle
#

Hello, unfortunately our webhook endpoints don't support filtering like that. You can only filter on event types and we will send all events to that type to all of your endpoints that are subscribed to that type. So here you would want two endpoints that both listen to invoice.paid and then you would need code to check the invoice line items to see if they are relevant to that endpoint

covert matrixBOT
loud cobalt
rotund oracle
#

๐Ÿ‘‹ stepping in

#

Not exactly sure what you mean by that, but you should respond with a 200 for every Event you receive and then you decide on how to handle it from there.

loud cobalt
#

ye what I mean is that first enpoint recieves the event, if that enpoint responds with 200, will the 2nd enpoint still have to respond 200, or are they separate events?

rotund oracle
#

They are separate

#

Every endpoint that is listening to an Event type will receive that Event and should respond with a 200

#

Generally you would not create multiple endpoints here

#

You would have 1 endpoint and you would look at the Event data to handle the Event