#Is there a way to use the invoicing feature via api?

1 messages · Page 1 of 1 (latest)

sacred vigil
#

Hi,

I’m looking for exactly this feature — it’s actually the main reason I chose Mollie over the many other providers.

I really love this functionality and would like to use the invoicing feature via the API or something similar.
If it’s not available at the moment, is there any alternative way to automate it?

My main goal is simply to create new customers and set up new recurring payments automatically.

Thanks a lot for your time and help!

Best regards,

languid hinge
#

Hi @sacred vigil ! 👋

The Sales Invoices functionality is available through the API - https://docs.mollie.com/reference/create-sales-invoice

And it is possible to have them paid using a customer + mandate id, but there is currently no automated way to generate those yet. It is possible to use a payment link as a first payment (which will lead to a mandate relevant to the payment method the consumer used) as detailed on https://docs.mollie.com/reference/create-payment-link, but at this moment in time that would still require already having created a customer through the Customers API (https://docs.mollie.com/reference/customers-api) and passing the customer id.

We've been looking into allowing an invoice as a first payment pathway as well, as well as recurring schedules using customer and mandate id (for automatic payment), so this is coming, but it's impossible to say when that will be at this point.

If you have any further questions, feel free to ask!

sacred vigil
#

Thank you so much for the fast reply!

I will have a look into the docs again.

cheers!

sacred vigil
#

@languid hinge
When I create a new invoice via the Sales Invoices API, the invoice is created. However, I'm wondering why the invoice is not being sent to the email address I added to the invoice. I tried both 'draft' and 'issued', but the email is only sent when I click 'resend' or 'send' in the dashboard. Am I doing something wrong?

sacred vigil
#

Or Ksenia do you have an idea?

plain summit
#

We don’t tag admins here 😉

sacred vigil
#

Sorry for that,
Mhh okay thanks for that information. So there is no other solution to send the invoice via mollie?

plain summit
#

I pinged Robin for that - give him a moment please, and he will reply to walk you through it

languid hinge
#

rolls into the chat

#

It is possible to create an invoice in status issued and have it sent through e-mail. Let me gather the info for you, @sacred vigil

#

The relevant fields, from https://docs.mollie.com/reference/create-sales-invoice:

So if you create an invoice with status issued or paid, and want it sent to the email set on the recipient, you must pass an emailDetails object as well, with subject and body. If you do so, the email will be sent to the recipient email 🙂

sacred vigil
#

Ah perfekt, maybe I overlooked it in the documentation.
Thank you so much.
Have a good one

languid hinge
#

No problem whatsoever! It's quite a large payload to work with, so feel free to ask if you run into anything 🙂

#

And you have a good one too!

sacred vigil
#

Hey, I have another question. Is there a overview to get the types of all webhook responses?

languid hinge
#

For sales invoices, reference the following page instead -- as we use the next-gen webhooks instead 🙂

https://docs.mollie.com/reference/webhooks-new

The full payload would contain the entire sales invoice as exists at that point in time

Mollie Documentation

🚧This feature is in beta.
We are gradually adding support for more event types to the new architecture.
When integrating the Mollie API, you can stay informed and automatically receive updates about changes to your Mollie account through webhooks.
These changes, known as events, are triggered by sp…