Reputation: 1797
I am interested to have a invoice link/pdf from the api which returns the invoice using new freshbooks api endpoint https://api.freshbooks.com/accounting/account/<accountid>/invoices/<invoiceid>
Even including direct_links
I am unable to get the link to the invoice. With direct_links
it returns json with fields id
, contactid
, created_date
, type
, userid
, objectid
, token
.
Upvotes: 1
Views: 405
Reputation: 9676
I currently work at FreshBooks.
Unfortunately these direct link tokens will only work with old FreshBooks, which isn't mentioned in the documentation -- I'll see if we can fix that.
Poking through, it doesn't look like we've has exposed a way to access a PDF version of the invoice through the public API just yet. But I'll pass that on to the appropriate channels and I'll update this answer if that changes.
Upvotes: 1