# List Transactions — BlueSnap

> List BlueSnap transactions via the Reporting API. Report data is delayed by about one hour, so transactions from the last hour may not appear yet (use Get Transaction for a just-created transaction). Returns transaction summaries whose…

- Key: `bluesnap-list-transactions`
- Type: Action (Read-only)
- Version: 0.0.1
- App: BlueSnap (`bluesnap`) — https://pipedream.com/apps/bluesnap.md
- This page (HTML): https://pipedream.com/apps/bluesnap/actions/list-transactions
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/bluesnap/actions/list-transactions/list-transactions.mjs

## Description

List BlueSnap transactions via the Reporting API. Report data is delayed by about one hour, so transactions from the last hour may not appear yet (use **Get Transaction** for a just-created transaction). Returns transaction summaries whose `Invoice ID` field is the transactionId usable in **Get Transaction** and **Refund Transaction**. The output includes `totalRowCount` and, when more rows remain, a `nextPageToken` to pass back into this action for the next page. [See the documentation](https://developers.bluesnap.com/v8976-Reporting/reference/get-report-data)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `period` | `string` | Yes | Reporting period covered by the report. Use CUSTOM together with From Date and To Date to report on an explicit range. |
| `fromDate` | `string` | No | Start date as MM/DD/YYYY (e.g. 01/01/2025). Required when period is CUSTOM. |
| `toDate` | `string` | No | End date as MM/DD/YYYY (e.g. 12/31/2025). Required when period is CUSTOM. |
| `limit` | `integer` | No | Maximum number of transactions to return (page size). Must be between 1 and 1000. |
| `nextPageToken` | `string` | No | The nextPageToken value returned by a previous run of this action, to fetch the following page. The token already encodes the original query, so Period, From Date, To Date, and Limit are ignored when it is set. Omit it for the first page. |

## 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": "bluesnap",
      },
    },
  },
)

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: "bluesnap-list-transactions",
  arguments: {
    period: "Period",
    fromDate: "From Date",
  },
})
```

**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: "bluesnap-list-transactions",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bluesnap: { authProvisionId: "apn_xxxxxxx" },
    period: "Period",
    fromDate: "From Date",
  },
})

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": "bluesnap-list-transactions",
    "configured_props": {
      "bluesnap": { "authProvisionId": "apn_xxxxxxx" },
      "period": "Period",
      "fromDate": "From Date"
    }
  }'
```

---

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