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

# Plaid Transactions Sync

> Publish a bounded Plaid transaction update at its terminal cursor.

Start with a Plaid Item enabled for Transactions. Follow the
[REST mount guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind), give the
mount a protected `data` label, and pass as `receivers.provider` a receiver bound with `providerEndpoint` from `@bijectionhq/app-rest`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const clientId = secret();
const apiSecret = secret();
const accessToken = secret();

const plaidApi = providerEndpoint(
  "plaid.transactions.sync",
  "https://production.plaid.com",
  "/transactions/sync",
  { kind: "multiSecret", bindings: [
    { kind: "jsonBody", fieldPath: ["client_id"], secret: clientId },
    { kind: "jsonBody", fieldPath: ["secret"], secret: apiSecret },
    { kind: "jsonBody", fieldPath: ["access_token"], secret: accessToken },
  ] },
  data,
);
```

Use `https://sandbox.plaid.com` for a sandbox Item and credentials.
Set the three secrets separately with `bijection secret set`. The driver adds them to the fixed HTTPS POST
after the app submits its non-secret count and cursor. Use a new mount
for another Item.

Initialize with
`{ profile: { mode: "provider", provider: "plaid.transactions.sync", limit: 25 } }`.
This starts with the Item's history. An installation migrating from an
existing complete feed may set `selection: "now"` to begin from Plaid's
current update position and observe only later changes.

Each page can carry up to 100 changes and 36 KiB. The complete update
must fit 16 pages, 256 distinct transaction IDs, and 64 KiB of staged
changes. The app checkpoints the terminal cursor in the transaction that
publishes the whole update. If an in-progress update fails, a later pass
starts from the last committed cursor. No portion of the failed update
becomes visible. A history or update exceeding these bounds leaves the
source at its last committed position.

Added and modified entries upsert by `transaction_id`. Explicit removals
delete that ID. A posted transaction retains its own ID and Plaid's
`pending_transaction_id` reference. A missing transaction stays published
unless Plaid reports its removal.
[Plaid Transactions Sync](https://plaid.com/docs/api/products/transactions/#transactionssync)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.