Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Data Sync & ETL

Data Sync & ETL

Sync Stripe Charges to HubSpot Contacts

On a schedule, it fetches Stripe charges, totals the amounts per customer, and updates the matching HubSpot contacts.

What it does

## Sync Stripe charges to HubSpot contacts 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. ### How it works 1. On a schedule, the first Stripe node gets all charges. The default schedule is once a day at midnight. 2. Once the charges are returned, the second Stripe node gets extra customer information. 3. Once the customer information is returned, 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. 4. Once we have the total amount charged per contact, the Create or update customer node will create a new HubSpot property to store the total amount charged. If the property already exists, it will update the property. Workflow written by David Sha.

The steps

  1. If charge has customer
  2. Get customer
  3. On schedule
  4. Remove duplicate customers
  5. Aggregate `amount_captured`
  6. Aggregate totals
  7. Create or update customer
  8. Merge data
  9. Get all charges
  10. Get HubSpot field
  11. Create field in HubSpot
  12. Configure
  13. Skip field checking
  14. Do nothing

15 steps in total.

Similar automations