#avinash.vaishya

1 messages · Page 1 of 1 (latest)

long sonnetBOT
quick mesa
#

@orchid crag are you able to help? I can share my request body. Or you can share the request body that works for you?

orchid crag
#

I'm looking - give me a minute please

#

You appear to be sending no request body

#

How are you producing this request?

#

I see postman is used, what kind of body did you set?

#

copied from the logs of my developer account on stripe

#

What does that mean?

#

Note you must use form-encoding, not json body data

quick mesa
#

I used json

quick mesa
# orchid crag What does that mean?

I created an invoice and saw the logs which gives the log for API used for creation. I tried this as I was not able to create an invoice with lines directly

orchid crag
#

No, that's not a single reuqest you can make

#

You need to create and invoice and items separately, see docs here:

quick mesa
#

I think I get my mistake, I was doing JSON bosy

#

body

#

So there is no way to send the invoice header and line together?

orchid crag
#

Nope, you need to make separate requests

#

create invoice, then create one or more invoice items for it

quick mesa
#

Thanks.