#junkyung-bae_unexpected

1 messages · Page 1 of 1 (latest)

sour jasperBOT
#

👋 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/1395295368287227955

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spring solar
#

What's the invoice ID?

golden tangle
#

2JSZ1F4X-0008 in test mode.
I updated status void.

spring solar
#

The invoice ID starts with in_

golden tangle
#

I’m curious to know how I can resolve this scenario.

#

in_1RlkS3CY3nXTwHgM7BqL9KAq oh here

spring solar
#

Ok, so you want to void the inovice after all retries?

golden tangle
#

yes exactly

spring solar
#

Ok, right now there's no option to automatically void an invoice after all retries, you can listen to invoice.payment_failed event, if the invoice's next_payment_attempt is null, it means it has completed all retries, and you can call the API to void the invoice.

golden tangle
#

oh i see Thanks jack!

#

is it different listening subscription.deleted?
we limit only one subscription

spring solar
#

It depends on what kind of event that your integration is intereted in.

golden tangle
#

We’re listening to both events. you meant that it doesn’t matter at which of the two event points we handle it, and that there won’t be an issue in this scenario

spring solar
#

These two are two different events

  • customer.subscription.deleted occurs when a subscription is deleted
  • invoice.payment_failed occurs when an inovice payment is unsuccessful
sour jasperBOT
violet basin
#

hi! I'm taking over this thread. let me know if you have other questions.

golden tangle
#

We want customers to subscribe to a new price for the product prod_Hc2YjL0IO95V6T, rather than the old price. Once existing customers have completed payment for their already-issued invoices, we want the next invoice to reflect the new price. Or is there an easier way to update them all at once?