#sai-rez_api

1 messages ยท Page 1 of 1 (latest)

clear birchBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212425968640065577

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!

hardy hawkBOT
candid apex
#

Hi there ๐Ÿ‘‹ taking a look

amber depot
#

Thanks!

candid apex
#

Do you have an example of the monthly scenario that you can share that I can compare against? Right now my thinking is that discount isn't being populated since it's a one-time use Coupon being used, so there is no discount after the first Invoice has been generated, but I'm not confident about that.

hardy hawkBOT
amber depot
#

Yea here is one for a monthly test sub - req_0ut1o6avu1M94w

candid apex
#

Yeah, I think that's the difference. The coupon you're using there is a duration coupon rather than one-time use.

amber depot
#

Yup just tested again with a monthly sub and seen the same results

#

So would the latest_invoice property of the subscription be the best place to grab coupon information regardless if it's one time or not?

candid apex
#

Yeah, if you're looking for information about the Coupon that was used for the previous Invoice, that would be my suggestion.

#

The duration ones hang around at the Subscription object level because they will impact any Invoices generated for that Subscription within their duration.

amber depot
#

Ok good to know thanks for clearing that up Toby!