Error from duplicated Invoice Reference

Hi

After trying to create an invoice using the POST to “invoices” route with a duplicated reference, the API error response is this:

{“errors”:[{“message”:“reference has already been used”}]}

This error message would be much more useful if it included the reference which was duplicated. For example:

{“errors”:[{“message”:“reference NV111 has already been used”}]}

With many invoices being created, our logs would be much more helpful with this small change :+1: Many thanks

Hi Timothy,

Thanks very much for suggesting this! I agree, I think a more specific message including the reference would help a lot. I’ve written this up for consideration.

Thanks for taking the time to raise it :grinning_face:

Carly
Support Engineer- FreeAgent

1 Like