DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Ledger Write-Back Guide for Product Teams

Ledger write-back means that your product creates, updates or voids a single record in a customer's live accounting system today. A wrong write is costly to undo, so DaletBook queues every write where a person can review it carefully first. Each outbox entry holds the entity type, the operation, the payload and a key, and it never holds a credential. The connector's declared writes gate the entry, so a write that the provider lacks is never queued or even sent. This guide follows one write from your product to the ledger and back, and four posts go deeper on limits.

The guide is written for product engineers, finance operations leads and the support staff who watch the queue. Also, it states what DaletBook does today and where your own team adds controls. Also, our trainers cover our ledger write-back with practice records. Plain language helps when you describe your ledger write-back.

Illustration of store, people, browser for ledger write-back
Key takeaway

Ledger write-back is safe when writes are declared by the connector, queued with a key, reviewed by a person and reconciled afterwards. A void reverses a posted record, and DaletBook never deletes one.

What does ledger write-back mean, and when is it safe?

Reading a ledger changes nothing. Writing to it changes the books of a real business. In addition, that business may close a period on the data tomorrow. In addition, a safe write-back flow has four parts.

Moreover, it offers only the writes that a provider supports. Moreover, it lets a person review a consequential write. Besides, it repeats a failed write without making a copy. Besides, it keeps a record of what was sent and what came back.

Questions about your idempotency key are welcome in our classes. Notably, many reviewers begin with the idempotency key when they audit a flow.

Write-back is also an optional step. Likewise, many products only read, and they can stop at this point. If your product must post invoices, bills, contacts or journal entries, the rest of this guide applies to you. Indeed, the reviewed writes page summarizes the queue in one place.

Which writes does each connector say it can do for you?

In fact, a connector declares the writes it supports as pairs of an entity type and an operation. Notably, the operations are create, update and void, and there is no delete. DaletBook offers a write only where the connector declares it.

Likewise, for Xero, the declared writes are contact create and update, and journal entry create and void. Bank transaction, invoice and credit note create and void follow. Bill void completes the list.

Furthermore, an invoice update is not on that list, so it is never queued or sent. Indeed, if your flow must change an issued invoice, plan around a void and a new create. Confirm that plan with the business that owns the books. Read the catalog entry for each provider before you promise a write to a customer.

DaletBook provider catalogue entry screen
For example, the provider catalogue shows what each connector reads.

How does the outbox hold your intent before it is sent?

Specifically, a write never goes straight to the provider. It enters an outbox, where each entry carries its entity type, its operation, its payload and an idempotency key. Update and void entries also carry the provider record reference, so DaletBook knows which record you mean. Nothing about the ledger write-back needs a special tool.

Overall, the notes on your idempotency key are reviewed by a second person. Good notes on the ledger write-back help the next person on the team.

Also, this part of the page shows how your provider reference fits the whole flow. Teams often ask how the ledger write-back works in practice.

Nothing about the ledger write-back needs a special tool. Teams often ask how our idempotency key works in practice.

Questions about your outbox entry are welcome in our classes. Changes to our ledger write-back are logged with a reason.

In fact, each entry tracks its status and its attempts. It also keeps the time it can next be sent, its last error and the provider reference that comes back. The queue view pages through entries from 1 to 200 per page, so a busy day stays readable.

The entry is a durable record of intent, and a crash or a timeout does not lose it. In addition, a reviewer will want to see your ledger write-back written down.

Moreover, the next step builds on your ledger write-back and adds an example. Furthermore, a reviewer will want to see your ledger write-back written down. Plain language helps when you describe the ledger write-back. People new to the topic should learn your idempotency key first.

Why do update and void need the reference we kept?

Besides, an update or a void targets one existing record. Without the provider's own reference, the target would be a guess. Notably, so DaletBook requires the reference, and a write without it fails the check before any provider call. Store the reference that the provider returned when you created the record, and keep it next to your own ID.

