I am trying to attach a pdf file with a bill using api, It’s working fine without attachment.
My attachment object is as below. I am using C#.
faAttachment attachment = new faAttachment();
attachment.url = “https://api.freeagent.com/v2/attachments”;
attachment.content_src = “D:\114471598187481919.PDF”;
attachment.content_type = “application/pdf”;
attachment.file_name = “11.PDF”;
It shows me error message which is “Invalid attachment data”.
Please help me regarding the same as soon as possible.