How do I GET an expense(s) using API export?

Options
alex_brex
alex_brex Expensify Customer Posts: 1 Expensify Newcomer
edited March 2020 in Integrations and API

The API provides a clearly documented way to create expenses: https://integrations.expensify.com/Integration-Server/doc/#expense-creator

Is there an equivalent API for getting expenses? In particular, I'd love to GET the/all expense(s) that have a given externalID I used when creating the expense.

If the API were consistent GETing information about policyList's, I would expect this to look something like:

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
    -d 'requestJobDescription={
        "type":"get",
        "credentials":{
            "partnerUserID": "_REPLACE_",
            "partnerUserSecret": "_REPLACE_"
        },
        "inputSettings":{
            "type":"expenseList",
            "externalID":"my_id_123"
        }
    }'

Answers