Skip to main content
AfterShip Returns → Marketing CloudIntegration guide

Connecting AfterShip Returns to Salesforce Marketing Cloud

AfterShip handles returns across many carriers and regions, which makes it the place where the true cost of a cross-border return finally becomes visible. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the AfterShip return before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

AfterShip returns in Marketing Cloud: key it to the subscriber

Resolve each AfterShip return to the customer behind your Subscriber Key before inserting, never keying on the portal email. Use a data extension with return ID as primary key, plus order number, resolution, refunded amount, returned SKUs, reason and destination country, and enter journeys on new rows in meaningful states only.

A return lands in Marketing Cloud as a row in a data extension, and it only matters if a journey listens to that extension and the Subscriber Key matches. The AfterShip return carries an email and an order number. If your Subscriber Key is a CRM or commerce customer ID, the integration has to resolve return to order to customer before inserting; keying on the portal email creates a second subscriber.

Design the data extension around what journeys decide on: return ID as primary key, so repeated webhook updates upsert rather than add rows; order number; resolution; refunded amount; returned SKUs; return reason; destination country. Enter the journey on new rows only, and only for meaningful states. A return that moves through four statuses should not enter a journey four times.

AfterShip sends its own return notifications, so Marketing Cloud should handle what comes after: removing the customer from the returned item's review and cross-sell journeys, and treating repeat refunders differently in promotions. If your store is Commerce Cloud or otherwise Salesforce-connected, confirm which system's customer ID the Subscriber Key actually uses, and build in a non-production business unit.

AfterShip Returns → Marketing Cloud · what breaks

Why this join usually fails — AfterShip Returns → Marketing Cloud

  1. 01

    The Subscriber Key never reaches AfterShip Returns

    Returns are initiated in a hosted portal weeks after the order.

  2. 02

    Return cost averaged across very different markets

    A market with a twelve percent return rate and cheap domestic logistics is a different business from one with the same rate and international freight. One blended net figure recommends the wrong market.

  3. 03

    Two identity models treated as one

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  4. 04

    Nothing reconciles afterwards

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

AfterShip Returns → Marketing Cloud · the fix

What working looks like — AfterShip Returns → Marketing Cloud

  • The Subscriber Key on every return

  • Conversions arriving in Marketing Cloud

    The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.

  • Reconciled against the source

AfterShip Returns → Marketing Cloud · architecture

How AfterShip Returns and Marketing Cloud actually connect

  1. 1

    AfterShip Returns holds the truth

    A domestic return costs a label. An international return can cost more than the item's margin, and the rate differs by market. Averaging them hides which markets are actually profitable.

  2. 2

    Salesforce Marketing Cloud needs a click to match

    The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.

  3. 3

    The identifier is the bridge

    The Subscriber Key, captured at the visit and carried into the AfterShip return.

  4. 4

    The event source decides reliability

    Send orders net of returns including actual return shipping, reported by destination market.

  5. 5

    Deduplication at the destination

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

AfterShip Returns → Marketing Cloud · normal or broken

Working vs. broken, side by side — AfterShip Returns → Marketing Cloud

Normal, not a fault

  • The Subscriber Key present on the return

  • Sent from the store order record, adjusted by return outcome and cost

  • Deduplicated correctly

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

  • Reconciles with the source

Actually broken

  • The Subscriber Key missing on most records

    Returns are initiated in a hosted portal weeks after the order.

  • Sent from the browser

    A market with a twelve percent return rate and cheap domestic logistics is a different business from one with the same rate and international freight. One blended net figure recommends the wrong market.

  • Counted twice, or not at all

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  • Nobody has reconciled it

AfterShip Returns → Marketing Cloud · diagnose

Diagnostic order — AfterShip Returns → Marketing Cloud

  1. 01

    Count returns carrying the Subscriber Key

  2. 02

    Follow one real conversion end to end

  3. 03

    Compute net margin per destination market after return costs

    It frequently reverses which markets look worth advertising in.

  4. 04

    Confirm what Subscriber Key is actually set to in this org

    Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.

  5. 05

    Read the match rate, not the success message

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

AfterShip Returns → Marketing Cloud · prove

How it gets proven — AfterShip Returns → Marketing Cloud

Source of truth

Store orders net of returns, with return shipping cost by destination.

  • The Subscriber Key confirmed present on a live return.
  • Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
  • Net margin reconciled per market after returns and their logistics cost.

AfterShip Returns → Marketing Cloud · free audit

What we check in the free audit

  • Count returns carrying the Subscriber Key
  • Follow one real conversion end to end
  • Compute net margin per destination market after return costs
  • Confirm what Subscriber Key is actually set to in this org
  • Read the match rate, not the success message

Checked against

Store orders net of returns, with return shipping cost by destination.

Get my free conversion tracking audit

Free30 minutesNo obligation

AfterShip Returns → Marketing Cloud · when not to buy

When you don't need this — AfterShip Returns → Marketing Cloud

  • Measure identifier coverage yourself first — pull your last hundred returns and count how many carry the Subscriber Key.
  • Single-market sellers with flat return shipping can use one blended figure without losing anything.
  • If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.

AfterShip Returns → Marketing Cloud · what we deliver

What gets built — AfterShip Returns → Marketing Cloud

  • Identifier capture into AfterShip Returns

    Join on the order identifier and carry return cost back onto it before computing margin.

  • Event source: the store order record, adjusted by return outcome and cost

    Send orders net of returns including actual return shipping, reported by destination market.

  • Dispatch to Marketing Cloud

    A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.

  • Reversals where they exist

    Returns reverse with their full logistics cost.

Written guarantee

95%+ tracking accuracy

Measured against Store orders net of returns, with return shipping cost by destination.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AfterShip Returns → Marketing Cloud questions, answered

Insert each return into a data extension keyed on the return ID, with the Subscriber Key resolved from the store's customer record. Then point journey entry at that extension.

Free · 30 min

Get AfterShip Returns and Marketing Cloud joined properly

Free30 minutesNo obligation