We do not specify the next invoice date at the moment in the response,
however you could look at the dated_on, recurring_status and frequency
attributes and derive the next date from those. For example you could look
at how many days have passed since dated_on and then figure out when or if
it’s due to recur. Alternatively, once you have a list of invoices
associated with the recurring profile fetched, you could get the date of
the latest associated invoice and then just add a week, 2 weeks, etc. to
their date depending on the frequency.
To get the invoices associated with a recurring profile is a bit clunky at
the moment: you have to fetch the invoice list and, for each invoice, check
if they have a “recurring_invoice” attribute, which will contain the URL
for the associated recurring profile.
Hopefully that helps?
Regards,
IoanOn Tuesday, 2 July 2013 13:55:20 UTC+1, Silverchip UK wrote:
Anyone?
On Tuesday, 18 June 2013 12:39:54 UTC+1, Silverchip UK wrote:
Hey,
2 questions regarding the Recurring Invoices:
Is there a way to get the next invoice date for a Recurring Invoice?
Is there a way to get all invoices associated with a Recurring Profile?