#jayy26
1 messages · Page 1 of 1 (latest)
Yeah
Each price has their product on the object: https://docs.stripe.com/api/prices/object#price_object-product
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So just do a retrieve for each id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
wouldn't it be somewhat bad to do a retrieve for each price i have? so for example if i have 10 prices that means i am calling stripe endpoint 10 times to get each one?
as i've been using prices.retrieve, but was wondering if there's a better method
There's not
alright, i'll with using retrieve then. Thanks 🙂
I do have one more question. for Coupons that have related products:
If the coupon is applied to product A and product B
and the customer is purchasing only product B with said coupon, would it allow or deny the customer from using the coupon ?