Recurring invoices via the API


#1

Seem to be getting strange behavior and incorrect data returned with the recurring_invoices API,

  • When getting a list of recurring_invoices, the reference returned is of the base or latest invoice and not the 3 digit recurring invoice reference.shown on the FreeAgent site.
  • The documented ‘List all recurring invoices related to a contact’ example returns all recurring invoices, it seems to be ignoring this filter.

Work around for the second issue is to get all recurring invoices and filtering them after the API call, but there doesn’t seem to be a way to get the recurring invoice reference?


#2

Hi karolo,

Thanks for flagging this. We have now deployed two changes:

  • A profile_id attribute on the recurring invoice which will give you the same value as the “Profile ID” displayed inside FreeAgent;
  • Fixed the contact filtering to work as described in our API documentation

Please do let us know if you have any more issues.

Thanks,
Ioan


#3

Hi Ioan,

Thank you for looking into this and fixing both issues. Can confirm they both work great.

Thanks again


#4

Dear Friends,

Is there any API for the Recurring Invoice for the following.

1.Update the Recurring Invoice State to ACTIVE or Draft ?
2.Update the Line Item qty for a Recurring Invoice ?

Regards
Nirmal