Templates / Sync Stripe charges to HubSpot contacts

Sync Stripe charges to HubSpot contacts

Needs changes

by n8n Team ✓ · 1,909 views · created 2023-01-05 · CRM

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Item Lists (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 15 nodes and runs on a schedule (every day). Along the way it connects Stripe and HubSpot. It also calls api.hubapi.com over HTTP.

How it runs

Trigger: On a schedule (every day).

  1. Configure (Edit Fields (Set)): sets or maps fields
  2. Skip field checking (If): checks a condition and branches into true / false
  3. Get all charges (Stripe): get many (charge)
  4. Get HubSpot field (HTTP Request): calls an HTTP API
  5. If: checks a condition and branches into true / false
  6. Merge: merges the data from its input branches
  7. If: checks a condition and branches into true / false
  8. Remove duplicate customers (Item Lists): reshapes item lists (legacy Item Lists node)
  9. Aggregate `amount_captured` (Item Lists): reshapes item lists (legacy Item Lists node)
  10. Aggregate totals (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

StripeHubSpot

HTTP calls to: api.hubapi.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Item Lists (legacy) in Remove duplicate customers, Aggregate `amount_captured`: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Item Lists (legacy)
Remove duplicate customers, Aggregate `amount_captured`
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)

Nodes used (10)

From the author

This workflow pushes Stripe charges to HubSpot contacts. It uses the Stripe API to get all charges and the HubSpot API to update the contacts. The workflow will create a new HubSpot property to store the total amount charged. If the property already exists,…

Excerpt from n8n Team's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.