#Yure

1 messages · Page 1 of 1 (latest)

merry topazBOT
flint shard
modest veldt
#

Could I change the existing webhook to be Connect type or I can only create a new one?

flint shard
#

you'd create a new one

#

and you should definitely use a different URL/route and different code on the backend for the Connect endpoint

modest veldt
#

are the breaking changes in the webhook request body for connected account? how is it different from the platform's?

flint shard
#

by 'breaking' what are you imagining exactly?

#

the body is the same, in that it's an Event object containing data[object] field which is a CheckoutSession object

#

the difference is that there is an additional account field in the Event object to tell you which connected account the event came from(the docs I linked mention that)

modest veldt
#

gotcha, thank you for the help!