Stripe ACTION
List Refunds
Find or list refunds. By default returns an array of refund objects (auto-paginated up to
Limit). Set Return Pagination Info to true to instead receive { data, has_more, next_starting_after } for a single Stripe page (max 100 per call) — pass next_starting_after as Starting After on the next call to iterate. See the documentation.- Action
- Read only
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Stripe account once, then configure and run List Refunds from your backend or agent.
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: "stripe-list-refunds",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
stripe: { authProvisionId: "apn_xxxxxxx" },
charge: "Charge ID",
paymentIntent: "Payment Intent ID",
},
})
console.log(result)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": "stripe-list-refunds",
"configured_props": {
"stripe": { "authProvisionId": "apn_xxxxxxx" },
"charge": "Charge ID",
"paymentIntent": "Payment Intent ID"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "stripe",
},
},
},
)
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: "stripe-list-refunds",
arguments: {
charge: "Charge ID",
paymentIntent: "Payment Intent ID",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
charge Charge ID | string | Example: ch_0IwGKaGHO3mdGsgAMweyhl0E Optional Dynamic |
paymentIntent Payment Intent ID | string | Example: pi_0FhyHzGHO3mdGsgAJNHu7VeJ Optional Dynamic |
limit Result Limit | integer | Maximum records to return. Auto-paginated up to 10000 by default; capped at 100 when Return Pagination Info is enabled (Stripe's per-call limit). Required |
endingBefore Ending Before | string | A cursor for use in pagination. Ending Before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list. Optional |
startingAfter Starting After | string | A cursor for use in pagination. Starting After is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list. Optional |
returnPaginationInfo Return Pagination Info | boolean | If true, returns { data, has_more, next_starting_after } instead of a plain array. Use this to paginate: pass the returned next_starting_after value as Starting After on the next call to fetch the next page. Default false returns an auto-paginated array. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- stripe-list-refunds
- Version
- 0.2.1
- App
- Stripe
- Authentication
- API key
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