#Wyrran

1 messages ยท Page 1 of 1 (latest)

empty salmonBOT
covert hearth
#

Hi ๐Ÿ‘‹

I get the same behavior. Out of curiosity what API version are you on?

tight parrot
#

oh, good question. one sec. its probably an older one at the moment.

#

you get the error behavior?

#

hah, very old: 2016-07-06

#

also, hi! ๐Ÿ™‚

covert hearth
#

Yeah, my default API version is 2020-08-27 but this behavior wasn't introduced until 2022-08-01.

#

But you can specify pending_invoice_items_behavior as exclude and then you can create an Invoice without Invoice items

tight parrot
#

ah ok. so would it be better to do that and then create the item second?

#

or create the item and then create the invoice right after. no way to do it at the same time right?

covert hearth
#

Either way will work fine, it depends on which approach makes the most sense for your integration. But you are right there is no way to do both in one API call.

tight parrot
#

I'll add a chore to look at upgrading us. Thanks!