#Steven Gauerke - integromat invoice
1 messages · Page 1 of 1 (latest)
Hi 👋
So you are trying to use the API instead of the plugin itself to create an invoice?
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
Okay, I'm assuming you have Stripe customers and Products and/or Prices then.
yes
Okay well here's the API reference doc to start with: https://stripe.com/docs/api/invoices/create
But I recommend using it as a reference. We also have this guide to integrating with the API: https://stripe.com/docs/invoicing/integration
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.
ok so is this appropriate body synta
{
'customer': 'cus_LCXKhOi0cZdBXu',
'automatic_tax': '{"enabled": true}'
}
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.
Can you share a request ID for this failed API call?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_lxu9Or8hbMiCf0
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.
without a POST body?
How are you making the call to the API?
with integromats stripe api....it has a body field or query params we can set up
Well it passed the data as query parameters which will not work. What programming language are you using with your integromats integration?
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.
ok thanks
SO to be clear, you don't use any code in your integration?
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