Prerequisites
Before you begin:- You’ve completed How to Retrieve Export Job Items for Processing
- You have a
jobId - You have identified items to process (e.g.
pending)
Steps (Data Layer)
1. Fetch Full Export Item Data
API Endpoint: GET /v3/export-items Example parameters: jobId:8eb648ab-464b-42a0-ba17-eda703657e33
Once Export Items have been identified for the job, retrieve the full accounting payload for processing.
The export-items endpoint returns all Export Items for the job, including:
- transaction details
- accountingEntryLines
- supplier/vendor data
- bookkeeping metadata
- attachments
Example Request
- OAuth 2.0
- API Key
Example Response
2. Handle Pagination
Export Items may be returned across multiple pages.Example Response
3. Validate Each Export Item
Before attempting to record an item in your Accounting System, validate that it has everything required to be processed. This check runs per item. A failure on one item does not block others. Two checks are required: Check 1: Required configurations are present Verify that all integration configurations needed to export this specific item exist (e.g. the journal is configured, required accounts are mapped). Check 2: Expense GL Account (Category) is present Verify that the item has an Expense GL Account assigned viaaccountingEntryLines[].account.
If either check fails, do not attempt to record the item in the AS. Instead, mark it as failed immediately and
move to the next item.
4. Handle Job Recovery
If your integration restarts or loses state, it must be able to resume processing safely. See: How to Retrieve Export Job Items for ProcessingResult
After completing these steps:- All Export Items with full payloads for the job have been retrieved
- Pagination has been fully resolved
- The integration is ready to process items sequentially
- The workflow remains resumable and consistent
- Each item has been validated for required configurations and GL Account before AS processing begins
What Comes Next?
Up to this point, you’ve completed steps 1–4 of the Export Integration Workflow Guide. Step 5 moves processing from Pleo’s export workflow to your Accounting System or ERP, where Export Items are processed and recorded, as outlined in the AS/ERP Processing Workflow Guide. Once processing is complete, return to steps 6 and 7 of the Export Integration Workflow Guide to update the status of each Export Item and finalise the Export Job.this how-to is part of:
Related Reading
FAQs
Why am I getting a MISSING_CONTRA_ACCOUNTS error?
Why am I getting a MISSING_CONTRA_ACCOUNTS error?
You’re getting a
MISSING_CONTRA_ACCOUNTS error, because the Export API v3 requires a contra account to be configured for each entity’s default currency. If any entity’s default currency does not have a contra account mapped, calls to /v3/export-items will fail with this error.See How to Resolve MISSING_CONTRA_ACCOUNTS for steps to fix this.Why is the `bookkeeping` field returning `null` in my export items response?
Why is the `bookkeeping` field returning `null` in my export items response?
You’re getting a
null value for the bookkeeping field, because it’s only populated when the Vendor Tagging feature is enabled and a bookkeeping method has been assigned to the expense before it was queued. Without Vendor Tagging enabled, bookkeeping will always be null. This is expected behaviour, not an error.When bookkeeping is null, use the supplier field on the export item for bookkeeping purposes instead.See How to Enable Vendor-Based Bookkeeping for steps to enable it.