Illustration for Ledger Write-Back Guide for Product Teams

What does the review screen show you before you confirm?

Likewise, the workspace shows a review screen before a consequential write is confirmed. Specifically, it lists the entity type, the operation, the key and the payload. You can edit the values on that screen, and the form keeps your input if you switch views. Confirming adds the write to the queue, and a push job sends it later.

Queue acceptance is not provider completion. Watch the entry until it shows a provider reference or an error. Writes queued straight through the API skip the review screen. Overall, this part of the page shows how the idempotency key fits the whole flow.

Indeed, so add an approval step of your own before you call it. Also, the post on invoice posting controls shows where to place that step.

Why does an idempotency key make a retry the same write?

In fact, a timeout hides whether the provider accepted the first call. In addition, a blind retry may create a second invoice. Furthermore, an idempotency key solves that. Moreover, each rule for the ledger write-back is written down and dated.

Besides, the connector sends the key with the provider call. Keeping the same key for the same intent makes a retry the same write. Notably, the next step builds on your outbox entry and adds an example.

Specifically, each exception to the outbox entry is recorded before it is approved. Likewise, each choice about our provider reference is explained to the reviewer. Changes to our ledger write-back are logged with a reason.

Derive the key from your own record ID, and keep it stable. Overall, a new key tells DaletBook that you mean a new write. Indeed, when a send fails, retry the failed entry and do not queue a new one. A reviewer will want to see your ledger write-back written down.

Also, the retry resets the same row to pending, and its key and payload stay. In fact, the article on idempotent accounting sync explains the same idea on the read side.

DaletBook connection drawer screen
For example, the connection drawer screen of DaletBook.

How do attempts, errors and retries work in the queue?

In addition, each entry has an attempt limit, which is five by default, and it records the attempts used. A failed entry keeps its last error and the time it can next be sent. Moreover, an operator can retry it from the queue, after reading the error. Teams often ask how the ledger write-back works in practice.

Not every failure deserves a retry. Besides, a temporary provider error may pass on the next attempt. A wrong field needs a corrected payload, and another attempt of the same payload will fail again. People new to the topic should learn your ledger write-back first.

Read the error first, and only then choose between a retry and a corrected write. Notably, the post on queued write corrections covers the correction path. Start small when you set up the ledger write-back.

What happens when a provider rejects a write you sent?

Likewise, a provider can reject a write for many reasons. A required field may be missing, an account may be closed or a period may be locked. Indeed, the provider answers with an error, and the entry records the attempt and the last error. Good notes on the ledger write-back help the next person on the team.

DaletBook does not hide the answer. In fact, the entry shows what the provider said, and your support team can read it without engineering help. The next step is a human choice. Teams often ask how our provider reference works in practice.

Fix the cause and retry, queue a corrected write or drop the write and tell the customer. Furthermore, the post on provider write rejections sorts rejections into groups and suggests a response for each.

Questions about each outbox entry are welcome in our classes. Specifically, the next step builds on your outbox entry and adds an example. Many reviewers begin with each outbox entry when they audit a flow.

Keep the provider reference simple, and test it on a small case first. Keep the provider reference simple, and test it on a small case first.

DaletBook job status screen
For example, every sync job closes as succeeded, partial or failed.

How do you fix a posted record with a void and a create?

DaletBook has no delete operation. Overall, a posted record stays in the ledger, and you reverse it with a void. The void carries the provider reference you stored. Keep the ledger write-back simple, and test it on a small case first.

Also, it goes through the same validation and review as the original write. The voided record stays visible in the ledger with a terminal status, so the trail stays intact.

In addition, if the record needs a corrected version, queue a new create after the void. Which document fits a given correction is an accounting decision for your customer and their accountant. DaletBook gives no accounting advice. Moreover, it carries out the steps that a person chooses and reviews.

