> For the complete documentation index, see [llms.txt](https://help.donary.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.donary.com/overview/finance/batches.md).

# Batches

## Overview

<mark style="color:$primary;">**You can access the Batches tab via the Finance category in the left sidebar.**</mark>

**Batches** is a finance reconciliation tool that allows organizations to review and confirm that processed transactions match the records returned by their payment gateway.

When a donation is made, the system sends the transaction details (card information and donation information) to the payment processor. The processor completes the charge and returns a response indicating whether the transaction was successful or declined. Along with this response, the processor also returns a **gateway batch number**.

The Batches feature enables organizations to:

* View transactions grouped by gateway batch number
* Compare batch totals and counts with their processor
* Manually confirm and close batches after review
* Mark batches as deposited
* Tag and annotate batches for internal tracking

***

## How Batch Processing Works

### 1. Transaction Creation

When a user creates a transaction:

1. Card and donation details are sent to the payment gateway.
2. The gateway processes the payment.
3. The gateway returns a **batch** number:

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2F2ZLZeEA6ZeL90f4qDEuB%2Fbatch%20number.png?alt=media&amp;token=3a55df17-3895-4fb9-8746-b5bd0174c40f" alt=""><figcaption></figcaption></figure>

Example:

* Transaction 1: $2
* Transaction 2: $5
* Both are assigned to the same gateway batch
* Total for that batch: $7

Each transaction record includes:

* Gateway name
* Gateway batch number
* Transaction amount

***

### 2. Gateway Batch Lifecycle

Payment gateways group transactions into their own batches.

**Typical flow:**

* Throughout the day, transactions are assigned to an open **gateway batch** (e.g., Batch 451-06788).
* At a scheduled time (commonly around 7:00 PM), the **gateway closes the batch**.
* Once the gateway batch is closed, the gateway sends the funds to the organization’s bank account.
* The gateway then creates a new batch for subsequent transactions.

**Important:**

Donary batches are grouped according to the gateway batch number. When the gateway creates a new batch, Donary creates a corresponding batch for the new transactions. However, the two batches are managed and closed separately.

* **Gateway batches:** The payment gateway controls when these batches close.
* **Donary batches:** These are managed within Donary and **do not close automatically**. After verifying the transactions in a Donary batch, the organization must **manually** [**review and close**](#reviewing-and-closing-a-batch) **the Donary batch**.

***

## Batch Features

<mark style="color:$primary;">**Access the Batches tab via the Finance category in the left sidebar.**</mark>

Here you can:

* View all batch records
* Filter by batch status or date period&#x20;
* Click into a specific batch to review transactions

***

### Batch Filters

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2FJjIOMYxawIVdVah9Ozg1%2Ffilters.png?alt=media&amp;token=070eb049-bfca-44d7-8d3f-1f4fa61e1fe8" alt="" width="563"><figcaption></figcaption></figure>

You can **filter** batches by:

* Date&#x20;
  * English/Hebrew Calendar
  * Time period
  * Start/End dates

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2F0BcIOvpszFfBs83VP1Up%2Fdate%20filter.png?alt=media&amp;token=783f688f-13f7-4242-8c9a-772ab8bdff81" alt="" width="518"><figcaption></figcaption></figure>

* Batch Status:
  * **Unbatched** – Pending review
  * **Batched** – Verified and closed
  * **Deposited -** For [accounting ](#depositing-a-batch)purposes
  * **Archived -** [Re-opened](#archiving-a-batch) batches

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2F9xBdYvLDDFThrl9USQqg%2Fbatch%20filters.png?alt=media&amp;token=d666b25a-fcc6-44b3-8c3d-87035406442e" alt="" width="311"><figcaption></figcaption></figure>

This allows organizations to easily manage daily or weekly reconciliation.

***

### Reviewing and Closing a Batch

#### Step 1: Review Batch

1. Go to the Batches page.
2. Select a batch by clicking on the Gateway Batch number (purple hyperlink).
3. Review:
   * Number of transactions
   * Total amount
   * Individual transaction details
4. Compare this information with the payment gateway’s batch report.

#### Step 2: Confirm Match

Ensure:

* The transaction count matches the gateway.
* The total amount matches the gateway.
* All transactions appear correctly.

#### Step 3: Close (Batch) the Record

Once confirmed:

* Select the all confirmed transactions.
* **Save** the batch.

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2FfugkIrHg3LoOE8VZ1n92%2Fbatch%20recorde.png?alt=media&amp;token=b4e8c06f-5493-4ee1-b003-8886788f81f1" alt=""><figcaption></figcaption></figure>

This indicates that:

* The transactions and totals match the gateway.
* The batch has been verified internally.

After closing, the batch status changes to **Batched** and is assigned a **Donary Batch #**, for internal use.

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2FBgGvZKjUKkGQSNAClD5U%2Fbatched.png?alt=media&amp;token=d6665346-fc7e-4616-8198-92a951a088ab" alt=""><figcaption></figcaption></figure>

***

### Depositing a Batch

After closing a batch, you may:

#### Mark as Deposited

Use the **Deposit Batch** option to mark the batch as deposited.

This is commonly used for accounting purposes (e.g., QuickBooks reconciliation).

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2FFkaR05HGwA5q7T3Fnr9V%2Fdeposit.png?alt=media&amp;token=79c469c5-aa33-4596-9829-8ac60e3c480d" alt=""><figcaption></figcaption></figure>

***

### Adding Batch Information

After closing a batch, you can:

#### Add Bank Tag

You may assign a bank tag to indicate where the funds were deposited.

Example:

* Add new tag: *Apple Bank*

This helps track which bank account received the funds.

#### Add Notes

You can add internal notes to document:

* Reconciliation details
* Accounting references
* Internal comments

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2FQXaCi9myyngz8AJ8033H%2FBatch%20crad.png?alt=media&amp;token=33aca985-932f-4ee8-a2f6-311a2a8eca42" alt=""><figcaption></figcaption></figure>

***

### Archiving a Batch

You may archive a closed batch.

When a batch is archived:

* It reopens.
* It appears again under **Unbatched** when filtering.

Use this if:

* A correction is required.
* The batch needs to be reviewed again.

<figure><img src="https://1544041479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSoguDpndtaX2tYuML2Gi%2Fuploads%2FlleDNLfhqqB7NFoLsalx%2Farchive.png?alt=media&amp;token=50144e75-20bd-44c1-8326-a4ef55168193" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.donary.com/overview/finance/batches.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
