myob-oss / AccountRight_Live_API_.Net_SDK

This is the repo for the MYOB AccountRight Live .Net SDK
MIT License
23 stars 43 forks source link

Adding an attachment to a service bill fails #238

Open AndrasFromTransAxHealthCare opened 1 year ago

AndrasFromTransAxHealthCare commented 1 year ago

Using the following code, adding an attachment to a service bill fails with a 404 not found error.

        BillAttachmentData billAttachmentData = new BillAttachmentData();
        billAttachmentData.OriginalFileName = "test.pdf";
        billAttachmentData.FileBase64Content = Convert.ToBase64String(attachment);

        BillAttachmentWrapper billAttachmentWrapper = new BillAttachmentWrapper();
        billAttachmentWrapper.Attachments = new List<BillAttachmentData>();
        billAttachmentWrapper.Attachments.Add(billAttachmentData);
        BillAttachmentWrapper returnedData = serviceBillAttachmentService.InsertEx(CompanyFile, transaction.UID, billAttachmentWrapper, Credentials);