{"responseMessage":"Invalid or missing type parameter.","responseCode":402}

GetawayHouse Expensify Customer Posts: 7
edited August 2019 in Integrations and API

Hello folks at Expensify!

I'm trying to use https://integrations.expensify.com/Integration-Server/doc/#reconciliation with ruby but I get an error.

{"responseMessage":"Invalid or missing type parameter.","responseCode":402}

Interesting fact is: If I change the credentials to something invalid I get a Authentication error, so the request format is probably right. (Code below)

Otherwise If I try with curl, I get a

{"responseMessage":"401 Unauthorized","responseCode":401}

Am I missing something? Do I need to create a specific policy?

Bellow is the relevant code (in ruby)

# Code in ruby

 def fetch_api_data

    response = HTTParty.post("https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations", body: api_job_description)


 def api_job_description

  json = {

   type: 'reconciliation',

   credentials: {




   onReceive: {

    immediateResponse: ["returnRandomFileName"]


   inputSettings: {

    startDate: '2019-08-01',

    endDate: '2019-08-02',

    domain: 'getaway.house',

    type: 'all',

    async: false


   outputSettings: {

    fileExtension: 'csv'






Below is curl (without credentials, but I double checked the credentials when testing)

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' -d 'requestJobDescription={ "type":"reconciliation", "credentials":{ "partnerUserID":"not_telling_you", "partnerUserSecret":"not_telling_you_either" }, "inputSettings":{ "startDate":"2019-08-01", "endDate":"2019-08-02", "domain":"getaway.house", "type":"all", "async": false }, "outputSettings":{ "fileExtension":"csv" } }'


Last question: The API asks for a "domain" parameters. I don't know what is it


Also in https://integrations.expensify.com/Integration-Server/doc/#introduction the link to "community forum" is broken. It links to "https://community.expensify.com/categories/expensify-api-" leading to a 404.