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, it will update the property.
## Prerequisites
- [Stripe credentials](https://docs.n8n.io/integrations/builtin/credentials/stripe/).
- [HubSpot credentials](https://docs.n8n.io/integrations/builtin/credentials/hubspot/).
## How it works
1. On a schedule, check if the property exists in HubSpot. If it doesn't exist, create it. The default schedule is once a day at midnight.
2. Once the property is ascertained, the first Stripe node gets all charges.
3. Once the charges are returned, the second Stripe node gets extra customer information.
4. Once the customer information is returned, the `Merge data` node will merge the customer information with the charges so that the next node, `Aggregate totals`, can calculate the total amount charged per contact.
5. Once we have the total amount charged per contact, the `Create or update customer` node will create a new HubSpot contact if it doesn't exist or update the contact if it does exist with the total amount charged.
Platform
n8n
Category
Business Operations & ERPs
Price
Free
Creator
Michael Green
if
set
code
noOp
merge
stripe
hubspot
itemLists
stickyNote
httpRequest
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.