Besides, our trainers cover our outbox entry with practice records. Our trainers cover our idempotency key with practice records. Teams often ask how the provider reference works in practice. Notably, each rule for the ledger write-back is written down and dated.

Questions about the ledger write-back are welcome in our classes. Likewise, many reviewers begin with each ledger write-back when they audit a flow. Teams often ask how our ledger write-back works in practice. Indeed, many reviewers begin with your outbox entry when they audit a flow.

Why do credentials stay out of the queue and the logs?

In fact, a queue that holds tokens next to payloads widens the blast radius of any leak. DaletBook never writes credentials into an outbox entry. Furthermore, they are injected at send time from the connection's encrypted store. Credentials are encrypted at rest with Fernet, and API responses never return them.

That design lets your team list, page and review the queue. Nothing in it can act on a provider account. Specifically, it also means that an entry can be exported for a review file with no secret inside.

The security controls page describes the full path of a credential. Keep the ledger write-back simple, and test it on a small case first.

Overall, a reviewer will want to see your idempotency key written down. Check the provider reference again after each change at the provider. Also, any gap in your ledger write-back is flagged before the next release.

In addition, each rule for the ledger write-back is written down and dated. The notes on your idempotency key are reviewed by a second person. Any gap in your ledger write-back is flagged before the next release.

DaletBook outbox of queued writes screen
For example, queued writes wait for review before they reach the books.

How do you reconcile what you sent with the ledger?

Moreover, a confirmed write is not the end of the work. Compare what your product sent with what the ledger now holds. Check the provider reference on each entry, then read the record at the provider and compare the key fields. Do this daily at first, and then weekly.

Besides, the next pull also helps, because it reads the record back and stores a generation of it. If the ledger changed the record after your write, the correction chain shows the new value. Notably, the post on write-back reconciliation offers a routine that fits a small team. Plain language helps when you describe your ledger write-back.

People new to the topic should learn your outbox entry first. Plain language helps when you describe each outbox entry. Plain language helps when you describe each idempotency key. Likewise, the next step builds on your idempotency key and adds an example.

Who confirms a write, and how do roles shape that?

Queueing a write needs an identity and a capability grant, like every main API operation. Indeed, in the workspace, a person confirms the write on the review screen. Decide who may queue and who may confirm. In fact, for consequential writes, use two people when your size allows it.

Identity comes from the host application through one seam. DaletBook checks the grant for each call, and it denies by default. Furthermore, a development identity covers local work only. Map your own roles to the grants before real users reach the queue.

How do you test write-back in a sandbox before launch?

Test with a sandbox book and practice data. Queue one write that the connector declares, review it in the panel and correct one value. Confirm it, and read the entry until it shows a provider reference. Then repeat the send with the same key and confirm that only one record exists at the provider.

Next, send a write with a missing field, and read the rejection. Queue a void with the stored reference, and check the ledger. Write down the date of each result. Nothing about the ledger write-back needs a special tool.

Specifically, each connector was written from public documentation and is exercised against mocked responses. So the sandbox run is the final proof for your provider. Good notes on the provider reference help the next person on the team.

DaletBook accounting generation screen
For example, each accepted pull leaves a generation you can hold.

How does a bank posting from DaletMart reach a ledger?

Commerce and banking data often start outside the accounting system. DaletMart can send reviewed bank postings to DaletBook through a separate least-privilege queue. The queue uses a per-tenant token of at least 32 characters, and an empty token registry keeps the queue closed.

A posting can enter only as a balanced, capability-checked entry for an exact tenant, location and connection. The registry holds a decision for all 75 providers. Seven provider mappers are approved in source for automatic posting.

The other 68 keep the full allocation record and need reviewed manual posting. There is no generic journal fallback. QuickBooks Online receives a journal entry, and Xero receives a spend or receive bank transaction.

This path is opt-in, and it is off by default. It needs credentials and a switch before it runs. Questions about the outbox entry are welcome in our classes.

