Skip to content
English
  • There are no suggestions because the search field is empty.

Stripe Data Targets

Overview

DataBlend supports the following data targets for creating and updating records in Stripe.

  • Charges
  • Coupons
  • Credit Note
  • Customers
  • Invoice Items
  • Invoices
  • Promo Codes
  • Checkout Session
  • Payment Intent
  • Price
  • Payment Link
  • Pay Invoice
  • Payment Method
  • Setup Intent
  • Subscription
  • Subscription Item

 Configuration
Setting Required/ Optional Description
Name Required Descriptive free-text name for the data target.
Query Required Select the query that will generate the data for this target. See the relevant target type documentation for additional details on what query columns are required for your target.
Query Mode Required Select New unless you have a reason for choosing Latest or Specific.
Credential Required Select a Stripe Credential from the list.
API Version Optional Select the Stripe API version. For Subscription and Subscription Item.
Object Type Required Select the Object Type from the drop-down menu.
Account ID Optional If set, all rows in the CSV will be pushed to this Stripe account. If empty, each row's 'accountId' column determines the target account. 
Action Options Required for Subscription and Subscription Item

Select the action this data target performs. Each data target performs one action.

Subscription: Create, Update, Cancel, Resume
Subscription Item: Create, Update, Delete

To learn more about Stripe API requirements and see which fields are required for the query, please visit Stripe API reference.
 

Advanced

History Retention

History Retention (Days) allows users to decide how long they want the information from their data targets to be stored. This field is optional.

Timeout (seconds)

The Timeout section allows users to determine if they would like to timeout collections taking longer than a set number of seconds to collect data.

Skip If No Records Found

The “Skip if No Records Found” button is used to eliminate sending information to Data Targets unnecessarily. Simply enable the “Skip if No Records Found” toggle. The use of this toggle is optional.

Agent

The Agent drop-down for users to select any agent they have established. This is optional.

Run As

Run As allows users to select from a drop-down list of users to run the Workflow. This is optional. Please note that Run As is only available to Admin users. If a user is set as the Run As and then demoted to a Member, the user which demoted the Run As user will instead be set as the Run As.

Invoice

Some suggested fields for the Invoice Data Target.

"accountTaxId"

, "autoAdvance"

, "automaticTaxOptionEnabled"

, "collectionMethod"

, "customFieldOptionsName"

, "customFieldOptionsValue"

, "customer"

, "daysUntilDue"

, "defaultPaymentMethod"

, "defaultSource"

, "defaultTaxRate"

, "description"

, "dueDate"

, "footer"

, "forgive"

, "id"

, "invoiceDiscountOptionsCoupon"

, "invoiceDiscountOptionsDiscount"

, "metadataKey"

, "metadataValue"

, "offSession"

, "paidOutOfBand"

, "paymentMethod"

, "paymentSettingsPreferredLanguage"

, "paymentSettingsRequestThreeDSecure"

, "paymentSettingsTransactionType"

, "paymentSettingsVerificationMethod"

, "source"

, "statementDescriptor"

, "subscription"

, "transactionType"

, "amount_due"

 

Pay Invoice

The Pay Invoice data target marks existing Stripe invoices as paid. Use it when an invoice was paid outside of Stripe (for example, by check, wire, or ACH recorded in another system) so the invoice status in Stripe stays in sync.

How it works

  • Each row in the query pays one invoice. Include an id column containing the Stripe invoice ID (for example, in_1Abc...).
  • All rows are processed in a single data target run.
  • paid_out_of_band is sent as true by default, so no charge is made in Stripe. To override it, include a paid_out_of_band column with your own value.
  • Any other columns in the query are passed to Stripe as Pay Invoice parameters.
  • If an individual row fails — for example, the invoice is already paid or the id is blank — DataBlend logs a warning for that row and continues with the remaining rows. The run completes with warnings rather than failing.
  • If Stripe continues to rate-limit requests after automatic retries, the run stops.

Fields

Field Required/ Optional Type Description
id Required String The Stripe ID of the invoice to pay.
paid_out_of_band Optional Boolean Whether the invoice was paid outside of Stripe. Defaults to true when the column is omitted or blank.
forgive Optional Boolean When the payment source has insufficient funds, controls whether Stripe charges the full amount available on the source, up to the amount due.
mandate Optional String ID of the mandate to use for this invoice.
off_session Optional Boolean Indicates whether the customer is on or off session while the payment is attempted.
payment_method Optional String A PaymentMethod to be charged.
source Optional String A payment source to be charged.

Tip: Filter your query to invoices with an open status. Invoices that are already paid return a row-level error.

For full parameter details, see the Stripe Pay Invoice API reference.

 

Subscription and Subscription Item

How it works

Each query row becomes one Stripe request. Name your query columns after Stripe's API parameters (snake_case), using dot notation for nested fields. For example, metadata.erp_id is sent as metadata[erp_id]. Any parameter in Stripe's API reference can be used.

Reserved columns (never sent to Stripe): id (the Stripe record to act on), accountId, transactionType, externalId.

Array fields

  • For one element, use plain dot notation. DataBlend adds the index automatically: items.price is sent as items[0][price].
  • For several items in one row, use indexed column names (items.0.price, items.1.price) or a JSON array in a single cell, for example [{"price":"price_A","quantity":1},{"price":"price_B"}].

Dates: Values are sent as-is. Timestamps such as trial_end, billing_cycle_anchor, cancel_at, and proration_date must be Unix seconds, or a special value Stripe supports (for example, trial_end = now).

Subscription

Action Required columns Common optional columns
Create customer, plus at least one item: items.price, items.price_data.*, or an items JSON array items.quantity, collection_method, days_until_due, default_payment_method, trial_period_days, trial_end, billing_cycle_anchor, proration_behavior, payment_behavior, cancel_at_period_end, description, metadata.*, default_tax_rates, discounts.coupon, automatic_tax.enabled, currency
Update id (sub_…) items.id with items.quantity or items.price (items.deleted = true removes an item), proration_behavior, cancel_at_period_end, cancel_at, trial_end, default_payment_method, pause_collection.behavior, metadata.*
Cancel id invoice_now, prorate, cancellation_details.comment, cancellation_details.feedback
Resume id billing_cycle_anchor, proration_behavior, proration_date
  • Cancel ends the subscription immediately. To cancel at the end of the billing period, use Update with cancel_at_period_end = true.
  • Resume works only on subscriptions that Stripe paused at trial end. Give the subscription a default_payment_method first. To lift a pause_collection pause, use Update instead.

Subscription Item

Action Required columns Common optional columns
Create subscription (sub_…), plus price or price_data.* quantity, proration_behavior, payment_behavior, tax_rates, discounts.coupon, metadata.*
Update id (si_…) quantity, price, proration_behavior, proration_date, payment_behavior, tax_rates, metadata.*
Delete (confirm in the UI) id proration_behavior, proration_date, clear_usage
  • Stripe won't add a second item that uses a price already on the subscription.
  • Stripe won't delete a subscription's last item. Cancel the subscription instead.

Errors

If a row is missing a required column or Stripe rejects it, that row is logged as a warning and the remaining rows still run. The execution log ends with "all N succeeded" or "N succeeded, M failed."

Please verify any fields you may need with Stripes documentation: Stripe API Reference