Ecommerce integrations

Shopify-to-Pipedrive Reconciliation

I rebuilt the link between paid orders and sales deals so repeat events find the same deal and conflicting records reach a person who can resolve them.

A paid order enters a queue. An exact order reference updates its deal. Multiple matching deals go to a review queue.
Two paths through the reconciliation service, illustrated with example records.

Why checkout email caused duplicates

A buyer could pay with one email address while the sales team had the opportunity under another contact. The previous integration looked up the checkout email, missed the existing deal and created a second one. The two people records could both be valid. The order was the stable link.

What happens when the evidence disagrees

I made the Shopify order ID the primary reference and accounted for older deals that held only an order URL or number. If two deals carry the same strongest reference, the service pauses that order and alerts the team. The conflict has its own stored record, so someone can still resolve it if the notification has to be retried.

A refund poses a different question. Sales still needs the value of the original win, even after the customer gets money back. The integration records subsequent financial changes in the deal’s notes so both facts remain visible.

Build story

From operational mess to trustworthy system.

01

Receive the order

The service verifies the Shopify event and records it in Postgres before acknowledging delivery.

02

Identify the deal

A worker checks the order ID and recognizes order references on older deals.

03

Resolve the outcome

A clear match updates the deal. Conflicting references enter a persistent review queue.

What shipped

  • A webhook service and worker linking paid Shopify orders to Pipedrive deals
  • Pipeline assignment, deal closure and handling for cancellations and refunds
  • Slack notifications for records requiring a decision

Guardrails

  • An acknowledged event survives a worker restart
  • Multiple deals with the same strongest order reference require review
  • Later financial changes are recorded in notes, preserving the previously won deal value

Proof artifacts

  • An order-to-deal matching specification covering historical references
  • An operations guide for pending events and review conflicts
  • A duplicate-consolidation procedure for existing CRM records

Outcome

  • Repeated order events can resolve to the same deal
  • A Slack delivery failure leaves the underlying conflict available for review
  • Controlled archival restored CRM capacity while retaining customer history

Want this kind of reliability in your own workflow?

Start with a diagnostic to map the workflow, failure modes, and smallest useful fix.