#seagull4real

1 messages · Page 1 of 1 (latest)

still hemlockBOT
vagrant parcel
#

Do you have the ID of an invoice that you created like this? Having a bit of trouble picturing this

viral plover
#

Here is how I try to create an invoice
and here is the id
in_1OEYe0H3o7SpP8ziNx2kf8fW

vagrant parcel
#

Ah I see, so the issue is that your invoice items are not showing up on your invoices

#

There is a parameter that you can set when creating the invoice, finding that now

viral plover
#

Thank you

vagrant parcel
#

Though keep in mind that means that it will include all open invoice items. Depending on your usecase that can be exactly what you want to do or exactly what you don't want to do

viral plover
#

Let me try real quick

viral plover
vagrant parcel
#

Can you show me the code for the call that you made?

viral plover
vagrant parcel
#

The text of the code please, pictures are harder to work with

viral plover
#

Of course sorry about that

vagrant parcel
viral plover
#

req_llcG8csan3Upos

vagrant parcel
#

That call is not either of the calls on your screenshot

viral plover
#

I just comment it out

vagrant parcel
#

That invoice is considered "Open" not "Upcoming", upcoming would be invoice items on the customer but not on an actual invoice object I believe

still hemlockBOT
viral plover
#

Hmm, then how can I move in with that?

#

Cause I want to include only that invoice item not all previous ones.

vagrant parcel
#

With the code that I send, the upcoming invoice call will not work if you do the calls in that order

#

Before it may have been picking up invoice items that weren't attached to any invoice, but with this one you will have an actual draft invoice

viral plover
#

Like with invoice.create and then InvoiceItems.create (including invoice: invoiceId)

vagrant parcel
#

Right, after you have called invoice.create that creates an invoice in draft state. That is not an "upcoming" invoice by our API's definition. Draft invoices are just invoices