#artur_kagaryan

1 messages · Page 1 of 1 (latest)

lunar copperBOT
low spindle
#

Sorry I put wrong link, I wont to create invoice , not the invoice item. I mean create invoice and pass the product

void bone
#

you have to create the items

#

the way it works is you create an Invoice, and then create Items that add to that Invoice.

low spindle
#

When I create invoice before creating invoice-items , I'm getting this error
"Nothing to invoice for customer"

void bone
#

that's because you're using an older API version that requires you to create the item before creating the Invoice, we changed it last month

#

or you can create the items first, and then create the Invoice

#

sorry, bad link

low spindle
#

ok, I will update version. Can I create one item/product and use it in few invoices ?

void bone
#

a single InvoiceItem is specific to one Invoice

#

you can create as many InvoiceItems referencing a certain Price(for a certain Product) and use those in separate Invoices as much as you want

low spindle
#

Understood .
So in my current api version if I create for example 4 invocie items then create invoice , it will include all those 4 items ?

void bone
#

yep, in the older versions they way it worked is you

  • create item A
  • create item B
  • create an Invoice
  • the invoice "pulls in" A and B and those are part of that invoice now
  • finalize the Invoice
#

there are some problems with that approach which is why in the new version it's

  • create an empty Invoice I
  • create item A on I
  • create item B on I
  • finalize the Invoice I