Setup Guide
You can find your app credentials in the Expensify Integration Server partner portal. See the Expensify Integration Server documentation for details on the API and its authentication.Note: You’ll need to register an OAuth client with Expensify if you don’t already have one.
- Client ID
- Client Secret
- Scopes Requested
Add the Redirect URL to your Expensify app
Paragon provides a redirect URL to send information to your Expensify app. To add the redirect URL to your Expensify app:- Copy the link under “Redirect URL” in your integration settings in Paragon. The Redirect URL is:
- Add the redirect URL from Paragon to the allowed redirect URIs of your Expensify OAuth client.
Add your Expensify app to Paragon
- Select Expensify from the Integrations Catalog.
- Under Integrations > Connected Integrations > Expensify > App Configuration > Configure, fill out your credentials in their respective sections:
- Client ID: Your Expensify OAuth client ID.
- Client Secret: Your Expensify OAuth client secret.
- Permissions: The
integrations:apiscope is required to connect an account.
Connecting to Expensify
Once your users have connected their Expensify account, you can use the Paragon SDK to access the Expensify Integration Server API on behalf of connected users. The Integration Server takes each job as a form-encodedrequestJobDescription field instead of a REST path. Paragon adds the connected user’s access token to the job’s credentials and keeps the body form-encoded, so you only need to send the job itself.
Any Expensify Integration Server jobs can be sent with the Paragon SDK as shown in this example.
JavaScript
Building Expensify workflows
Once your Expensify account is connected, you can add steps to perform the following actions:- Expenses: Create Expense
- Expense reports: Create Expense Report, Get Expense Report, Search Expense Reports, Update Report Status
- Transactions: Search Transactions
- Policies: Get Policy, Search Policies
- Exports: Download Export
{{ to invoke the variable menu.
Using triggers
Expensify has no webhooks, so Expensify triggers poll your users’ Expensify account for changes. You can use the following polling triggers:- Expense Report Updated: Runs when an expense report is created or changes status. You can filter by report status and policy ID.
- Transaction Synced: Runs when a card transaction is created or updated. Requires the Expensify domain the connected user administers, and can filter by card feed and transaction type (All or Unreported).