Prerequisites
Before you begin:- You’re familiar with the Export Lifecycle and the Integration Design for Fetching Export Job Items
- The Export Job has been started (
"event": "started","status": "in_progress") - Pre-export validation has completed and the integration is ready to begin processing data
- The Export
jobIdis available
Steps (Control Layer)
1. Retrieve Export Items for the Job
API Endpoint: GET /v3/export-jobs/{jobId}/items
Example parameters: jobId: 8eb648ab-464b-42a0-BA17-eda703657e33
Returns control data:
- accountingEntryId
- status (pending, in_progress, etc.)
- export tracking fields
- determine processing scope
- track progress
- recover from interruptions
Example Request
- OAuth 2.0
- API Key
Example Response
Each Export Item represents a single accounting entry to be processed.2. Handle Pagination
Export Items may be returned across multiple pages.Example Response (Pagination)
3. Handle Job Recovery
This step only applies if your integration is restarting after an interruption. In normal operation, skip to Step 4. If your integration restarts or loses state, it must be able to resume processing safely.3.1. (Optional) Retrieve Export Job Metadata
This step is optional. If your integration already tracks job state, it can be skipped. API Endpoint: GET /v3/export-jobs/{jobId}
This endpoint can be used to rehydrate job-level context.
Example Request
- OAuth 2.0
- API Key
3.2. Resume Processing from Export Items
If processing resumes after interruption:- The Export Job is already
in_progress - Some Export Items may already have updated statuses
- Re-fetch all Export Items
- Determine which items still require processing
- Continue from the last known state
4. Store Items for Processing
Persist Export Items for the processing phase. Store only what is necessary:accountingEntryId(unique ID for the export item)jobId(unique job reference of the Export Job)status(status of the export item)
5. Maintain Deterministic Processing Order
Process Export Items in a stable and predictable order. Recommended strategies:- chronological order (by transaction date)
- consistent ordering across retries
Result
After completing these steps:- All Export Items for the job have been retrieved
- Pagination has been fully resolved
- The workflow remains resumable and consistent
- The integration does not yet have the payload of each expense item
What Comes Next?
Now that you have identified which items to process, retrieve their full accounting data.this how-to is part of: