Can someone steer me in the right direction with this API call? I seem to be very close when I paste all of the below into the JSON body; however, I’m getting an error that says “Cannot find files. Please submit files in a form-data collection with "json" and "csv" keys” …
Which leads me to believe that body-type needs to be “form-data” instead of “JSON”, so that I can send the necessary files along with this, but I don’t know how to accommodate for the nested sub-fields under “ReturnAddress” for example.
Any assistance / insight would be greatly appreciated!!
{
“RequestID”: “db9e372d-38ff-4a7f-8e6a-4bd26c210cce”,
“LineItemID”: {
“ID”: “108”,
“Envelope”: {
“TemplateCode”: “Template1”,
“envelope_id”: “8V2RQKJG008T”,
“envelope_size”: “15”,
“envelope_color”: “#000000”,
“width”: 500,
“height”: 300,
“line_spacing”: “1”,
“line_spacing_variance”: “1”,
“word_spacing_variance”: “1”,
“random_seed”: “1”
},
“ReturnAddress”: {
“FirstName”: “John”,
“LastName”: “Doe”,
“MiddleName”: “”,
“Company”: “FakeCorp”,
“StreetAddress1”: “99 Fake Ln”,
“StreetAddress2”: “Suite 205”,
“City”: “New York”,
“StateOrProvince”: “NY”,
“PostalOrZipCode”: “06611”,
“Country”: “USA”
},
“RecipientFile”: “RecipientList.csv”,
“TextVariables”: [{
“BodyText01”: “We hope you had a great experience and see you again soon!”
}],
“HWTextVariables”: [{
“FrontHandWriting”: “We hope you had a great experience and see you again soon!”
}],
“ImageVariables”: [{
“Logo01”: “Image002.PDF”
}]
}
}