"Distance" expense creation

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
-
I am also interested in this, but I have not tried it myself.
-
Sheena Trepanier Expensify Team, Approved! Accountant, Expensify Student Ambassador Posts: 1,362 Expensify Team
@renzogiust, hmmm, this one is new for me. Also, so sorry we missed this post earlier in the month. I took a look at mileage expenses in your account and it looks like you may have removed the ones that were created without the car symbol.
If you create a new expense via the API that doesn't have the symbol, can you let me know so I can document it and escalate this behavior? Thanks!
-
@Sheena Trepanier hi, I've just created a new expense via API, and doesn't have the simbol. It's the one with date 2019-10-23.
Thanks
-
Thanks a bunch, @renzogiust! I've passed this along to our engineering team so that they can help troubleshoot. I'll keep you posted once I have more information.
If you don't mind, please keep that test expense in your account while we investigate.
-
Is there any update on this or a workaround for creating a mileaged based expense via API?