GoCardless Invoicing via API

Hi,

I can see in the documentation that you can take a payment via GoCardless using the API

Take Payment using GoCardless Direct Debit Mandate

POST https://api.freeagent.com/v2/invoices/:id/direct_debit

Only available for invoices which fit the following criteria:

  • The invoice must be sent

  • The invoice must have gocardless_preauth available and enabled as a payment method

  • The invoice must not have already had a payment taken for it

My question is that in the GUI, you are able to set the DD to come out on the Invoice Date, or the Payment Due date - how do you achieve this through the API? I cannot really see any options for this?

Thanks,
Steve.

Dear Steve,

Configuring the Direct Debit payment date behaviour for invoices and recurring invoices isn’t yet supported via the FreeAgent API I’m afraid.

I can totally see why this would be a useful thing to be able to do, so I will raise this with the appropriate engineering team.

Kind regards,
Josh
Engineer at FreeAgent

Hi Steve,

Thanks for your question, as my colleague Josh has confirmed, this is not a feature that is currently available. We have added this to our feature request backlog but unfortunately at this time I cannot confirm if this will get picked up nor any timelines associated with it at present.

Thanks,

Dougie

Product Manager at FreeAgent