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
How it works
- 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.
- Once property is acertained, the first Stripe node gets all charges.
- Once the charges are returned, the second Stripe node gets extra customer information.
- Once the customer information is returned,
Merge datanode will merge the customer information with the charges so that the next nodeAggregate totalscan calculate the total amount charged per contact. - Once we have the total amount charged per contact, the
Create or update customernode will create a new HubSpot contact if it doesn't exist or update the contact if it does exist with the total amount charged.