#Santhosh Kumar R
1 messages · Page 1 of 1 (latest)
Hello 👋
The price ID should be under items array
https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price
However, the product is an expandable property on the price parameter
https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price-product
So you will need to expand it
https://stripe.com/docs/api/expanding_objects
is ther an api that i can query the productid using the subscription?
Unfortunately, no.
You could store the product ID as metadata on subscription when you create it to make it easier
OKEI
my product id is available inside the subscription object thou i am unable to access it.
What error are you getting?
that looks correct, yes