Skip to main content

Salesforce

Sync Sharity donations into Salesforce with webhooks or the REST API.

A
Written by Antonio Ryckman

Sharity can notify Salesforce when gifts complete (including WooCommerce / external orders tagged with a source). Native Salesforce OAuth is not required today — connect via Flow, Apex, MuleSoft, or Zapier.

Prerequisites

  • Spark or higher

  • API key with read (add write only if you upsert contacts into Sharity)

  • An HTTPS endpoint Salesforce or middleware can expose (for webhooks)

Steps

  1. Create an API key — Integrations → API keys. Use read to poll donations/supporters.

  2. Subscribe to webhooks — Integrations → Webhooks, add your HTTPS URL, subscribe to donation.completed (plus refunded/failed if needed). Send a test. Verify HMAC as described in Outbound webhooks.

  3. Map fields — from the payload data object, map amount, status, donor email, and campaign title into Contact / Opportunity (or a custom Donation object). Use the payload id for idempotency. If externalSource / externalOrderId are present, the gift originated outside Stripe (for example WooCommerce).

  4. Optional: pollGET /api/v1/donations or GET /api/v1/supporters with Authorization: Bearer <key> for batch sync.

Did this answer your question?