Creating A Paid Invoice

Hello all,

I’m wondering if anyone can help me create a paid invoice via the API?

Despite following the API documentation for creating an invoice and populating the relevant fields for invoice payment and providing a status of ‘Paid’, the invoice response always sets the invoice to ‘Draft’ with the paid_value as 0.

I have tried finding a solution to this issue in other discussions but I can’t seem to find anything too relevant.

Please can someone let me know if this is possible, if so, how to do so.

Many thanks,

Kai

Checking the API docs, when creating an invoice, it will always be marked as a draft first. It says to use the status transitions to update that - so I just tried that with a test invoice and marking it as “sent”, then trying to update the invoice with the status as “paid”.

I guess the only way to mark it as paid, is for it to be assigned to a bank transaction explanation? A mark_as_paid API call would be good though, especially if it’s not linked to a bank account.

It’s not possible. The Status is read-only. As @deanpcmad suggests, the only way for an Invoice to be deemed paid, is if there’s a corresponding bank transaction explanation that “explains” the invoice as being paid.