#Steven Gauerke - integromat invoice

1 messages · Page 1 of 1 (latest)

pulsar summit
#

Hi 👋
So you are trying to use the API instead of the plugin itself to create an invoice?

dapper compass
#

yes. Because the plugin apparently sends automatic_tax to false but does not give an option for us to enable that

#

So we wrote integromat and they said to use the API

pulsar summit
#

Okay, I'm assuming you have Stripe customers and Products and/or Prices then.

dapper compass
#

yes

pulsar summit
#

In your case, the first parts about Create a product/price/customer would simply be Get a product/price/customer. Or if you have the IDs stored locally you can use those directly without the additional API calls.

dapper compass
#

ok so is this appropriate body synta

#

{
'customer': 'cus_LCXKhOi0cZdBXu',
'automatic_tax': '{"enabled": true}'
}

pulsar summit
#

Yeah pretty much here's my example:

{
  'customer': 'cus_XXXXXX',
  'price': 'price_XXXXXXXXX',
  'automatic_tax': {'enabled': True}
}

This is Python, so the True is capitalized.

dapper compass
#

ok so im getting back invalid param automatic_tax

#

invalid object

#

sorry

pulsar summit
dapper compass
#

req_lxu9Or8hbMiCf0

pulsar summit
#

Thank you

#

This request was made without an POST body. Also it was in Live mode. I would highly recommend you use your test API key while trying to figure this out.

dapper compass
#

without a POST body?

pulsar summit
#

How are you making the call to the API?

dapper compass
#

with integromats stripe api....it has a body field or query params we can set up

pulsar summit
#

Well it passed the data as query parameters which will not work. What programming language are you using with your integromats integration?

dapper compass
#

thats what they give us and we put the json object in there

pulsar summit
#

Ah, unfortunately I cannot really help with that. It's not software we control. I can tell you that the request you just made passed in the parameters as a query string and not form-encoded data.

dapper compass
#

ok thanks

pulsar summit
#

SO to be clear, you don't use any code in your integration?

dapper compass
#

no.

#

Integromat is like Zapier

pulsar summit
#

Okay then that does restrict what help I can offer. This Discord server is designed to help developers integrate the Stripe API. You should try reaching out to Support as they have more information about a wider range of topics and may be able to help you.
https://support.stripe.com/contact/email