# Shopify & DTC Return Policy & Tech Stack Enricher (`zinky_atelier/shopify-dtc-policy-enricher`) Actor

Enrich Shopify & DTC store domains with structured return windows, return/restocking fees, free-shipping thresholds, and post-purchase tech stack (Loop Returns, Redo, Narvar, AfterShip, Route, Gorgias, Klaviyo, Recharge). Built for Clay, RevOps, 3PLs, and AI MCP agents.

- **URL**: https://apify.com/zinky_atelier/shopify-dtc-policy-enricher.md
- **Developed by:** [Travis Burrows](https://apify.com/zinky_atelier) (community)
- **Categories:** E-commerce, Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 domain enricheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Shopify & DTC Return Policy, Shipping Threshold & Post-Purchase Tech Enricher

Turn any list of Shopify or DTC e-commerce domains into **structured outbound sales & merchandising signals** in seconds—built specifically for **Clay.com tables, RevOps teams, 3PLs, returns/post-purchase SaaS, packaging suppliers, and AI MCP agents**.

No headless browsers. No residential proxy burn. Sub-second HTTP/JSON extraction per store.

***

### What Data Does This Actor Extract?

For each domain (e.g. `allbirds.com`, `chubbiesshorts.com`, `beardbrand.com`), this Actor outputs a clean, flat JSON row containing:

| Field Group | Output Fields | Example Values |
| :--- | :--- | :--- |
| **Store Identity** | `domain`, `isShopify`, `brandName`, `myshopifyDomain`, `country`, `currency` | `"allbirds.com"`, `true`, `"weareallbirds.myshopify.com"`, `"US"`, `"USD"` |
| **Returns Portal & Protection** | `returnPortalVendor`, `returnPortalUrls`, `shippingProtectionVendor` | `"Loop Returns"`, `"Redo Order Protection"`, `"Route"`, `"Narvar"`, `"AfterShip Returns"`, `"Happy Returns"`, `"ReturnGO"` |
| **Return Economics** | `returnWindowDays`, `freeReturns`, `freeExchanges`, `returnShippingFeeUsd`, `restockingFeePercent`, `finalSaleExcluded`, `storeCreditBonusMentioned` | `30`, `false`, `true`, `7.95`, `null`, `true`, `true` |
| **Shipping SLAs & Thresholds** | `freeShippingThresholdUsd`, `sameDayShippingCutoff`, `estimatedProcessingDays` | `75`, `"1:00 PM CST"`, `"1-6 business days"` |
| **Surrounding DTC Stack** | `helpdeskVendor`, `reviewsVendor`, `subscriptionsVendor`, `marketingVendors`, `allDetectedTech` | `"Gorgias"`, `"Judge.me"`, `"Recharge"`, `["Klaviyo", "Attentive"]` |
| **Scheduled Change Tracking** | `policyContentHash`, `hasChangedSinceLastRun`, `changedFields`, `refundPolicyUpdatedAt` | `"9b81e2c410fa91d2"`, `true`, `["returnShippingFeeUsd"]` |

***

### High-ROI B2B Use Cases

1. **Returns, Post-Purchase & CX SaaS Outbound (Clay / Apollo / Smartlead):** Filter 10,000 Shopify brands to find stores with **no self-serve returns portal** (`returnPortalVendor: null`) or stores running a competitor (`Loop Returns`, `Narvar`, `AfterShip`, `Redo`) and personalize cold emails with their exact return window and return fee.
2. **3PL & Parcel Carrier Prospecting:** Spot brands advertising slow fulfillment (`estimatedProcessingDays: "3-5 business days"`), high free-shipping minimums (`freeShippingThresholdUsd: 100`), or missing same-day shipping cutoffs.
3. **Competitor Policy & Merchandising Monitoring:** Enable `trackPolicyChanges: true` on a weekly **Apify Schedule + Slack/Webhook** to get alerted the moment a competitor tightens their return window or introduces a `$7.95` return deduction.
4. **AI Agent & MCP Tool Calling:** Query live store return/shipping policies on demand via `mcp.apify.com` without dumping raw boilerplate HTML into your LLM context window.

***

### Copy-Paste Example Input

```json
{
  "domains": [
    "allbirds.com",
    "chubbiesshorts.com",
    "beardbrand.com",
    "puravidabracelets.com"
  ],
  "probeReturnSubdomains": true,
  "includeRawPolicyText": false,
  "trackPolicyChanges": false,
  "maxConcurrency": 8
}
```

### Example Output Item

```json
{
  "domain": "allbirds.com",
  "scrapeStatus": "ok",
  "statusMessage": null,
  "isShopify": true,
  "brandName": "Allbirds",
  "myshopifyDomain": "weareallbirds.myshopify.com",
  "country": "US",
  "currency": "USD",
  "returnPortalVendor": "Loop Returns",
  "returnPortalUrls": [],
  "shippingProtectionVendor": "Redo Order Protection",
  "returnWindowDays": 30,
  "freeReturns": null,
  "freeExchanges": null,
  "returnShippingFeeUsd": null,
  "restockingFeePercent": null,
  "finalSaleExcluded": true,
  "storeCreditBonusMentioned": false,
  "freeShippingThresholdUsd": null,
  "sameDayShippingCutoff": null,
  "estimatedProcessingDays": "1-6 business days",
  "helpdeskVendor": null,
  "reviewsVendor": "Yotpo",
  "subscriptionsVendor": null,
  "marketingVendors": ["Attentive"],
  "allDetectedTech": [
    "Loop Returns",
    "Redo",
    "Redo Order Protection",
    "Yotpo",
    "Attentive"
  ],
  "refundPolicyUrl": "https://allbirds.com/policies/refund-policy",
  "shippingPolicyUrl": "https://allbirds.com/policies/shipping-policy",
  "refundPolicyUpdatedAt": "2025-11-04T18:22:10-08:00",
  "shippingPolicyUpdatedAt": "2025-09-19T10:14:00-07:00",
  "policyContentHash": "6f8a21c94e0d3a11",
  "hasChangedSinceLastRun": null,
  "changedFields": [],
  "refundPolicyExcerpt": null,
  "shippingPolicyExcerpt": null,
  "scrapedAt": "2026-11-14T03:10:00.000Z"
}
```

***

### Transparent Pay-Per-Event (PPE) Pricing & Fair Billing Guarantee

- **Zero Charges on Unreachable or WAF-Restricted Domains:** The per-domain enrichment event (`domain-enriched`) *only* triggers when `scrapeStatus === "ok"`. If a domain is offline or restricts automated access (`restricted_or_waf`), you are **never** charged for that domain.
- **No Proxy Markup Required:** Over 90% of Shopify and DTC storefronts respond directly to clean HTTP requests without requiring Apify Residential Proxies.

***

### How Much Does It Cost? (Tiered Pay-Per-Event Pricing)

No monthly subscription. Paid Apify plan subscribers automatically unlock progressive volume discounts:

| Event | One-Time? | Free Plan | Bronze | Silver | Gold / Enterprise |
| :--- | :---: | :---: | :---: | :---: | :---: |
| `actor-start` | Yes | `$0.02` | `$0.02` | `$0.02` | `$0.02` |
| `domain-enriched` *(Primary)* | No | `$0.008` | `$0.007` | `$0.006` | `$0.005` |

#### Clay, Make, n8n & AI Agent (`mcp.apify.com`) Chaining

- **Clay.com HTTP API Enrichment:** Trigger `POST /v2/acts/zinky_atelier~shopify-dtc-policy-enricher/run-sync-get-dataset-items` per batch of Shopify domains to populate return fees, windows, and Loop/Narvar/Gorgias signals directly into outbound sequences.
- **Make / n8n / Zapier Scheduled Deltas:** Enable `trackPolicyChanges: true` on an Apify Schedule + Webhook to route policy updates to Slack, HubSpot, or Salesforce.
- **AI Agents & MCP (`mcp.apify.com`):** Call directly from Claude, Cursor, or custom MCP agents to audit live DTC return and shipping policies in structured JSON.

# Actor input Schema

## `domains` (type: `array`):

List of DTC store domains or URLs to enrich (e.g. 'allbirds.com', 'https://www.chubbiesshorts.com', 'beardbrand.com').

## `probeReturnSubdomains` (type: `boolean`):

When enabled, checks common subdomains (returns.<domain>, exchanges.<domain>) if no return portal Vendor is detected in storefront scripts or policy links.

## `includeRawPolicyText` (type: `boolean`):

Include stripped plain-text refund and shipping policy bodies (up to 4,000 chars each) for downstream LLM / Clay prompt personalization.

## `trackPolicyChanges` (type: `boolean`):

Stores a lightweight SHA-256 fingerprint per domain in an Apify Named Key-Value Store ('dtc-policy-snapshots') and flags `hasChangedSinceLastRun` when return windows, fees, or return portals change.

## `maxConcurrency` (type: `integer`):

Number of domains enriched in parallel. Keep between 5 and 20 for optimal memory and margin efficiency.

## `requestTimeoutSecs` (type: `integer`):

HTTP timeout per endpoint request.

## `proxyConfiguration` (type: `object`):

Direct HTTP works for 90%+ of Shopify stores at $0 proxy cost. Enable Apify Datacenter proxies only if enriching thousands of domains at high concurrency.

## Actor input object example

```json
{
  "domains": [
    "allbirds.com",
    "chubbiesshorts.com",
    "beardbrand.com",
    "puravidabracelets.com"
  ],
  "probeReturnSubdomains": true,
  "includeRawPolicyText": false,
  "trackPolicyChanges": false,
  "maxConcurrency": 8,
  "requestTimeoutSecs": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `enrichedDomains` (type: `string`):

Structured dataset containing per-domain return economics, shipping thresholds, and post-purchase SaaS vendors.

## `runSummary` (type: `string`):

JSON summary with counts of enriched, restricted, and changed stores.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "allbirds.com",
        "chubbiesshorts.com",
        "beardbrand.com",
        "puravidabracelets.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinky_atelier/shopify-dtc-policy-enricher").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "domains": [
        "allbirds.com",
        "chubbiesshorts.com",
        "beardbrand.com",
        "puravidabracelets.com",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("zinky_atelier/shopify-dtc-policy-enricher").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "allbirds.com",
    "chubbiesshorts.com",
    "beardbrand.com",
    "puravidabracelets.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call zinky_atelier/shopify-dtc-policy-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinky_atelier/shopify-dtc-policy-enricher"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gt01jFwJSWWDFmTWr/builds/aHP51ijZp4PvmRBEj/openapi.json
