Expensify.org is accepting proposals for new campaigns. Submit yours here by April 30th to receive up to $100,000 in funding for campaigns dismantling injustice related to: Climate, Homes, Hunger, Reentry, or Youth.

"Distance" expense creation

renzogiustrenzogiust Expensify Customer Posts: 2 Expensify Newcomer

Hi,

I need to create a "distance" expense via API. Using the documentation I've been able to create the expense, setting the right category, but when I see it then in the browsers, I don't see the "car" icon in the left as the ones manually created. It seems that it's correctly created, but actually not a real "distance" expense.

This is the request:

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \

  -d 'requestJobDescription={

    "type":"create",

    "credentials":{

      "partnerUserID":"xx",

      "partnerUserSecret":"xx"

    },

    "inputSettings":{

      "type":"expenses",

      "employeeEmail":"[email protected]",

      "transactionList": [

        {

          "created": "2019-09-18",

          "currency": "EUR",

          "category": "Rimborso chilometrico",

          "merchant": "72 km @ €0.42 / km",

          "amount": 3024,

          "reportID": 473712323,

          "comment": "Trasferta a Treviso",

          "policyID": "4D720124AA135A",

          "reimbursable": True

        }

      ]

    }

  }'

Am I setting some wrong params?

Comments

Sign In or Register to comment.