#verox_api

1 messages ยท Page 1 of 1 (latest)

pliant blazeBOT
pulsar hatchBOT
#

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.

pliant blazeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247212157196566648

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

undone perch
#

Hello

#

Taking a look

dawn raven
#

Alright, thanks a lot.

pliant blazeBOT
rocky kiln
#

HI ๐Ÿ‘‹

I'm stepping in as my collague needs to go.

#

We both reviewed how this error is thrown and it looks like the Invoice needs to be in a draft state to have Coupons applied.

Is it the case that you are not applying the coupon at the time the user is initially attempting to pay the invoice?

dawn raven
rocky kiln
#

Okay but what I am saying is you cannot apply the coupon when the Invoice is uncollectible. So you will need to change the statues before you can update it.

#

With a coupon specifically

dawn raven
rocky kiln
#

You cannot directly update the Invoice status.

dawn raven
#

And how would I do it then?

rocky kiln
#

Question: What is the flow of your integration such that the invoice goes to uncollectible when the Customer's first payment method fails?

dawn raven
rocky kiln
#

That's not the default behavior for subscriptions

dawn raven
rocky kiln
#

I'm reviewing all the requests made related to this Invoice and getting even more confused. There are multiple calls to Pay the invoice, specifying a payment method, and then attempts to update it with coupon codes

dawn raven
#

Is there anything weird happening?

pliant blazeBOT
dawn raven
#

Even when the invoice status is "open", I get this error: "Finalized invoices can't be updated in this way"

hushed kernel
#

Hi there ๐Ÿ‘‹ taking over, as my colleague needs to step away

As far as I know, you can't add coupons after an Invoice has been paid, so that seems to be expected behavior

dawn raven
#

It has the status "open"

hushed kernel
#

I'm checking in with a colleague now and will circle back

dawn raven
#

Thank you very much!

hushed kernel
#

Okay, so when your payments fail, bank debits are not retried since there's a fee on each failure. So these payment method types behave a little differently than cards

dawn raven
#

Ah, okay. So I would have to create a new invoice everytime?

hushed kernel
#

To retry the same payment method yes

dawn raven
#

But I still can't apply discounts, when the invoice status is "open". How do I solve that?

hushed kernel
#

can you pass them when you pay the invoice?

dawn raven
hushed kernel
#

Can you add the coupon before you get to that point? Like update the Invoice then pay? Or pass the coupon when the invoice is created?

dawn raven
#

I think I got it. I just won't finalize the invoice, until all coupons have been entered. And for the case that the payment failed, I create a new invoice, based of the old one.

Thanks for your help!