#TheNils-invoice items

1 messages Β· Page 1 of 1 (latest)

unique axle
#

πŸ‘‹ happy to help

wide wraith
#

Hi tarzan

unique axle
#

could you please elaborate more?

wide wraith
#

ok , to create an invoice,
I must first create invoice_items for each invoiced product.
After that I create my invoice and I have to set the pending_invoice_items_behavior to 'include' because otherwise I get an error saying that it is impossible to create an empty invoice.
in case the customer triggers two invoice creation processes at the same time, all pending invoice_items will be assigned to the first invoice and the second invoice will not be created

trim gate
#

Hello πŸ‘‹
Stepping in as tarzan needs to step away soon

wide wraith
#

need a moment to reproduce and get the exact error

trim gate
#

NP! πŸ™‚

wide wraith
#

StripeInvalidRequestError: Nothing to invoice for customer

#

ok i get it

#

the doc stated : Defaults to exclude if the parameter is omitted.

#

in fact if i ommit pending_invoice_items_behavior i get the error

#

but if i explicitly set it to exclude the error is gone

trim gate
#

yup

wide wraith
#

maybe the doc need a little update so ? is there anywhere i can repport that ?

trim gate
#

I haven't had a chance to reproduce this yet as discord is busy but I can test and flag it internally to get it fixed πŸ™‚

wide wraith
#

ok , thanks keep up the good workπŸ‘

craggy fox