#growwithjen-create-invoice-zapier

1 messages ยท Page 1 of 1 (latest)

solemn notch
#

Hello ๐Ÿ‘‹
Give me a few to catch up
juggling between a few threads at the moment

south lion
#

Of course, take your time. I have been fighting this for a week now ๐Ÿ™‚

keen kernel
#

Hello, I am taking over for hanzo. Do you have the request id (req_123) from a time you tried to use this parameter?

#

What is the error you are getting when you try to set the item, amount, description, etc?

south lion
#

req_dQmv1IFTlqyRbp is the ID. Let me try the items again.

#

here is another one req_v6MfKbznX3E0Up

#

I tried using parameter_unknown - line_items
Received unknown parameters: line_items, product, product_quantity

keen kernel
#

Thank you. I think I have a good idea on how you need to do this. I am about to test it and will get back to you with what I can find. Will check against your requests as well

south lion
#

ok thank you, much appreciated!

keen kernel
#

So it looks like there is not a line items or lines parameter for the create method for Invoices.

south lion
#

So if I send it blank, it gives me this

#

Ah, missed the second message one sec

#

OK Got the blank invoice!!

#

ok, so then the next step is to call the invoices url with the invoice id at the end of the url, and then I can pass the rest of the info, is what I am understanding?

keen kernel
south lion
#

AH! I am starting to get it. Thanks so much for your help!

keen kernel
#

Exactly what I like to hear!

#

Let me know if you have any further questions on this

south lion
#

Thank you! Working on adding the line item now

#

OK last question, how do I get the url for the invoice programmatically?

#

I guess it's more how do I convert it from draft to live and then grab the link to the invoice

keen kernel
south lion
#

so it's v1/finalize?

#

/v1/invoices/:id/finalize

keen kernel
#

The second one yes

south lion
#

Ok I tried that and got this error

#

with invoice id in the url and no data

keen kernel
#

From that error, it sounds like you also have invoice = in_123 somewhere in the body of that post. It only needs to be in the URL

south lion
#

I added a new step in zapier and ensured there was no other data in the post but it still gives me the same error

keen kernel
#

Can you get me the request ID from that (req_123)?

south lion
#

req_SqSRtHzgVCa6vv

keen kernel
south lion
#

Yeah, it's super weird. I picked up the invoice from the previous step in the url but the data is completely empty