Introduction
Sync your payment data directly to HubSpot CRM. Create contacts from successful payments, track subscription lifecycle, and build comprehensive customer profiles—all automatically triggered by Dodo Payments events.This integration requires HubSpot admin access to configure OAuth scopes and API permissions.
Getting Started
1
Open the Webhook Section
In your Dodo Payments dashboard, go to Webhooks → + Add Endpoint and expand the integrations dropdown.

2
Select HubSpot
Choose the HubSpot integration card.
3
Connect HubSpot
Click Connect to HubSpot and authorize the required OAuth scopes.
4
Configure Transformation
Edit the transformation code to map payment data to HubSpot CRM objects.
5
Test & Create
Test with sample payloads and click Create to activate the sync.
6
Done!
🎉 Payment events will now automatically create/update records in your HubSpot CRM.
Transformation Code Examples
Create Contact from Payment
create_contact.js
Update Contact with Subscription
update_contact.js
Create Deal from Payment
create_deal.js
Tips
- Use HubSpot’s API explorer to test object creation
- Map payment amounts to HubSpot currency fields
- Include customer IDs for proper associations
- Set appropriate deal stages based on payment status
Troubleshooting
Records not created in HubSpot
Records not created in HubSpot
- Verify OAuth scopes include write permissions
- Check that required HubSpot properties exist
- Ensure customer email is valid and unique
- Review HubSpot API rate limits
Transformation errors
Transformation errors
- Validate JSON structure matches HubSpot API format
- Check that all required properties are included
- Ensure property names match HubSpot field names exactly