Stripe payments to Pipedrive: create people and deals (n8n)
At a glance
View source template on n8n.io (opens in new tab)Problem
Payments happen in Stripe but the CRM never hears about them, so sales and account records drift apart
Who it's for
An n8n Stripe-to-Pipedrive sync for SaaS companies, subscription businesses and agencies that take payments through Stripe and track customers in Pipedrive. The trigger: payments land in Stripe but the CRM never hears about them, so sales and account records drift apart and nobody sees who has paid.
Skip it if you need refunds, subscription changes or cancellations mirrored too (none are handled), if you charge in several currencies, or if returning customers matter: in the shared template, a payer who's already in Pipedrive never gets a new deal.
Tools and what each does
- n8n Webhook (POST)
- Receives the event Stripe sends to your endpoint.
- Set node
- Pulls out the event ID, event type and the payment object.
- HTTP Request to Stripe's API
- Re-fetches the event by ID with your secret key, so only events that exist in your Stripe account continue.
- Pipedrive (node version 1)
- Searches for a person by the customer's email, creates the person if missing (with amount, source, payment method and status custom fields), and creates a deal titled 'Deposit — email — amount'.
- IF nodes
- Branch on whether the person exists, and are meant to skip events already recorded.
Steps
- In Stripe, add a webhook endpoint pointing at the n8n URL and choose the events to send.
- A payment event arrives; n8n extracts its ID, type and payload.
- n8n fetches the same event from Stripe's API.
- It searches Pipedrive for a person with the payer's email (customer_details.email).
- New payer: create the person, then a deal for the amount linked to them.
- Existing payer: an IF is supposed to check the event ID and create a deal only for new events.
Known problems in the source template
Found by reading the template's JSON, not by running it. Likely fails as shipped.
Problem: The 'If event id exist' check compares the Stripe event ID with itself, so it's always true and the existing-person path always goes to 'Do nothing'. Returning customers likely never get a deal, and no stored event ID is ever checked.
Fix: Search Pipedrive deals for the event ID in your Stripe-event custom field (or keep a list of processed IDs) and create the deal only when it isn't found.
Problem: Every custom-field key is the placeholder 'YOUR_AWS_SECRET_KEY_HERE', so the amount, source, payment method, status and event ID likely aren't saved.
Fix: Replace each with the matching Pipedrive custom-field key from your account.
Before you start
- A Stripe account and a secret API key (stored in an n8n Header Auth credential as 'Authorization: Bearer …').
- A Pipedrive account with API access, plus custom fields for amount, payment method, status, source and Stripe event ID, and their field keys.
- An n8n instance reachable over HTTPS.
- Setup estimate: 1–2 h (ESTIMATE).
What can go wrong
No AI involved. Needs a Stripe secret API key, a Pipedrive account with API access, custom fields created in Pipedrive, and an HTTPS-reachable n8n webhook. Store the Stripe key only in n8n credentials. Customer names, emails and payment details are copied into Pipedrive, so check that your privacy notice covers it. Refunds and cancellations are not handled unless you add them.
- Silent failureThe email is read from customer_details, which Stripe Checkout Sessions carry. Other events (for example payment_intent.succeeded or invoice events) likely have no customer_details, so the search runs with an empty email. Subscribe the endpoint only to checkout.session.completed, or map the email per event type.
- Silent failureAmounts are divided by 100 and the currency isn't passed to Pipedrive. Stripe lists zero-decimal currencies (for example JPY) where that's wrong, and the deal is saved in your Pipedrive default currency.
- ReliabilityStripe's docs say endpoints can receive the same event more than once, and the new-payer path has no duplicate check, so a retried event could create a second person and deal. The event re-fetch confirms an event is real but doesn't check Stripe's webhook signature.
- Source qualityPipedrive node version 1 calls Pipedrive's API v1 person and deal endpoints, which Pipedrive lists as deprecated and out of support since Aug 1, 2026 (replaced by API v2). They may keep working without guarantees; rebuild with the current node version.
- Data privacyCustomer names, emails and payment details are copied into Pipedrive. Store the Stripe key only in n8n credentials, and check your privacy notice covers it.
How to adapt it
- Add branches for charge.refunded and customer.subscription.deleted that update or close the matching deal.
- Set the person's name from customer_details.name instead of using the email twice.
- Post a Slack message when a deal is created from a payment.
- Pass the payment currency to the deal and handle zero-decimal currencies.
Sources we checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.