#hallmatt - webhook events

1 messages ยท Page 1 of 1 (latest)

novel nebula
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

#

It likely depends on whether the source/card/PM etc is attached to a customer or not

#

wherever that was attached I'd expect customer to be set with the ID of the customer it was attached to

#

Though for deleted i guess that should always be true

#

These are different layers of legacy APIs yes, so an integration that's existed through different iterations might need to manage multiple types

#

Do you have example events I can look at to compare/

celest frost
#

sure!

novel nebula
#

eg evt_123 vs evt_456?

celest frost
#

evt_1L6b9fB7y5mN6h0Ls1f2X2oN
evt_1L6aCHB7y5mN6h0LZtjrRM1Q

#

seemingly the same api version, but the 2nd one does not have a customer - which i was expecting ๐Ÿ™‚

#

i think both were attached to a customer...
one is a live event and one is test

celest frost
#

@novel nebula any thoughts on why these two event types send through different params?

novel nebula
#

Yep because as i noted the source was never attached to a customer as far as i can see

#

oh nope wait, it was, apologies, i misread

celest frost
#

๐Ÿ™‚

#

for evt_1L6aCHB7y5mN6h0LZtjrRM1Q it was deleted through the Dashboard, and was attached to a Customer. i dont even know how to attach/delete sources/pm/cards without attaching them to a Customer ๐Ÿ™‚
so its just weird that some come through webhooks w/ a customer and others dont

novel nebula
#

Right, this appears to be expected for the source event

celest frost
#

so sometimes a source event has a customer and other times it does not? it seems strange because it's the customer.source.deleted event. meaning, there's a customer associated with the event

zealous rain
#

Hi ๐Ÿ‘‹ I'm stepping in for @novel nebula Give me a sec to catch up

#

Sources are a much older API with some less than ideal behavior. This may be the cause of this situation

novel nebula
#

so these are just different events and have different data shapes