What should support staff read first on a failed entry?

Support staff open the queue and filter to failed entries. For each one, they read four fields in order. The status says where the entry stands.

The last error says what the provider or the check said. The attempts say how many tries are used out of five. The next available time says when a retry is possible.

Most failures fall into three groups. A temporary error calls for a retry. A data error calls for a corrected payload.

A capability error means that the connector does not declare the write, and no retry will help. Write each group into a short guide for the team, with one example each.

Agents may retry a failed entry from the queue without engineering help. They should never queue a fresh entry for the same intent, because that creates a second record. The same entry keeps the same key. Our trainers cover our ledger write-back with practice records.

How do you plan the timing and volume of your writes?

Writes share the provider's request budget with reads. A burst of writes can use the budget that your nightly pull needs. Spread writes across the day when you can, and avoid sending a large batch just before a scheduled pull. The notes on your idempotency key are reviewed by a second person.

A rate limit stops the run at the connection level, and the entry keeps its place in the queue. The next attempt follows when the provider allows it. DaletBook promises no minimum safe pace for every provider, so measure your own volume in a sandbox first. The article on accounting API rate limits helps you plan a budget.

Keep the queue short in daily work. A long queue of failed entries usually means that one cause was never fixed. Group the entries by error, and clear the cause before you retry them all.

A diagram with the topic at the centre and four connected parts: Outbox entry, Provider reference, Data.

Which working habits keep a write-back flow safe and calm?

Five habits keep the flow safe. People new to the topic should learn your ledger write-back first. Check the ledger write-back again after each change at the provider. Overall, our trainers cover our ledger write-back with practice records.

  • Offer only the writes that the connector declares for the provider.
  • Build the key from your own record ID, and keep it stable.
  • Review consequential writes, and add your own approval for API writes.
  • Read the last error before you retry, and fix the cause first.

Finally, reconcile on a schedule, so a gap between the queue and the ledger shows early. Start small when you set up the ledger write-back. This part of the page shows how the ledger write-back fits the whole flow. Keep the ledger write-back simple, and test it on a small case first.

Changes to our ledger write-back are logged with a reason.

Good notes on the ledger write-back help the next person on the team. People new to the topic should learn your ledger write-back first. Start small when you set up the ledger write-back. A reviewer will want to see your outbox entry written down.

How do you start with one write on your own books?

Pick one provider and one document type, such as a contact. Queue a practice write, review it and confirm it. Read the provider reference, and then void or correct the record. Each exception to the outbox entry is recorded before it is approved.

That short loop shows the whole path, and it takes an afternoon. The implementation plan places the loop inside four weeks, and the unified accounting API guide shows the wider design. Book a session with our team to start.

A diagram of three stacked layers, from the first at the top: Outbox entry, Idempotency key, Provider.

Questions and answers on this topic from the product team

Which operations does DaletBook offer for ledger write-back?

It offers create, update and void, and only where the connector declares them. There is no delete operation.

Can DaletBook update an issued invoice in Xero?

No, an invoice update is not on the Xero list. Plan around a void and a new create, and confirm the plan with the business that owns the books.

What stops a retry from creating a second record?

Each queued write carries an idempotency key, and the connector sends it with the provider call. Keep the same key for the same intent.

Are credentials stored with a queued write?

No. They are injected at send time from the connection's encrypted store, so the queue holds no secret.

How many attempts does a queued write get?

Five by default. The entry records the attempts used, its last error and the time it can next be sent.

Does the review screen apply to writes sent through the API?

No. Writes queued straight through the API skip the review screen, so add an approval step of your own.

Who is responsible for deciding what to post?

Your customer and their accountant. DaletBook gives no accounting advice and carries out the steps that a person reviews.

How do I test write-back before launch?

Use a sandbox book, queue one declared write, review it and confirm it. Then repeat the send with the same key and confirm that one record exists.

See how DaletBook fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.