#ulysses-ck_webhooks

1 messages ยท Page 1 of 1 (latest)

trail trailBOT
#

๐Ÿ‘‹ 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/1357406638901956690

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

sage kayak
#

Hi! Can you give me a Checkout Session event ID that you've created with the product?

acoustic flicker
#

I'm going to search for one

#

cs_test_a1NsdP2Svu2dUFWJthguq4HtETCXy34j23Kn3pIV5cjeTOyDhabAjVwLjL

trail trailBOT
sage kayak
#

So so sorry. Still looking.

sour gyro
sage kayak
#

So sorry. You just need to expand the line_items property when you retrieve the Checkout Session and you'll see the Product ID(s) at line_items.data[].price.product

#

Pompey is correcter than I am. ๐Ÿ˜‚

sour gyro
#

Either should work, retrieving the session may make more sense if you want to expand other fields on it.

#

And two potential ways to make this easier could be to store IDs that you care about in the Checkout Session's metadata as that will be in the event. Or you could cache a session -> products mapping on your side and refer to that

acoustic flicker
#

Thanks to you two!!! Right now, I have a wide persective to make it