#mark-a_api

1 messages ยท Page 1 of 1 (latest)

waxen oreBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ 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.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— 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/1354197191086051538

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

open cloud
#

Invoice upcoming call:
InvoiceSubscriptionItemOptions.Price = price_1NfBrOAUoPbSaQbf4dwO19XM
InvoiceSubscriptionItemOptions.Id = si_S0SmcpDF56Jl8P
InvoiceSubscriptionItemOptions.Quantity = 2
UpcomingInvoiceOptions.Customer = cus_S0RT1P9KgKTQBf
UpcomingInvoiceOptions.SubscriptionItems = (the subscription item from the ID above)
UpcomingInvoiceOptions.Subscription = sub_1R6RrMAUoPbSaQbfHnNyqWD5
UpcomingInvoiceOptions.SubscriptionProrationDate = {3/25/2025 7:38:01 PM} (UTC)
UpcomingInvoiceOptions..SubscriptionProrationBehavior = "always_invoice"

#

This is related to yesterday's item which was not resolved. The question above is a much narrower focus which should help.

native grotto
#

Cool cool. Just give me a sec.

open cloud
#

Thank you

native grotto
#

Can you tell me what you were expecting to see?

open cloud
#

I'm expecting that the existing subscription discount ALSO applies to the "remaining time on..." line item.

#

sorry, I have that backwards... correcting...

#

The discount is missing from this item:
"description": "Unused time on *** Subscription after 25 Mar 2025",

#

But exists on this item:
"description": "Remaining time on 2 ร— *** Subscription (with 10.0% off) after 25 Mar 2025",

#

Seems like it should be on both, as there is an existing discount on the subscription.

native grotto
#

Invoice upcoming call:

Are you doing this in a webhook?

open cloud
#

Direct API call, .Net

#

Use case is customer wants to increase subscription quantity. This is the preview and then subsequent update. But this line that's missing the discount causes the end result to have negative amount due values in cases with deep discounts and further out billing anchor dates.

#

(and seems to always be wrong, without the discount applied)

native grotto
#

Right, ok. Still digging. ๐Ÿ‘

waxen oreBOT