Calling API to create expense report produces error -

Options
cellebrite
cellebrite Expensify Customer Posts: 2 Expensify Newcomer

I created UserSecret for myself (for test, in prod it will be some integration user in theory),

I am trying to create the expense report, and it works - as long as the employeeEmail is the same one of the partner user ID and secret.

curl -X POST https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations -d "requestJobDescription={"type": "create","credentials": {"partnerUserID": "ABCDE123", "partnerUserSecret": "321EDCBA" },"inputSettings": {"type": "report","policyID": "POLID","report": {"title": "ExpenseReport","fields":{"business_reason":"test123","navan_id":"12345","travel_start_date":"01-06-2022","travel_end_date":"01-07-2022"}},"employeeEmail": "partner_user_id_email@acme.com","expenses": []}}"


if I switch (with the same partner ID and secret) to another email, I get error :

{"responseMessage":"Not authorized to authenticate as user another_email@acme.com","responseCode":401}


is it some setting on the user I am missing ?

can it be done at all ?

Tagged:

Answers