Destination URL
Required Headers
Salesforce Setup
- Data Cloud → Data Actions Target → New → Webhook.
- Configure:
- URL:
https://api.lemrock.com/v1/cdp/salesforce/segment-updates - Method:
POST - Headers:
Authorization: Bearer <LEMROCK_API_KEY>,Content-Type: application/json
- URL:
- Create an External Activation Target or Manual External Platform if needed; link your segment activation to the webhook.
Field Mapping
Map these fields:customer_id(stable retailer customer ID)email_sha256(lowercase email → SHA-256 → hex)segment_ids[](array of segment keys/codes)- Optional:
loyalty_tier,points_balance
Payload Example
Identity Rules
| Field | Type | Notes |
|---|---|---|
customer_id | string | Stable retailer customer ID (primary key) |
email_sha256 | string | Lowercase email → SHA-256 → hex |
segment_ids[] | array<string> | Segment keys/codes |
loyalty_tier | string | e.g., SILVER / GOLD |
points_balance | integer | optional |
email_sha256= SHA-256 of lowercase trimmed email, hex- Use
customer_idas primary key when available - Send upserts on join/attribute updates

