#falsesoap-upcoming-invoice

1 messages · Page 1 of 1 (latest)

queen tundra
#

@prisma yoke Can you share exactly what you see/do and then I can help understand whether it's a bug or not

prisma yoke
#

example: I call the endpoint with the discounts array containing a coupon that applies 50% of to everything

#

for subscriptions that are metered monthly it works as expected

queen tundra
prisma yoke
#

does that explain why it works for monthly?

#

I have been using that endpoint without issue for monthly subs

#

when I change the price id to a yearly price id it will return the discount in the invoice obj but the total will not reflect the price change

#

for your reference the yearly subscriptions are also pro-rated so they might be 1/2 a year or 2/3 a year etc

queen tundra
#

Can I ask you to be extremely crisp about the issue? Sorry it's just really hard to parse, what does the proration have to do with it? Do you do proration with monthly too? I don't follow what you are describing unfortunately

prisma yoke
#

sorry, I just tried the coupon parameter now and it seems to be working

#

I think the real issue is the discounts array is working for monthly price ids, and not for yearly price ids

queen tundra
#

I'm still curious how discounts works on monthly prices, it should not

prisma yoke
#

lol

queen tundra
#

so I still think there's something else that we're misunderstanding

prisma yoke
queen tundra
#

If you're willing I'd love to debug this (though I'm also deep in a strange ACSS issue for someone else so will be slow)

prisma yoke
#

I'd love to help, I need to go right now, but all you need to do is pass discounts [{coupon:couponId}]

#

I will be online again tonight