> For the complete documentation index, see [llms.txt](https://docs.pagsmile.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagsmile.com/reference/remittance-api/business/partner/query-daily-reconciliation.md).

# Query Reconciliation Report

Retrieves daily reconciliation statements generated from partner-level account transactions. Each statement provides the opening balance, total balance change, and closing balance for one statement date and currency.

**Endpoint**

`POST /remittance/partner/query-daily-statements`

**Sandbox base URL:** `https://rem-api-sandbox.pagsmile.com`\
**Content-Type:** `application/json; charset=UTF-8`

The request uses the standard [Remittance API request envelope](https://docs.pagsmile.com/remittance-api/common). The fields below describe the decrypted `biz_data` object.

{% hint style="info" %}
**Requirement:** `M` = Mandatory, `O` = Optional, and `C` = Conditional. A conditional field is mandatory only when the condition stated in its description applies.
{% endhint %}

{% hint style="warning" %}
Encrypt `biz_data`, encrypt the AES key into `random_key`, and sign the request according to the Common request specification.
{% endhint %}

**Statement availability**

* At `02:00 UTC` each day, Pagsmile starts generating and validating statements for the previous calendar day.
* A statement is available through this API after its aggregation and balance validation have completed successfully.
* The maximum query period is 90 calendar days, including both `start_date` and `end_date`.
* This API returns statements for partner accounts only. It does not return merchant account statements.
* Statement records are calculated separately for each partner account currency.

**Request body**

**Decrypted `biz_data` fields**

<table><thead><tr><th width="195.98828125">Field</th><th width="124.4453125">Type</th><th width="117">Requirement</th><th>Description</th></tr></thead><tbody><tr><td><code>start_date</code></td><td>string</td><td>M</td><td>Start of the statement period, inclusive.<br>Format: <code>yyyy-MM-dd</code>.</td></tr><tr><td><code>end_date</code></td><td>string</td><td>M</td><td>End of the statement period, inclusive.<br>Format: <code>yyyy-MM-dd</code>.<br>The requested period must not exceed 90 calendar days.</td></tr><tr><td><code>currency</code></td><td>string</td><td>O</td><td>Three-letter ISO 4217 code of the partner account currency. Omit this field to return statements for all currencies.</td></tr><tr><td><code>account_no</code></td><td>string</td><td>M</td><td>Pagsmile-assigned identifier of the partner virtual account credited by the deposit</td></tr><tr><td><code>page_num</code></td><td>integer</td><td>O</td><td>One-based page number of the result set.<br>Default: <code>1</code>.</td></tr><tr><td><code>page_size</code></td><td>integer</td><td>O</td><td>Maximum number of records returned on each page.<br>Default: <code>10</code>.<br>Maximum: <code>30</code>.</td></tr></tbody></table>

**Plaintext `biz_data` example**

{% hint style="info" %}
This example retrieves USD daily statements for two statement dates.
{% endhint %}

```json
{
  "start_date": "2026-10-09",
  "end_date": "2026-10-10",
  "currency": "USD",
  "account_no": "1234567890",
  "page_num": 1,
  "page_size": 10
}
```

**Request example**

```bash
curl --request POST \
  --url https://rem-api-sandbox.pagsmile.com/remittance/partner/query-daily-statements \
  --header 'Content-Type: application/json; charset=UTF-8' \
  --data '{
    "partner_id": "<your_partner_id>",
    "app_id": "<your_app_id>",
    "timestamp": "2026-10-11 03:00:00",
    "version": "2.0",
    "language": "en",
    "random_key": "<RSA-encrypted AES key>",
    "request_id": "<globally_unique_request_id>",
    "sign_type": "RSA",
    "biz_data": "<AES-encrypted biz_data>"
  }'
```

{% hint style="info" %}
Use the `partner_id` and `app_id` assigned to your integration. The values above are placeholders.
{% endhint %}

**Response**

{% tabs %}
{% tab title="Success" %}
The `data` field in the response envelope is AES-encrypted. Decrypt `random_key` with your RSA private key, then use the resulting AES key to decrypt `data`. See [Security](https://docs.pagsmile.com/remittance-api/security) for implementation details.

**Encrypted response example**

```json
{
  "code": "10000",
  "msg": "Success",
  "data": "<AES-encrypted response data>",
  "total": 2,
  "random_key": "<RSA-encrypted AES key>",
  "sign_type": "RSA",
  "app_id": "2017051914172236111"
}
```

**Decrypted `data` example**

```json
[
  {
    "account_no": "1234567890",
    "created_at": "2026-10-10 02:05:00",
    "statement_date": "2026-10-09",
    "currency": "USD",
    "opening_balance": "12345.21",
    "opening_available_balance": "12345.21",
    "amount_change_total": "12.12",
    "closing_balance": "12357.33",
    "amount_block_total": "0.00",
    "closing_available_balance": "12357.33"
  },
  {
    "account_no": "1234567890",
    "created_at": "2026-10-11 02:05:00",
    "statement_date": "2026-10-10",
    "currency": "USD",
    "opening_balance": "12357.33",
    "opening_available_balance": "12357.33",
    "amount_change_total": "-12.12",
    "closing_balance": "12345.21",
    "amount_block_total": "0.00",
    "closing_available_balance": "12345.21"
  }
]
```

{% endtab %}

{% tab title="Invalid signature" %}

```json
{
  "code": "40002",
  "msg": "Business Failed",
  "sub_code": "invalid-signature",
  "sub_msg": "invalid signature"
}
```

{% endtab %}
{% endtabs %}

**Response data fields**

<table><thead><tr><th width="194.2265625">Field</th><th width="97.72265625">Type</th><th width="113.73828125">Requirement</th><th>Description</th></tr></thead><tbody><tr><td><code>account_no</code></td><td>string</td><td>M </td><td>Pagsmile-assigned identifier of the partner virtual account credited by the deposit</td></tr><tr><td><code>created_at</code></td><td>string</td><td>M</td><td>Date and time when the daily statement was generated.<br>Format: <code>yyyy-MM-dd HH:</code>​<code>mm:ss</code>.<br>Timezone: UTC.</td></tr><tr><td><code>statement_date</code></td><td>string</td><td>M</td><td>Calendar date covered by the statement.<br>Format: <code>yyyy-MM-dd</code>.</td></tr><tr><td><code>currency</code></td><td>string</td><td>M</td><td>Three-letter ISO 4217 code of the partner account currency.</td></tr><tr><td><code>opening_balance</code></td><td>string</td><td>M</td><td>The account’s booked balance at the beginning of the <code>statement_date</code>.</td></tr><tr><td><code>opening_available_balance</code></td><td>string</td><td>M</td><td>The account’s available balance at the beginning of the <code>statement_date</code>.</td></tr><tr><td><code>amount_change_total</code></td><td>string</td><td>M</td><td>Net change in the account’s booked balance during the <code>statement_date</code>.<br>Positive values indicate a net increase; negative values indicate a net decrease.</td></tr><tr><td><code>closing_balance</code></td><td>string</td><td>M</td><td>The account’s booked balance at the end of the <code>statement_date</code>.</td></tr><tr><td><code>amount_block_total</code></td><td>string</td><td>M</td><td>Net change in the account’s frozen funds during the <code>statement_date</code>.<br>Positive values indicate a net increase in frozen funds; negative values indicate a net decrease.</td></tr><tr><td><code>closing_available_balance</code></td><td>string</td><td>M</td><td>The account’s available balance at the end of the <code>statement_date</code></td></tr></tbody></table>

{% hint style="info" %}
All monetary values are returned as decimal strings in the currency specified by `currency`. Use the string values as provided to avoid floating-point rounding errors.
{% endhint %}

**Related APIs**

* [Query Partner Balance](https://docs.pagsmile.com/remittance-api/business/partner/query-partner-balance)
* [Query Partner Transactions](https://docs.pagsmile.com/remittance-api/business/partner/query-partner-transactions)
