Getting started and access
What Pleo is, the quickstarts, Staging and Production access, and connecting a pre-built integration.
Choosing authentication
Which authentication method fits, and what OAuth 2.0 and Integrated API Keys require.
Requests, scopes and rate limits
Base URLs, headers, scopes, rate limits, multi-entity access and the integration design principles.
OAuth 2.0: Setup and flow
Registering a client, the authorisation flow, and the Postman and manual workflows.
OAuth 2.0: Tokens and sessions
Token lifetimes, refresh, storage, expiry and revocation, and session handover.
API keys
Creating and using Standalone API Keys, and the install flow and security for Integrated API Keys.
Exports and bookkeeping concepts
Export lifecycle, bookkeeping methods, mapping, attachments and accounting periods.
Imports and vendors concepts
Tags, tax and vendor sync, vendor creation, and Supplier versus Vendor.
People and roles
Employee roles, adding employees and assigning user roles.
Glossary
Generic terms, expense types and export terms.
Legacy APIs
Legacy and new APIs, and why legacy API tokens do not work on the new API.
Getting started and access
How does a Pleo Partner get access to Staging?
Submit the Pleo Partner API Access Request form. This registers a request and does not guarantee access. Pleo reviews it, and if it is approved you complete the Developer Partner Registration form. Pleo then creates a Staging company with dummy data and sends your Staging login and your OAuth 2.0 Client ID and Client Secret through 1Password. Retrieve them within 7 days and log in at
https://app.staging.pleo.io/login to check access. You do not need a working integration first, because Pleo can register a placeholder OAuth client. If you are not approved, Standalone API Keys are the alternative. See How to Get Access to Staging (OAuth 2.0).Can I use a Standalone API Key, and how do I get one?
Standalone API Keys are not enabled by default. Ask your Customer Success Manager or Pleo Support to enable them. You then create the key in the Pleo Web App as an Admin or Bookkeeper. Copy the key when it is shown, because you cannot view it again after you close the dialog. They suit API exploration, internal tooling and approved single-company integrations. Multi-customer integrations should use OAuth 2.0. See Standalone API Keys Overview.
Does Pleo replace the general ledger?
No. Pleo does not replace your general ledger, reporting or tax engines. It prepares expense data before bookkeeping, so that only complete and accounting ready records reach your general ledger. See What is Pleo.
What are the steps of the lifecycle of an accounting integration?
Onboard to Staging, integrate your ERP or AS, synchronise master data, capture and approve expenses, export the data, and monitor jobs. The last step is to promote your integration from Staging to Production. See Platform Overview.
Does registering for the Early Access Programme guarantee access?
No. Registering your interest is a request, not a guarantee of access. Pleo’s partnerships team reviews each request. It moves your integration forward only if it meets the programme’s requirements. See Pleo Partners: API Quickstart.
What must I do to request Production access?
Complete integration testing in Staging. Confirm that your integration meets Pleo’s technical and security requirements. Go through the review and approval steps in the EAP. After approval, Pleo provides Production credentials and environment details. See Environments.
Which quickstart should I use if the integration serves multiple customers?
Use the Pleo Partners Quickstart instead. This quickstart is for individual customers who connect their own company’s systems to Pleo. See Pleo Customers: API Quickstart.
Where in the Pleo Web App do I connect a pre built ERP or accounting system?
In the Pleo Web App, go to Settings, then select Accounting from the menu. Search for the ERP or accounting system, click it, and then click Connect. See How To Connect Pleo to a Pre-Built ERP or Accounting System.
Choosing authentication
Which authentication approach should an app serving multiple separate Pleo customers use instead of a single shared credential?
OAuth 2.0, required by default for all EAP-registered partner integrations. Integrated API Keys are allowed only as an approved exception when the partner’s ERP/system cannot support OAuth 2.0. See the Early Access Programme (EAP) for eligibility and registration details.
Can a multi-customer integration use Standalone API Keys instead of OAuth 2.0?
Only as a temporary fallback, not the required model. If an integration is not yet approved as a Pleo Partner through the EAP and has a small number of small clients, it can use Standalone API Keys in the meantime, managed carefully per customer. Once the partner’s clientele grows, they should re-register through the EAP and move to OAuth 2.0. See Integration Design for Standalone API Keys for how to manage this per-customer.
Is OAuth 2.0 required for technology partners?
Yes. OAuth 2.0 is the required default authentication method for technology partners in the Early Access Program. It is also the recommended method for most Pleo integrations. See OAuth 2.0 Overview.
What must an integration support when a customer rotates or recreates a key?
The integration must support key updates, re-validation and rotation per customer installation. It should also store multiple keys, one per customer installation. See Integrated API Keys Overview.
Requests, scopes and rate limits
Which base URL do I call, staging or production?
The External API base URL is
https://external.staging.pleo.io for Staging and https://external.pleo.io for Production. The final request URL is the base URL plus the endpoint path, for example https://external.pleo.io/v2/employees. The legacy API uses a different host, openapi.pleo.io. See API Base URLs.How do I send the credentials with each request?
With OAuth 2.0, send
Authorization: Bearer <access_token>. With a Standalone API Key, use Basic HTTP authentication: the API key is the username and the password is empty, and the credentials are Base64 encoded for you. Every method works with the same External API base URLs. OAuth 2.0 is required for partner integrations. Integrated API Keys are an approved exception only. Standalone API Keys are available on request for single-company use. See API Base URLs.What is the rate limit, and what should I do on a 429?
All Pleo APIs allow 600 requests per minute unless the API Reference says otherwise. The limit is one shared budget per credential: every endpoint and HTTP method counts together. On a
429, wait at least the Retry-After time if the header is present. If it is absent, back off exponentially, for example from 1 second, doubling up to a cap. Retry only the item that failed instead of aborting a whole batch, unless the 429 responses are sustained. Never re-run a step with side effects that you cannot safely repeat. See API Base URLs.Which scopes do I need, and what happens if one is missing?
Scopes use the format
resource:permission, for example export-jobs:read, export-jobs:write and users:read. Each API lists its own scopes in the API Reference, and the API Scopes page links to each list. You request scopes when you register your application and again during authorisation, so ask for every scope your integration needs. If an access token lacks the required scope, the API rejects the request. See API Scopes.How should I run exports and retries for a multi-entity organisation?
Treat each
company_id as a separate integration instance. Store credentials per company. Run exports, retries and error handling per company. See Multi-Entity & API Scope.What should integrations do about API rate limits?
Design the integration to avoid exceeding the API rate limits of Pleo and target systems. Take batch processing, retries and automated synchronisation into account. See Integration Principles.
What must the user be able to do when connecting their Pleo account?
The user must be able to select the appropriate company from their accounting system. This makes sure the right Pleo entity is linked to the right company. See Multi-Entity Overview.
OAuth 2.0: Setup and flow
What is the difference between an integration, application, and OAuth 2.0 client?
These terms describe different parts of how OAuth 2.0 works in the Pleo platform.The difference between an integration, application, and OAuth 2.0 client is explained in the OAuth 2.0 Concepts and Terminology section.
What does Pleo send back to the application after the user authorises?
Pleo redirects the user back to your application with a code. Your integration exchanges this code for an access token. It then includes the access token in API requests to call Pleo APIs. See OAuth 2.0 Overview.
Which rules apply to redirect URIs for an OAuth 2.0 client?
Use HTTPS in production. HTTP is allowed only for localhost during development. URIs must match exactly. Aliases and wildcards are not supported. See OAuth 2.0 Client Registration.
Why should I use an OAuth 2.0 library instead of building the flow myself?
Implementing OAuth 2.0 manually is complex and error-prone. A mature library reduces the risk of implementation errors and security vulnerabilities. See OAuth 2.0 Libraries and Standards.
What must be in place before OAuth credentials can be issued?
Staging access is required first. Access is granted during partner onboarding, which includes registering your integration intent through the Early Access Programme. See OAuth 2.0 Access to Staging Workflow Guide.
Does registering an OAuth 2.0 client publish a Marketplace app?
No. Registering a client creates authentication credentials only: a Client ID and a Client Secret. It does not create or publish a Marketplace app. See OAuth 2.0 Setup Workflow Guide (Manual Token Lifecycle).
Is Postman suitable for a production integration?
No. Partners building multi customer integrations must implement OAuth 2.0 themselves. They may use Postman for initial testing only. For production, follow the OAuth 2.0 Setup Workflow Guide for the manual token lifecycle. See OAuth 2.0 Setup with Postman.
How does Pleo deliver Staging and OAuth 2.0 credentials?
Pleo provides your Staging login credentials and your OAuth 2.0 Client ID and Client Secret securely via 1Password. Pleo also creates a Staging company with dummy data. See How to Get Access to Staging (OAuth 2.0).
Where must the Client Secret be stored, and how does Pleo send it?
Pleo shares the Client ID and Client Secret securely through 1Password. Store the Client Secret on a server only. Never embed it in frontend code or distribute it. Pleo does not support storing secrets on client devices. See How to Register an OAuth 2.0 Client.
Why must the state value be unique for every authorisation request?
A unique
state value protects against CSRF attacks. Generate a new one for each request. Pleo returns the original state value unchanged in the redirect response. See How to Direct Users to the Authorisation Endpoint.What does a successful token response contain, and what must the backend track?
It contains
access_token, refresh_token, expires_in, token_type and scope. Track expires_in for each access token. Schedule refresh operations before the access token expires. See How to Handle Redirects and Exchange an Authorisation Code.What should an integration do after an authentication error?
Do not retry the same request blindly. Check the common causes: an expired token, an invalid or revoked token, or insufficient scopes. Then decide whether to refresh the token or restart the authorisation flow. See How to Call Pleo APIs Using an Access Token.
What commonly causes authorisation failures after registration?
Incorrect redirect URIs or missing scopes commonly cause authorisation failures. Verify all URLs and API scopes before you submit the form. The example registration uses the scopes
users:read and users:write. See How to Register an OAuth 2.0 Client (Postman).Which Postman toggle keeps the access token valid after it expires?
Enable the toggle called Auto refresh Token. Postman can then obtain new access tokens automatically when the existing tokens expire. See How to Configure Postman for OAuth 2.0.
Where do you find the Staging and Production URL for an endpoint?
Each API endpoint has both a Staging and a Production URL. You can find them in the Pleo API Reference. See How to Make an API Call (Postman).
OAuth 2.0: Tokens and sessions
How long do OAuth tokens last, and how do I refresh them?
Access tokens are short-lived, and the lifetime is in the
expires_in field of the token response, so refresh before it ends. Refresh tokens have no fixed lifetime but are valid for at least 60 days, and may expire or be revoked earlier. Each refresh returns a new access token and a new refresh token. Discard the old pair and keep only the latest. If you use an expired refresh token, all active refresh tokens for that authorisation are invalidated. Do not parse tokens, because they are opaque. See Tokens Overview.Is the session handover token an access token?
No. The session handover token only proves that the user is authorised to manage the integration, so you can start a local session for them without your own login screen. Do not use it to call the Pleo API. For API access you still need OAuth 2.0. Treat nothing in the token as trusted until you have verified its signature and claims. See Session Handover.
Can I cache an introspection result?
No. Introspection reflects current server state. A token may become inactive at any time because of revocation, expiry or security events. See Access Token Introspection.
What happens to old tokens when a refresh token is used?
Pleo issues a new access token and a new refresh token. All previous tokens are immediately invalidated. Refreshing from several places can therefore break tokens still in use elsewhere. See Centralised Token Refresh.
Where should backend applications store tokens?
Store them in encrypted databases or secure vaults, and apply strict access controls to that storage. Also rotate encryption keys and credentials periodically, and encrypt tokens at rest. See Secure Token Storage.
How do I keep the user’s context when they reauthenticate?
Start a new OAuth 2.0 authorisation flow. Use the
state parameter to remember the post-login destination. The user grants consent again, which generates a new access and refresh token pair. See Handling Refresh Token Expiry or Revocation.Should you retry a refresh token request that fails?
Not when the refresh token is invalid, expired or revoked. Retrying cannot fix that, so stop and start the authorisation flow again. Transient failures, such as network timeouts or temporary service unavailability, are different: retry with exponential backoff, and never retry indefinitely. See How to Handle Token Expiry or Revocation and Centralised Token Refresh.
API keys
What should you do first if a key may be exposed?
Immediately revoke or replace the key. Then notify relevant teams and users, confirm the integration is reconnected with a valid key, and audit logs for unauthorized requests. See Security and Credential Management for Standalone API Keys.
How do you rotate a Standalone API Key?
Generate a replacement key in the Pleo Web App if allowed. Update the key securely in your integration, revalidate connectivity, and remove the previous key from your systems. See Security and Credential Management for Standalone API Keys.
What is the development workflow for an integration that uses Integrated API Keys?
Onboard with Pleo and confirm eligibility first. Then build a secure connect screen with key input, validate the key with a test call for each customer, and support reconnect and rotation per customer. Health checks are optional. See Integration Design for Integrated API Keys.
How many steps are in the installation flow, and how does it end?
There are 9 steps. The customer provides the key in the integration, and the integration validates the connection. Successful activation then redirects the user back to Pleo. See Integrated API Key Customer Installation Flow.
Where do I create a Standalone API Key in the Pleo Web App?
Log in to the Staging or Production Pleo Web App, click Settings, scroll down and click API Keys, then click Create API Key. Enter a Name, choose an Expiration and tick the Permissions. See How to Generate Standalone API Keys.
Where do I get the Company ID for the second request?
Extract the
companyId from the response of the first example, the list of employees. Then replace the placeholder in the second cURL template. See How to Make an API Call Using a Standalone API Key.How do I set up Authorization for a Standalone API Key in Postman?
Open the Authorization tab and select Basic Auth as the Auth Type. Enter your Standalone API Key as the Username and leave the Password field blank. See How to Make an API Call Using a Standalone API Key (Postman).
Exports and bookkeeping concepts
Can I set up Tags, Categories and Tax Codes without a custom sync?
Yes. All three can be set up manually in the Pleo Web App if you do not need a custom sync. Pleo help centre articles explain each setup. See Classifying Expenses: Tags, Categories, and Tax Codes.
What final statuses can an Export Job get?
Completed means all Export Items succeeded. Completed with Errors means some items failed. Failed means all items failed. The status is set once all items are processed. See Export Lifecycle.
When is Accounts Payable required instead of Journal Entry?
Accounts Payable is required if the Accounting System expects invoices and payment tracking, or if detailed vendor reconciliation is needed. Journal Entry is simpler when separate vendor tracking is not required. See Bookkeeping Methods Overview.
What must be true about debits and credits in a journal entry?
The total value of debits must always equal the total value of credits. Every transaction affects at least two accounts, with one or more debit entries and one or more credit entries. See Journal Entry Bookkeeping.
Are invoice and payment entries recorded at the same time?
Not always. Invoice and payment entries may be recorded independently and at different times. This still allows accurate reconciliation of vendor invoices and payments. See Accounts Payable Bookkeeping.
When in the export does accounts mapping happen?
It happens during per item processing. It runs after export validation and bookkeeping method resolution, and before accounting period assignment, posting behaviour application and export item completion. See Accounts Mapping.
Why must the unique expense identifier be on the accounting entry?
The Reconciliation ID must be recorded on the matching accounting entry. This enables reliable reconciliation between Pleo and the Accounting System. It also lets users trace exported entries back to the originating expense. See Data Mapping.
How long are attachment download URLs valid?
Download URLs only work for a limited time, so retrieve them promptly. The integration is responsible for downloading and storing the attachments in the destination system. See Attachments.
Which field must the integration use to find the accounting period?
Use the transaction date in each Export Item, which Pleo always includes. Map it to a period in the connected Accounting System. See Accounting Periods.
Imports and vendors concepts
What must I do before the Activate Vendor Tagging option appears?
Create at least one Vendor with
POST /v1/vendors. After that, the Activate Vendor Tagging option appears in Settings, Accounting in the Pleo Web App. See Supplier vs Vendor.How long must I keep each webhook eventId for Vendor Creation?
Keep it for at least about 27.5 hours, which is the webhook retry window, even if that is longer than the vendor’s own retry period. Without it, a late redelivery could create a second vendor record in the AS. See Vendor Creation Overview.
When does the integration select Dimensions in a Tags Sync run?
Only on the first connection. The three steps are: select Dimensions, sync Tag Groups with Dimensions, and sync Tags with Dimension Values. See Tags Sync Overview.
Who sets the default tax code on a Pleo category?
The bookkeeper sets it explicitly in the Pleo Web App. Neither Tax Sync nor Chart of Accounts Sync sets it automatically. See Tax Sync Overview.
What operations does a Vendor Sync run apply during reconciliation?
The run fetches active vendors from the Accounting System and all Vendors from Pleo, active and archived. It matches them by
externalId. Then it applies create, update, unarchive or archive operations. See Vendor Sync Overview.People and roles
What must an Administrator do in Pleo for integrations?
Admins are required to configure API integrations, generate API keys or OAuth 2.0 applications, and grant access to bookkeepers and reviewers. See Employees and Roles.
Which access option fits an employee who uses a card and also pays out of pocket?
Choose Card and reimbursements. It is for employees who use cards and submit out-of-pocket expenses. Card only is for employees who use Pleo cards for all business spending. See How To Add Employees to Pleo.
Who can assign or change user roles in Pleo?
Only users with Administrator access can assign or modify roles. You assign a role on the Permissions tab of the employee, then save your changes. See How To Assign User Roles to Employees.
Glossary
How many currencies can a customer hold Pleo accounts in?
Customers can hold accounts in up to six different currencies. A Pleo account holds a specific fund in a specific currency, and funds can be added, converted or withdrawn. See Generic Terms in Pleo.
Does an external_reimbursement change the Pleo Wallet balance?
No.
external_reimbursement is a refund through cash or payroll, handled outside Pleo. It has two subtypes. reimbursement_to_employee is paid to an employee for expenses made out of pocket. reimbursement_to_company is paid to the company, typically when an employee returns funds or makes an accidental purchase with a Pleo card. See Expense Types.How does an Export Item relate to an accounting entry?
An export item is an accounting entry that has been transformed into an exportable entry. The required accounting and bookkeeping information is aggregated from the accounting entry. See Accounting Entries Export Terms.
Legacy APIs
Do legacy API tokens work on the new API?
No. Legacy API tokens work only on
openapi.pleo.io, and new API keys do not work there. The legacy APIs are deprecated, and Pleo blocks requests to them after 1 June 2027 at 14:00 CEST. Export API v2 is the exception: Pleo has not officially announced an end-of-life date for it, but the estimate aligns with 1 June 2027, so move to v3 now. For which new API replaces which legacy API, see the API Deprecation Notice and the Migration Catalogue.What is the difference between legacy APIs and new APIs?
Legacy APIs (OpenAPI)
- Base URL:
https://openapi.pleo.io - Authentication: API tokens (legacy tokens)
- Availability: Intended for existing/legacy use cases. Access can depend on your account setup and entitlements.
- Lifecycle: Deprecated. See the deprecation timeline and migration plan.
- Base URL:
https://external.pleo.io - Authentication: API keys (and other authentication methods supported by the platform, including OAuth 2.0, depending on the use case)
- Availability: Available without restriction, but may need to be enabled for your organisation.
- What to expect: Newer platform surface and improved structure, but not guaranteed feature parity with legacy APIs yet.
- Legacy API tokens will not work on
external.pleo.io - New API keys will not work on
openapi.pleo.io