How can you use POSTman for these request that include - --data-urlencode 'template@template.txt'

Jeromy
Jeromy Expensify Customer Posts: 9 Expensify Newcomer

I have an integration that I want to make from Expensify to Mavenlink. I have cURL working but wanted to test via POSTman, since there is a setting at the end of this that includes a file, how can this be accomplished without form-data since urlencode doesn't offer a file option. Any java samples to do this?

--data-urlencode 'template@template.txt'

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
-H 'Expect: ' \
-d 'requestJobDescription={
"type":"file",
"credentials":{
"partnerUserID":"REPLACE",
"partnerUserSecret":"REPLACE"
},
"onReceive":{
"immediateResponse":["returnRandomFileName"]
},
"inputSettings":{
"type":"combinedReportData",
"reportState":"APPROVED,REIMBURSED",
"filters":{
"startDate":"2013-01-01",
"endDate":"2017-10-19",
}
},
"outputSettings":{
"fileExtension":"xlsx",
"fileBasename":"myExport"

    },
    "onFinish":[
        {"actionName":"email","recipients":"jeromy.mcmahon@alchemy.us", "message":"Report is ready."}
    ]
}' \
--data-urlencode 'template@template.txt'

Answers