#bobbyz-price-tax

1 messages · Page 1 of 1 (latest)

proper bolt
minor sequoia
#

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)?

proper bolt
#

Yes

minor sequoia
#

Perfect, thanks.

#

How can I get the price paid after the subscription is applied?

proper bolt
#

@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

minor sequoia
#

I'm looking for the unit_amount as mentioned previously after it has been modified by a discount, if one exists.

proper bolt
#

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

minor sequoia
#

That sounds right. The subscriptions I'm creating only have 1 product, 1 line item, and 1 price, never multiple.

proper bolt
#

yeah but that's just today, who knows what you'll do in 6 months. But the invoice is what you do want!