#josula_api

1 messages ¡ Page 1 of 1 (latest)

tender kestrelBOT
#

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

📝 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.

crisp hawk
#

so my flow is

  1. create quote
  2. customer accepts quote where we trigger "quote accepted" api
  3. Invoice is created and somehow (?) immeditately finalised

I want to intervene between 2 and 3 to adjust the invoice before it gets finalised. This does not seem to be possible somehow?

#

const acceptedQuote = await stripe.quotes.accept(stripeQuoteId);

This creates AND FINALIZES the invoice attached to the quote, right? Why does it finalise the invoice?

tender kestrelBOT
lavish fulcrum
#

hello! sorry for the delay, looks like we had a mistake in our handoff - i'll be looking at your question as soon as possible, but it might be a bit

crisp hawk
#

thx

lavish fulcrum
#

ok looking at this now

#

i don't have a ton of personal experience with the quotes API so i might need a bit to experiment with this and reproduce it

#

ok, soooo i think it's expected behavior that the invoice is finalizes immediately, because the expectation is that once the quote is accepted no further changes will be made to the invoice

#

can you explain more about what types of changes you want to make to the invoice?

crisp hawk
#

I want to add metadata to the invoice for example

lavish fulcrum
#

you should still be able to update metadata on a finalized invoice, are you not able to when you try?

#

ok i take it back, i had a run through this process and it looks like my invoice is created in a state of draft. can you share example request IDs or an invoice + quote ID from your testing?