#bobbyz-price-tax
1 messages · Page 1 of 1 (latest)
@minor sequoia it depends how the Price is configured really. Check https://stripe.com/docs/api/prices/object#price_object-tax_behavior
I don't touch the price object at all, so I'd assume it's configured normally.
Would unit_amount in this case be the same exact unit_amount that is set by me when I create the checkout session (that creates the subscription object in question)?
Yes
@minor sequoia I don't really understand your question
A Subscription creates Invoices each cycle so you can look at the Subscription's latest_invoice for example, is that what you are asking
I'm looking for the unit_amount as mentioned previously after it has been modified by a discount, if one exists.
Yeah but you're being quite abstract unfortunately. Like what if you have multiple prices? What if the discount only applies to some of them? We don't mutate the unit_amount. But you seem to want the resulting Invoice and all its related amount properties
That sounds right. The subscriptions I'm creating only have 1 product, 1 line item, and 1 price, never multiple.
yeah but that's just today, who knows what you'll do in 6 months. But the invoice is what you do want!