/// <summary> /// An add example for account documents /// </summary> public DocumentsModel AddAccountDocument(string orgCode, string type, string fileName, string documentData, string text, string accountCode) { //Note that sequence number isn't set for POST operations. Ungerboeck will assign the sequence number automatically. var myDocument = new DocumentsModel { Organization = orgCode, Type = type, //The file extension must be mapped to one of the recognized Ungerboeck document types. Use USISDKConstants.DocumentTypeCodes to get the list of type codes. NewFileName = fileName, NewDocumentData = documentData, //Files must be in the form of a byte array converted to a base 64 encoded string. The APIUtil class contains conversion functions to help you: APIUtil.GetEncodedStringForDocuments(FileBytes) Description = text, //This will be the Ungerboeck description for the file Account = accountCode, }; return(APIUtil.AddDocument(USISDKClient, myDocument)); }