Pipedrive Integration Development
This guide covers developing and testing the Pipedrive integration for Billy.Overview
Pipedrive integration allows Billy to:- Create and manage deals and organizations
- Generate invoices and quotes
- Associate invoices with deals
- Manage customer relationships
- Handle sales pipeline automation
Development Setup
1. Access Pipedrive Developer Account
Go to our Pipedrive Developer Account to create and manage your development application.2. Create Your Development Application
-
Create New Application
- Click “Create app”
- Type: “Privé” (Private)
- Name: “Billy - [Your Name] [Dev]”
- Redirect URI:
https://localhost:3000/oauth/pipedrive/redirect_uri
-
Configure OAuth Scopes
- Refer to
apps/app/integrations/pipedrive/oauth/getScopes.ts
for required scopes - Ensure all necessary permissions are granted
- Refer to
-
Get Credentials
- Copy your Client ID and Client Secret
- Note your API endpoint
3. Environment Configuration
Add these variables to your.env.local
:
4. Enable Application
- Login to your Pipedrive sandbox account
- Navigate to your OAuth app in the developer portal
- Complete the OAuth flow to enable the application
Custom Modals Setup
Required Modals
Add these custom modals to your Pipedrive application:Modal Name | Iframe URL | Entrypoint |
---|---|---|
Créer une facture Pennylane | <Tunnel URL>/iframes/pipedrive/pennylane/deals | Clear (use Pipedrive SDK) |
Créer un devis Pennylane | <Tunnel URL>/iframes/pipedrive/pennylane/quotes | Clear (use Pipedrive SDK) |
Associer une facture | <Tunnel URL>/iframes/pipedrive/pennylane/associate_invoices | Clear (use Pipedrive SDK) |
Associer un devis | <Tunnel URL>/iframes/pipedrive/pennylane/associate_quotes | Clear (use Pipedrive SDK) |
Créer un client | <Tunnel URL>/iframes/pipedrive/pennylane/organization/create_client | Clear (use Pipedrive SDK) |
Configuration | <Tunnel URL>/iframes/pipedrive/pennylane/configuration_fields | Clear (use Pipedrive SDK) |
Custom Panels Setup
Add these custom panels to your Pipedrive application:Panel Name | API Endpoint | Panel Locations | Main Action |
---|---|---|---|
Pennylane (Your Name [Dev]) | <Tunnel URL>/iframes/pipedrive/pennylane/invoice_panel | deals | Default |
Pennylane (Your Name [Dev]) | <Tunnel URL>/iframes/pipedrive/pennylane/organization_panel | organizations | Default |
PIPEDRIVE_PENNYLANE_CLIENT_SECRET
if required.
Troubleshooting
Common Issues
- Modal not loading: Check tunnel URL and iframe endpoints
- OAuth redirect errors: Verify redirect URI matches exactly
- API authentication: Ensure OAuth tokens are valid
- Iframe communication: Check CORS and security policies
Getting Help
- Check Pipedrive Developer Documentation
- Review Pipedrive API Reference
- Contact the team on Slack:
#squad-billy
- Check existing Pipedrive integration code for examples