Hi all,
We’re currently beta testing a new API feature which allows online payment methods to be specified and managed for invoices.
Companies with this feature enabled will be able to pass and read a payment_methods
hash on their invoices.
e.g.
{
"invoice": {
"url": "https://api.freeagent.com/v2/invoices/1234",
"payment_url": "https://payments.freeagent.com/p/aaaabbbbccccdddd",
...
"payment_methods": {
"gocardless_preauth": false,
"gocardless": true,
"paypal": false,
"paypal_here": false
}
}
}
All payment methods supported by the FreeAgent app are available, but their status will be reported by the API only if the integration is enabled for the company. In the example above, stripe
is not being included in the response as the company doesn’t use it.
The payment methods available are:
paypal
paypal_here
gocardless
-
gocardless_preauth
(“direct debit” style mandate) stripe
dwolla
If anyone is interested in joining the beta users group, please DM me with the details of the company you wish the feature to be enabled for (not your integration I’m afraid - it is only possible to enable this on a per-company basis), and I will begin the process for adding them to the trial.
As with any beta the implementation may be subject to change, so if you are running mission-critical production integrations then this may not be a good thing to trial, however we are keen to see this tested to ensure it meets our users’ needs before we finalise the API requests and publish the documentation.
If anyone has any questions, feel free to respond to this post and we’ll do what we can to help.
Cheers,
Paul.