User account creation in Expensify

Priya2021
Priya2021 Expensify Customer Posts: 7 Expensify Newcomer
edited August 2021 in Integrations and API

Hi,

I have been trying to create user account in expensify using postman but i am not sure how to provide the employee details for user account creation. I am getting the error - "message": "Employee data not found",


Best Answer

  • Kadie Alexander
    Kadie Alexander Expensify Success Coach - Admin, Expensify Team Posts: 113 Expensify Team
    Answer ✓

    Ah! Thank you for clarifying this. There are three ways to pass the employee data via JSON:

    • Directly as a parameter of the request (using the parameter data)
    • In a JSON file hosted on a URL that Expensify will load the data from (using Basic Authentication)
    • In a JSON file hosted on a SFTP server, that Expensify will load the data from

    It's up to you! The only requirement is that the Employee information must be formatted the following way:

    {
        "Employees": [
            {
                "employeeEmail": "employee@domain.com",
                "managerEmail": "manager@domain.com",
                "policyID": "0123456789ABCDEF"
            },
            {
                "employeeEmail": "manager@domain.com",
                "managerEmail": "ceo@domain.com",
                "policyID": "0123456789ABCDEF"
            }
        ]
    }
    

    Let me know how you get on with this!

Answers