# Get Account Transactions — GoCardless Bank Account Data (formerly Nordigen)

> Get the transactions of a Nordigen account. See the docs

- Key: `nordigen-get-account-transactions`
- Type: Action (Read-only)
- Version: 1.0.2
- App: GoCardless Bank Account Data (formerly Nordigen) (`nordigen`) — https://pipedream.com/apps/nordigen.md
- This page (HTML): https://pipedream.com/apps/nordigen/actions/get-account-transactions
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/nordigen/actions/get-account-transactions/get-account-transactions.mjs

## Description

Get the transactions of a Nordigen account. [See the docs](https://ob.nordigen.com/api/docs#/accounts/accounts_transactions_retrieve)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `requisitionId` | `string` | Yes | Select the requisitionId to use for this request Options are loaded from the connected account. |
| `accountId` | `string` | Yes | The account to retrieve information for Options are loaded from the connected account. |
| `dateFrom` | `string` | No | Retrieve transactions starting from this date. ISO 8601 format. Example: 2022-11-04 |
| `dateTo` | `string` | No | Retrieve transactions ending with this date. ISO 8601 format. Example: 2022-11-04 |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "nordigen",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "nordigen-get-account-transactions",
  arguments: {
    requisitionId: "Requisition Id",
    accountId: "AccountId",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "nordigen-get-account-transactions",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nordigen: { authProvisionId: "apn_xxxxxxx" },
    requisitionId: "Requisition Id",
    accountId: "AccountId",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "nordigen-get-account-transactions",
    "configured_props": {
      "nordigen": { "authProvisionId": "apn_xxxxxxx" },
      "requisitionId": "Requisition Id",
      "accountId": "AccountId"
    }
  }'
```

---

- App: https://pipedream.com/apps/nordigen.md · All apps: https://pipedream.com/apps
