← Stripe

List Balance History with Stripe API

Pipedream makes it easy to connect APIs for Stripe and 800+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
List Balance History with the Stripe API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to List Balance History with the Stripe API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the List Balance History action
    1. Connect your Stripe account
    2. Optional- Select a Payout ID
    3. Optional- Select a Currency
    4. Optional- Select a Transaction Type
    5. Configure Result Limit
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

List Balance History on Stripe
Description:Returns the last 100 transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. [See the docs](https://stripe.com/docs/api/balance_transactions/list) for more information
Version:0.0.2
Key:stripe-list-balance-history

Code

const pick = require("lodash.pick");
const stripe = require("../../stripe.app.js");

module.exports = {
  key: "stripe-list-balance-history",
  name: "List Balance History",
  type: "action",
  version: "0.0.2",
  description: "Returns the last 100 transactions that have contributed to the Stripe account " +
    "balance (e.g., charges, transfers, and so forth). The transactions are returned in " +
    "sorted order, with the most recent transactions appearing first. [See the " +
    "docs](https://stripe.com/docs/api/balance_transactions/list) for more information",
  props: {
    stripe,
    payout: {
      propDefinition: [
        stripe,
        "payout",
      ],
    },
    currency: {
      propDefinition: [
        stripe,
        "currency",
      ],
    },
    type: {
      propDefinition: [
        stripe,
        "balance_transaction_type",
      ],
    },
    limit: {
      propDefinition: [
        stripe,
        "limit",
      ],
    },
  },
  async run({ $ }) {
    const params = pick(this, [
      "payout",
      "type",
    ]);
    const resp = await this.stripe.sdk().balanceTransactions.list(params)
      .autoPagingToArray({
        limit: this.limit,
      });
    $.export("$summary", "Successfully fetched balance transactions");
    return resp;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
StripestripeappThis component uses the Stripe app.
Payout IDpayoutstringSelect a value from the drop down menu.
CurrencycurrencystringSelect a value from the drop down menu.
Transaction TypetypestringSelect a value from the drop down menu:adjustmentadvanceadvance_fundinganticipation_repaymentapplication_feeapplication_fee_refundchargeconnect_collection_transfercontributionissuing_authorization_holdissuing_authorization_releaseissuing_disputeissuing_transactionpaymentpayment_failure_refundpayment_refundpayoutpayout_cancelpayout_failurerefundrefund_failurereserve_transactionreserved_fundsstripe_feestripe_fx_feetax_feetopuptopup_reversaltransfertransfer_canceltransfer_failuretransfer_refund
Result Limitlimitinteger

Maximum number of results

Authentication

Stripe uses API keys for authentication. When you connect your Stripe account, Pipedream securely stores the keys so you can easily authenticate to Stripe APIs in both code and no-code steps.

1) Create a Stripe API key. We recommend you restrict this API key to only operations you need to execute from Pipedream (e.g. a read-only key).

2) Enter the API key below

About Stripe

Payment Platform

More Ways to Use Stripe

Triggers

Actions

Cancel a Payment Intent with the Stripe API

Cancel a payment intent. Once canceled, no additional charges will be made by the payment intent and any operations on the payment intent will fail with an error. For payment intents with status=requires_capture, the remaining amount_capturable will automatically be refunded. See the docs for more information

 
Try it
Cancel Or Reverse a Payout with the Stripe API

Cancel or reverse a payout. A payout can be canceled only if it has not yet been paid out. A payout can be reversed only if it has already been paid out. Funds will be refunded to your available balance. See the docs for more information

 
Try it