#andrew-samir_webhooks

1 messages ¡ Page 1 of 1 (latest)

shut eagleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250418643683115009

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

stoic flame
#

hi there!

halcyon kraken
#

Unfortunately not

#

Although the field is expandable, you can't configure fields tro be automatically expanded in webhook events

#

So you'll need to look it up directly via the API

latent scarab
#

Ummmm okay
another question please .. if i listen to customer.subscription.created event ... the subscription can be accessed by data.object.plan directly?
because i am confuced about it and data.object.items.data.plan

stoic flame
#

the customer.subscription.created will contain a Subscription object in the payload.

#

are you trying to get the price used for the Subscription?

latent scarab
#

no i want to get the subscription plan info

stoic flame
#

what is '"plan info"? it's price? something else?

latent scarab
#

name, price (Amount) , product_id , price_id