> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fintoc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Movement object

> Reference for the Movement object in Fintoc's Movements API, representing a single bank account transaction such as a transfer, check, debit, or credit.

## The Movement object

A `Movement` represents a single transaction in a bank account, such as a transfer, a check, or another debit or credit. It is retrieved from an institution for an account under a `Link` and is returned when you list or fetch movements.

```json Movement Object theme={null}
{
  "id": "mov_BO381oEATXonG6bj",
  "object": "movement",
  "amount": 59400,
  "comment": "Pago factura 198",
  "currency": "CLP",
  "description": "Traspaso de:Fintoc SpA",
  "document_number": null,
  "pending": false,
  "post_date": "2020-04-17T00:00:00.000Z",
  "recipient_account": null,
  "reference_id": "123740123",
  "sender_account": {
    "holder_id": "111111111",
    "holder_name": "Test Company 1",
    "institution": {
      "id": "cl_banco_de_chile",
      "country": "cl",
      "name": "Banco de Chile"
    },
    "number": "0000000000"
  },
  "status": "confirmed",
  "transaction_date": "2020-04-16T11:31:12.000Z",
  "transfer_id": null,
  "type": "transfer"
}
```

| Attribute | Type | Description |
| :- | :- | :- |
| `id` | `string` | Unique identifier for the Movement |
| `object` | `string` | Identifier for the type of object. Its value for `Movements` will always correspond to `movement` |
| `amount` | `integer` | Movement amount in the smallest currency unit. Positive values increase the account balance, and negative values decrease it. |
| `comment` | `string` | If the movement is a transfer, this attribute indicates the transfer comment. It can be `null` |
| `currency` | `string` | [Currency ISO code](https://www.iso.org/iso-4217-currency-codes.html) |
| `description` | `string` | Description for the movement, retrieved from the institution |
| `document_number` | `string` or `null` | Document number the institution assigns to the movement. `null` when the institution does not provide a document number. |
| `pending` | `boolean` | If the movement is a check, this field indicates whether the bank has yet to clear the check. If the movement isn't a check, this attribute is `false`. `pending` is independent of `status`. See [`pending` and `status`](#pending-and-status). |
| `post_date` | `string` | Movement's accounting date, using ISO 8601. This field holds a date only, so its time component is always `00:00:00.000Z`. |
| `recipient_account` | `object` | Account that received the transfer. This field is `null` when the movement is not a transfer. See the Transfer Account object table below for details. |
| `reference_id` | `string` | Identifier retrieved from the institution. For transfers, this value is the operation number or transaction `id`. If the bank does not provide a transaction `id`, Fintoc uses the document number. For checks, this value is the document number. It can be `null`. |
| `sender_account` | `object` | Account that made the transfer. This field is `null` when the movement is not a transfer. See the Transfer Account object table below for details. |
| `status` | `string` | Status of the movement. Its values can be `confirmed`, `processing`, or `reversed`. See [Movement status](#movement-status). |
| `transaction_date` | `string` | Date and time the institution reports for the movement, using ISO 8601. It can be `null` when the movement is not a transfer. See the note below for details. |
| `transfer_id` | `string` or `null` | Identifier the institution assigns to the transfer. `null` when the movement is not a transfer or no transfer identifier is available. |
| `type` | `string` | Type of movement. Its values can be `transfer`, `check` or `other` |

> [!NOTE]
>
> **Post date and transaction date**
>
> Each movement includes `post_date` and `transaction_date` because banks use accounting dates internally. A transaction made on a Saturday can appear with Monday as its `post_date`. In that case, Saturday is the `transaction_date`, and Monday is the `post_date`.
>
> The `post_date` field is a date without a time, so Fintoc always returns it at `00:00:00.000Z`. Don't convert it to your local time zone, because the conversion can shift it to the previous day.
>
> The `transaction_date` field includes the time the institution reports. Depending on the institution, Fintoc can return Chilean local time with a `Z` suffix instead of a true UTC time. Check the values you receive for each institution before you convert `transaction_date` to another time zone.
>
> Fintoc doesn't set `transaction_date` to the time it reads the movement. The value always comes from the bank. How reliable it is depends on the movement `type`:
>
> * For `transfer` movements, `transaction_date` usually matches the time the payment was made.
> * For `other` movements, the bank might not report a time for each operation. The value can be the time of a bank batch or accounting process, so more than one movement can share the same timestamp. Don't present it as the time the payer made the transfer. Use `post_date` as the accounting date instead.
>
> `transaction_date` can also change when the bank updates the movement. See [Movements can change after creation](#movements-can-change-after-creation).

> [!NOTE]
>
> **Pending checks**
>
> The bank can take up to 48 business hours to confirm a check. The bank can reverse a pending check, for example because of lack of funds. Fintoc marks these checks with the `pending` flag so you know that the bank hasn't cleared them yet. The `pending` flag doesn't change the movement's `status`.

### Movement status

The `status` field indicates the current state of a movement. Most movements are `confirmed`. A movement can move to `processing` or `reversed` as Fintoc processes and validates the bank's data.

By default, [List movements](https://docs.fintoc.com/api/movements-api/movements/movements-list.md) returns only `confirmed` movements. Send `confirmed_only=false` to also get `processing` and `reversed` movements.

| Status | Description |
| :- | :- |
| `confirmed` | The bank has confirmed the movement, but the movement can still change. This is the default status for all movements; see [Movements can change after creation](#movements-can-change-after-creation). |
| `processing` | The movement is being evaluated and may change to `confirmed` or `reversed`. This is a transitory status that typically resolves within 12 hours. |
| `reversed` | The movement was reversed by the bank. The original transaction has been undone. |

### `pending` and `status`

`pending` and `status` are separate fields, and each one answers a different question:

* `pending` applies only to checks. It is `true` while the bank has yet to clear the check. For any other type of movement, it is always `false`.
* `status` applies to every movement. It tells you whether the movement is `confirmed`, `processing`, or `reversed`.

A check can have `pending` set to `true` and `status` set to `confirmed`. Movements you stored earlier don't update on their own. Request the movement again to get its current `pending` and `status` values.

### Movements can change after creation

The bank can update movements in the account statement after they first appear. These updates can arrive days or weeks after Fintoc first returns the movement. Fintoc keeps the same movement `id` when a movement changes. Fields that can change include:

* `type`. For example, a check deposit can first appear with `type` set to `other` and later change to `check`.
* `description`.
* `status` and `pending`. A `confirmed` movement isn't guaranteed to be final. The bank can still reverse it.
* Transfer data in `sender_account` and `recipient_account`.
* `transaction_date`. For example, when a movement changes from `other` to `transfer`, `transaction_date` can change to a different time or back to `null`.

To keep your records in sync:

1. Subscribe to the `account.refresh_intent.movements_modified` and `account.refresh_intent.movements_removed` events. See [Types of events](https://docs.fintoc.com/api/main-resources/events-reference/types-of-events.md).
2. When you receive `movements_modified`, take the `id` of each movement in `movements_changed`. Request the movement with [Get a movement](https://docs.fintoc.com/api/movements-api/movements/movements-get.md) and replace your stored copy with the response.
3. When you receive `movements_removed`, remove the movements whose `id` appears in `movements_removed` from your records.
4. Periodically list the current month's movements again and replace your stored copies by `id`.

Use the movement `id` as the key for your stored records. Don't match on `type` or `description`, because they can change.

### Deposits with more than one check or document

Fintoc reads movements from the bank account statement. When you deposit more than one check or document together, the bank lists the deposit as a single line. Fintoc returns that line as one movement for the total amount. The Movements API doesn't return a breakdown of the individual checks or documents in the deposit, and no field, parameter, or endpoint provides one.

The `type` of a deposit depends on what you deposited:

* Deposits of checks or documents have `type` set to `check`.
* Cash deposits have `type` set to `other`.

If you filter movements by `type`, include both values so you don't miss deposits.

The bank can later split a deposit into its individual items. When Fintoc detects the split:

1. Fintoc changes the aggregated movement's `status` to `reversed` and sends an `account.refresh_intent.movements_removed` event with the aggregated movement's `id` in `movements_removed`.
2. Fintoc creates one movement for each individual item and counts them in the `new_movements` field of the `account.refresh_intent.succeeded` event.

See [Types of events](https://docs.fintoc.com/api/main-resources/events-reference/types-of-events.md).

To reconcile deposits, match a deposit to the total amount of its items, not to each item. If the aggregated movement changes to `reversed`, remove the aggregated movement from your records and reconcile the individual movements instead. Keeping both records counts the same deposit twice.

### The Transfer Account object (within the Movement object)

The Transfer Account object identifies the account on the other side of a transfer, and it appears in the `sender_account` and `recipient_account` fields of a `Movement`.

| Attribute | Type | Description |
| :- | :- | :- |
| `holder_id` | `string` | Account owner's tax ID. In Chile, this value is a Chilean tax ID (RUT). |
| `holder_name` | `string` | Name of the owner of the account |
| `institution` | `object` | Institution to which the account belongs. It can be `null` |
| `number` | `string` | Account number. Does not include hyphens nor prefixed zeros. It can be `null` |

> [!WARNING]
>
> **Transfer data problems**
>
> Transfer data can be `null` or incorrect when the movement is not a transfer or when Fintoc cannot match the transfer to the bank statement. Always double-check transfer data before reconciling your movements. All other movement data is **always** reliable. Transfer data can change up to 5 days after Fintoc creates the movement.
