Prerequisites
Before you begin:- You’ve fetched the export item payload data
- You’ve completed:
- You’re familiar with the Integration Design for accounting periods
Relevant Export Item Fields
Example Export Item Payload (Journal Entry)
Example Export Item Payload (Journal Entry)
Expense Date (source date)
This is the transaction date provided by Pleo and represents when the expense occurred.Service Period (Optional)
Used for accrual or cost allocation purposes. It does not affect posting date or closed-period handling.Steps
1. Determine Posting Date
The Export Item provides two dates:- Expense date (
exportItem.date) — the transaction date from Pleo, representing when the expense occurred - Posting date — the date your integration sends to the Accounting System when creating the entry
2. Attempt Posting
Submit the accounting entry to the Accounting System using the posting date:- If the posting succeeds — the period is open and the entry is accepted. Proceed to Step 5.
- If the posting is rejected due to a closed period — proceed to Step 3.
3. Handle Closed Period Rejection
A rejection at Step 2 signals that the posting date falls within a period the Accounting System has closed. This is the trigger to apply a closed period strategy.4. Apply Closed Period Strategy
The integration must define how to respond when a period is closed. Two options are supported:Option A — Adjust posting date and retry
Adjust the posting date to an open period and return to Step 2:Option B — Fail the Export Item
If adjustment is disabled or not permitted by the integration configuration:5. Resolve Accounting Period
Once posting succeeds (either directly at Step 2 or after a date adjustment at Step 4), confirm which accounting period the entry has been assigned to using the final posting date:- calendar periods (monthly, quarterly)
- fiscal periods
- custom accounting calendars
Result
After completing this step:- A valid posting date has been determined
- Closed period behaviour has been explicitly handled
- The Accounting System assigns the correct accounting period
What Comes Next?
this how-to is part of: