How to get Invoice link from API

Hello!

Is there a way to receive an Invoice payment link after I create it via API? As payment method I use Stripe, and in final invoice pdf I have payment link. But I couldn’t find a way to get that link via API.

Hi there Maxim - I’m Matt, an engineer at FreeAgent. Sorry for the delay getting back to you!

The response to the create endpoint should contain a payment_url linking to Stripe if you have it set up. We don’t include this parameter in the response if the invoice has not yet been marked as sent - maybe that could be your issue?

If you’ve already created the invoice, you can get the same response from the show endpoint (/v2/invoices/:id, where :id is the id of your created invoice).

Thanks Matt, that actually helped!

1 Like