#ShubhamDev
1 messages · Page 1 of 1 (latest)
How we can get price in stripe.products.list api?
Hi! Let me help you with this.
You can only expand the default_price property: https://stripe.com/docs/api/products/object#product_object-default_price
To get all prices you will need to List all prices and filter by product: https://stripe.com/docs/api/prices/list#list_prices-product
When we are using prices.retreive api there I am getting unit_amount = 2900 but I set 29 usd
Could you please help me on this
@still vigil ?
Amounts in Stripe are zero-decimal: https://stripe.com/docs/currencies#zero-decimal
This means that if a currency, in this case USD, has cents, we specify it as amount of cents.
This makes $29 to be represented as amount: 2900 in our API.
Yes
Okay Thanks!
Happy to help. Let me know if you have any other questions.