API Report Exporter Returns "No Template Submitted"

RaeRae Posts: 5 Expensify Newcomer

I've copied the following curl request directly from the API documentation and imported it into Postman. The only parameter changes I made were to the partnerUserID, partnerUserSecret, startDate, endDate, and recipients. It returns {"responseMessage":"No Template Submitted","responseCode":410}. Can I not use the default template like I can for the Reconciliation file?

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
-d 'requestJobDescription={
"type":"file",
"credentials":{
"partnerUserID":"userId",
"partnerUserSecret":"userSecret"
},
"onReceive":{
"immediateResponse":["returnRandomFileName"]
},
"inputSettings":{
"type":"combinedReportData",
"reportState":"APPROVED,REIMBURSED",
"limit":"10",
"filters":{
"startDate":"2018-08-01",
"endDate":"2018-08-20",
"markedAsExported":"Expensify Export"
}
},
"outputSettings":{
"fileExtension":"xlsx",
"fileBasename":"myExport"
},
"onFinish":[
{"actionName":"markAsExported","label":"Expensify Export"},
{"actionName":"email","recipients":"[email protected]", "message":"Report is ready."}
]
}'
--data-urlencode '[email protected]_template.ftl'

Best Answer

Answers

Sign In or Register to comment.