Sync Stripe charges to HubSpot contacts
Needs changesWhat 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).
- Configure (Edit Fields (Set)): sets or maps fields
- Skip field checking (If): checks a condition and branches into true / false
- Get all charges (Stripe): get many (charge)
- Get HubSpot field (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Merge: merges the data from its input branches
- If: checks a condition and branches into true / false
- Remove duplicate customers (Item Lists): reshapes item lists (legacy Item Lists node)
- Aggregate `amount_captured` (Item Lists): reshapes item lists (legacy Item Lists node)
- Aggregate totals (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
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.0 | Replace 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)
- If
n8n-nodes-base.if - Stripe
n8n-nodes-base.stripe - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Item Lists
n8n-nodes-base.itemLists - Code
n8n-nodes-base.code - HubSpot
n8n-nodes-base.hubspot - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp
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,…