Skip to main content

Accounting

Read the posting record DALP keeps for each committed event, see why one did not post to your Xero ledger, and retry it in the Console.
Open it fromBusiness operationsAccountingRoles:OwnerPlatform administratorConsole address: /org-settings/accounting

Accounting lists your organisation's posting records: one record per committed platform event, showing what DALP posted to Xero. DALP sends each final money event mapped by the organisation's rule table (such as a trade settlement, fee or paid dividend) to your Xero ledger as a manual journal, recording whether it posted, is waiting, or failed and why.

Use this page to verify what reached Xero and to retry failed records once their cause is fixed. Connecting Xero and editing the rule table, account mapping or posting policy happen through the Platform API. See Post DALP events to a ledger.

The Accounting page shows the Xero connection state under the title, then “No postings yet” until the organisation stores an accounting configuration.

Steps

Find records that did not post

Open Business operations → Accounting and open the Status filter in the toolbar. Each option shows its record count. Select Failed, Not mapped or Not posted. The table lists newest records first, 25 per page.

Read what happened

Read the What happened column for a plain summary of why the record is held back (such as “Xero refused the journal.” or “An account in the journal has no Xero account code.”), with the last failure message beneath it. Expand the row to inspect Last failure in full and the journal lines DALP built.

Fix the cause

Fix the underlying issue before retrying. Update missing account codes or rules in a new configuration version, or fix Xero rejections directly in Xero. A new configuration version automatically re-evaluates every “Not mapped” record on the next pass without a manual retry. Never edit or delete a DALP journal's narration in Xero because DALP matches journals by it. Correct a posted journal with a reversing or adjusting journal in Xero instead.

Select Retry posting

Open the row's actions menu and select Retry posting. The Console toasts “Queued to post again”, the status moves to “Waiting to post”, and Retries increments by one. Retries do not wait for a second approver.

The posting job runs every minute. A “Not mapped” or “Not posted” record re-evaluates against the newest configuration version. A “Failed” record already sent to Xero keeps that journal if the last send was less than six minutes ago. After six minutes, DALP looks up the journal in Xero first, marks it “Posted” if present, or rebuilds it from the newest configuration version if absent. Wait six minutes after a configuration fix before retrying such a failed record.

Table columns

Each row represents one posting record:

  • Status: the record's badge (see Statuses).
  • Event: the source event name (such as Credit minted or Trade settled) with its webhook event type below.
  • Amount: total of the journal's debit lines in the ledger currency, or a dash when no journal was built.
  • Xero journal: prefix of the Xero manual journal ID with a copy button, “Daily journal of <date>” (or “Daily journal 2 of <date>” for supplementary journals) under daily posting, or “Not in Xero yet”.
  • What happened: why the record is held back and the last failure message, or a dash when clear.

Record detail

Expand a row to view:

  • Source event: the source_id of the committed event, preserved across redeliveries.
  • Received: timestamp when DALP ingested the event.
  • Configuration version: the rule configuration version that evaluated the record.
  • Posting policy: “One journal per event” or “One journal per day”.
  • Attempts and Retries: automatic posting attempts and manual retries.
  • Xero organisation: prefix of the target Xero organisation ID with a copy button.
  • Last failure: full failure message from Xero or DALP validation.
  • Journal lines: each debit and credit line with Account key, Debit or credit, Amount and Description.

Statuses

Badge
Meaning
“Waiting to post”
DALP has not evaluated or posted the record yet, including while Xero is disconnected or after a retry.
“In a daily journal”
Under “One journal per day”, the record is evaluated and waiting for its daily journal.
“Posted”
Xero accepted the journal, or the daily journal netted to zero.
“Failed”
Xero permanently refused the journal, the source event data expired before capture, or the target Xero organisation is disconnected.
“Not mapped”
No rule matches the event, or the configuration cannot build a valid Xero journal.
“Not posted”
A test event, non-final event, or an event marked in the rule table as having no accounting effect.

Xero connection

The badge beside the page title next to Xero shows one of three states:

  • “Connected”: DALP can post, with Last refreshed showing the latest token refresh day.
  • “Needs reconnecting”: Xero rejected the stored grant (for example, after revoking app access in Xero). Posting pauses until an administrator reconnects.
  • “Not connected”: no Xero connection is stored.

When not “Connected”, the page displays “Records wait to post until an admin connects Xero.” If the status read fails, it shows “The Xero connection could not be read.”

Xero connect outcomes

After an administrator completes Xero consent, Xero redirects back to Accounting with a status notice:

Notice
What happened
“Xero is connected. Records post on the next pass.”
DALP stored the grant and connected Xero organisations.
“Xero consent was declined, so nothing changed.”
The administrator declined consent in Xero or lost required access.
“The Xero sign-in expired or was already used. Connect again.”
The consent link was unknown, expired or reused, or a different user signed in.
“Xero did not complete the connection. Connect again.”
Xero refused sign-in, such as from an incorrect app secret or redirect URI.
“Your Xero sign-in has no Xero organisation. Pick one when you connect again.”
The grant included no Xero organisation.
“This Xero organisation is already connected to another organisation.”
The selected Xero organisation is already linked to another DALP organisation.

When Retry posting is unavailable

Retry posting is active only for “Failed”, “Not mapped” or “Not posted” records whose event data is still retained:

  • “Posted” records show “A posted record cannot post again. Correct it with a new journal in Xero.”
  • “Waiting to post” and “In a daily journal” records show “This record is already queued to post.”
  • Records past the 30-day retention window after reaching “Posted” or “Not posted” (or whose data expired before capture) show “DALP no longer keeps this event's data, so it cannot post again.” Book those manually in Xero.

Troubleshooting

Accounting is not in the sidebar

Accounting appears under Business operations only for organisation owners and Platform administrators with an active organisation. See Roles and permissions.

Every record reads Waiting to post

Check the Xero connection badge beside the title. While Xero reads “Not connected” or “Needs reconnecting”, DALP pauses posting and opens a “Xero connection needs attention” case. Reconnect Xero per Connect Xero, and waiting records post on the next pass.

A retried record failed again

The underlying cause is still present. Inspect Last failure in the expanded row, fix the account in Xero or publish a new configuration version, and retry again. DALP also opens an “Accounting posting failed” or “Accounting event blocked” case on Operations cases.

Frequently asked questions

Can a retry post the same journal to Xero twice?

No. DALP sends each journal with an idempotency key and narration marker. Within six minutes of a send, Xero deduplicates by idempotency key. After six minutes, DALP queries Xero by narration marker first and marks an existing journal “Posted” instead of creating a duplicate. “Posted” records cannot be retried.

Does a Not mapped record need a retry after a configuration fix?

No. Publishing a new configuration version automatically re-evaluates every “Not mapped” record on the next posting pass. Use Retry posting for “Failed” records once the external or configuration cause is resolved.

API routes

GET /api/v2/accounting/postings lists posting records, POST /api/v2/accounting/postings/{postingId}/replays backs Retry posting, and GET /api/v2/accounting/xero/connection reads the Xero connection state. All three require a Console session and refuse API keys. See Read and retry posting records and the Platform API reference.

Was this page helpful?