Expensify.org/hunger SNAP campaign status
We’re no longer accepting new participants as our focus is on reimbursing existing claims. While we’re unable to provide a specific timeline on when your report will be reimbursed, we’re doing our best to drive donations and keep reimbursements moving forward. If you know anyone who can donate to this campaign please encourage them to enable Personal or Corporate Karma on their Expensify account.

Admin Capabilities Within the API

MadsMads Expensify Customer Posts: 9 Expensify Newcomer
edited August 2018 in Integrations and API

I get the following response when I try to load expenses on behalf of employees
I am Admin

{"responseMessage":"Not authorized to authenticate as user [email protected]","responseCode":401}

:s

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
    -d 'requestJobDescription={
        "type":"create",
        "credentials":{
            "partnerUserID": "aa_accounts_company_com",
            "partnerUserSecret": "1234567890987654321abc"
        },
        "inputSettings":{
            "type":"expenses",
            "employeeEmail":"[email protected]",
            "transactionList": [
                {
                    "created": "2018-05-01",
                    "currency": "ZAR",
                    "merchant": "E TRAVEL                NEWLANDS",
                    "amount": 1253,
                    "policyID": "760D782BC0CE2AB0",

                },
                {
                    "created": "2018-05-02",
                    "currency": "ZAR",
                    "merchant": "Name of merchant 2",
                    "amount": 2211,
                    "policyID": "760D782BC0CE2AB0"
                },
                {
                    "created": "2018-05-07",
                    "currency": "ZAR",
                    "merchant": "Name of merchant 3",
                    "amount": 443,
                    "policyID": "760D782BC0CE2AB0"
                    }
                }
            ]
        }
    }'

Best Answer

  • Ted HarrisTed Harris Expensify Success Coach - Admin Posts: 282 Expensify Team
    edited February 2019 Accepted Answer

    Hi @Mads - just checking in here to make sure everything is back on track now that we've hopefully set you up:

    to load expenses on behalf of employees.

    To note: access to the Expense Creator API on behalf of employees requires some set-up from Expensify as we're required to:

    1. Make sure you're set up correctly, (using Domain Control, are a Domain Admin, are a Policy Admin etc...)
    2. Validate you are authorized internally to add data to other accounts on your domain.

    If this is something you need, please reach out to [email protected] (and feel free to reference this Community Post too, so we know where you came from!)

    Once we've verified this, we create a request for our engineering team to allow the access you need. This can typically take 2-3 working days, although it may be faster!

    Once that's completed, we'll reach back out and you should be good to go like @Mads here!

Answers

Sign In or Register to comment.