#vitaumps_invoice-item-pending-behavior

1 messages ยท Page 1 of 1 (latest)

glass daggerBOT
#

๐Ÿ‘‹ 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/1359924608979042406

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

pine sonnet
#

Hi ๐Ÿ‘‹

#

The code snippets shown in this doc are using a later API version that applies a different default behavior.. Your request is pinned to an older API version (2020-08-27) and, for that API version, you must have existing Invoice Items first.

#

Also, you would not be able to generate a "sendable" invoice without adding Invoice Items as that would serve no purpose (as far as collecting funds).

modern stratus
#

When I say a "sendable" invoice I just mean with the corresponding collection_method

#

I guess I could do that, add the item and then send it (using new API). is that correct?

pine sonnet
#

You don't need to update your API version as long as you create the Items first for that customer and then create the Invoice.

modern stratus
#

Got it. Will see best way forward then. Thanks for clarifying, I thought I was missing something obvious

pine sonnet
#

Happy to help! If you want to test it out real quick I'll be happy to answer any additional questions about the behavior

modern stratus
#

I think it is OK. I'm going to take my lunch time now, but I'm sure this will be enough for me to achive what I want. For now I will create InvoiceItems first and then create the Invoice. ๐Ÿ‘

pine sonnet
#

Sounds good!