#theproofficial

1 messages · Page 1 of 1 (latest)

pearl crownBOT
sonic yew
#

what you have there seems like it would work

#

when you say it doesn;'t show in the API, where exactly are you looking and what do you see instead?

prime summit
sonic yew
#

because for example, in a Price object, the product field is not expanded by default, it's only a String, so you won't see the details of the name until you retrieve or expand the Product

sonic yew
prime summit
#

Currently I am looking at a result from customer.subscription.created

#

And it does not include product_data

#

On the front-end, it does show as intended, but it is not sent to the api

sonic yew
#

what exactly do you see?

did you understand what I mentioned about the Price object not expanding the Product by default?

#

happy to clarify

prime summit
#

I see now, is there a way to include the name in the price object or the subscription object then?

sonic yew
#

not in the raw webhook response itself

#

you can make an extra API call when handling the webhook, for example call Subscription Retrieve with expand:["items.data.price.product"] and work with that response