Are you receiving SNAP/EBT benefits? The Expensify.org/SNAP-VAX campaign is live and accepting new members. Learn more about receiving $50 for submitting a SNAP receipt and $50 for getting your COVID-19 vaccine here and join today!

User account creation in Expensify

Priya2021
Priya2021 Expensify Customer Posts: 7 Expensify Newcomer
edited August 4 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: 105 Expensify Team
    Accepted 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": "[email protected]",
                "managerEmail": "[email protected]",
                "policyID": "0123456789ABCDEF"
            },
            {
                "employeeEmail": "[email protected]",
                "managerEmail": "[email protected]",
                "policyID": "0123456789ABCDEF"
            }
        ]
    }
    

    Let me know how you get on with this!

Answers