> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify KYC App - Identity & Age Verification

> Drop-in Shopify app for identity verification, age gating, and KYC at checkout. No-code setup, from $0.33 per full KYC check, $10 free/month, no contracts.

Add Didit identity verification and age gating to your Shopify store in minutes.
The **Didit Verify** Shopify app installs a theme block you can drop onto any page (account, checkout, custom landing pages) and creates verification sessions server-side - your API key stays inside the embedded app, never exposed to the storefront.
Verification results appear directly inside the app's **Verifications** tab in your Shopify admin - no separate backend required - and are also available via [webhooks](https://docs.didit.me/integration/webhooks.md) and the [Didit API](https://docs.didit.me/sessions-api/retrieve-session.md) for merchants who run their own backend.
You do not need to log in to the Didit Business Console to access verification data collected through Shopify.

## Prerequisites

* A Shopify store (any plan)
* A [Didit Console](https://business.didit.me) account with at least one workflow

***

### Step 1: Install the app

1. Open the install link:

   [[https://admin.shopify.com/oauth/install?client\_id=cafa0d15227fb59bd47470b23eae7469](https://admin.shopify.com/oauth/install?client_id=cafa0d15227fb59bd47470b23eae7469)](https://admin.shopify.com/oauth/install?client_id=cafa0d15227fb59bd47470b23eae7469)

2. Select your store (if you have multiple stores)

3. Click **Install** to add the app to your store

> [!NOTE]
>
> The app requests a single permission scope - `read_customers` - used to prefill and cross-check details only when **Allow customer-approved prefill** is enabled and the logged-in customer selects the optional sharing checkbox.

***

### Step 2: Configure Your Didit Credentials

After installation, Didit Verify opens inside Shopify admin.
Use **Settings** to connect the app to your Didit account.

#### Get Your API Key

1. Log in to the [Didit Business Console](https://business.didit.me)
2. Navigate to **API & Webhooks** in the left-hand sidebar
3. Copy your API key

![How to get the API key from the Didit Business Console](https://mintcdn.com/didit-0f962782/gKLcMCmiLycklBol/images/shopify-how-to-get-api-key.jpg?fit=max\&auto=format\&n=gKLcMCmiLycklBol\&q=85\&s=9027ca685cc296a400e78d320a566453)

4. Paste the API key into the **Didit API Key** field in the Shopify preferences

#### Get Your Workflow ID

1. In the Didit Business Console, go to **Workflows**
2. Select the workflow you want to use (or create a new one)
3. Copy the **Workflow ID** (a UUID like `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`)

![How to get the Workflow ID from the Didit Business Console](https://mintcdn.com/didit-0f962782/gKLcMCmiLycklBol/images/shopify-how-to-get-workflow-id.jpg?fit=max\&auto=format\&n=gKLcMCmiLycklBol\&q=85\&s=529dc681169efc0a6cdc96d6c0e0a605)

4. Paste the Workflow ID into the **Didit Workflow ID** field

#### Save Your Settings

Choose a retention period under **Data retention** before saving.
The period applies to existing and future store verifications, so choose the duration your store needs.
Click **Save Settings**.
You should see a success message:

![Shopify settings saved successfully](https://mintcdn.com/didit-0f962782/gKLcMCmiLycklBol/images/shopify-settings-saved-successfuly.jpg?fit=max\&auto=format\&n=gKLcMCmiLycklBol\&q=85\&s=93dcf3469f902876ae831075da75a628)

***

### Step 3: Add the Verify Button to Your Theme

1. In your Shopify admin, go to **Online Store** → **Themes**
2. Click **Customize** on your active theme
3. Navigate to the page where you want the verification button (e.g., Account page, a custom page)
4. Click **Add section** or **Add block**
5. Go to the **Apps** tab
6. Select **Didit Verify**

The verification button will appear in your theme. You can drag it to reposition it within the section.

***

## Accessing verification data

Shopify's app review (requirement 5.1.5) requires that data collected through a Shopify-hosted flow be accessible to the merchant **within the Shopify admin or app context** - not only on an external dashboard.
The Didit Verify app satisfies this out of the box: no backend, webhook receiver, or custom UI is required.

### The Verifications tab (default, no-code)

Open **Apps** → **Didit Verify** → **Verifications** in your Shopify admin to see every verification session collected through your storefront - status, customer, country, and timestamp - scoped to your shop.
Select a session to view its decision overview, identity fields, individual verification checks, warnings, and available evidence.
You can move between **Settings**, **Verifications**, **Privacy**, and **Human review** without leaving Shopify admin.
Saving settings keeps these tabs available.

> [!NOTE]
>
> The Verifications tab only loads data when you open the app from your Shopify admin. If you see a message asking you to reopen the page, navigate back to **Apps** → **Didit Verify** from the Shopify admin sidebar.

The Didit Business Console (`business.didit.me`) is a separate admin surface for configuration (API keys, workflows, webhook destinations).
Do not instruct merchants to use it to view verification data collected through Shopify - that does not satisfy Shopify's data-access requirement.
The Console is only needed for initial setup and credential retrieval.

### For merchants running their own backend (optional)

If you have your own backend and want a copy of the verification data there - for example to trigger fulfillment logic - Didit also delivers results via webhook and on-demand API, in addition to the Verifications tab above.

**1. Verification session created**

The Shopify app creates a session server-side using your Didit API key. The customer completes the verification flow in the theme block (modal or embedded).

**2. Result delivered via webhook**

When the session reaches a terminal status, Didit sends a signed `status.updated` webhook to the destination you configured in the Didit Business Console under **API & Webhooks**.
The webhook body includes the full [decision object](https://docs.didit.me/integration/webhooks.md#payload-shape) - the same schema returned by `GET /v3/session/{id}/decision/` - for `Approved`, `Declined`, `In Review`, and `Abandoned` statuses.
Other terminal statuses (e.g. `Expired`, `Kyc Expired`) deliver the status change without a decision payload; call the API to inspect the session state.

**3. Retrieve on demand (optional)**

Your backend can also call [`GET /v3/session/{sessionId}/decision/`](https://docs.didit.me/sessions-api/retrieve-session) at any time to fetch the full decision payload (identity fields, liveness, AML, face match, etc.).

#### Configuring webhooks for Shopify

1. In the [Didit Business Console](https://business.didit.me), navigate to **API & Webhooks** → **Webhooks**
2. Create a webhook destination pointing to your backend endpoint (HTTPS, publicly reachable)
3. Subscribe to at least `status.updated` and `data.updated` events
4. Store the returned `secret_shared_key` to verify HMAC-SHA256 signatures on incoming webhooks

See the [Webhooks guide](https://docs.didit.me/integration/webhooks.md) for the full contract, signature verification examples in Node.js/Python/PHP, and retry behavior.

#### Retrieving a session decision via API

```bash theme={null}
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
  -H "x-api-key: <YOUR_API_KEY>"
```

The response includes `session_kind`, `status`, and all feature arrays (`id_verifications`, `liveness_checks`, `face_matches`, `aml_screenings`, etc.). See [Retrieve Session](https://docs.didit.me/sessions-api/retrieve-session.md) for the full response schema and field reference.

***

## Configuration Options

### Preferences Page Settings

These settings are configured in the app preferences (accessible from **Apps** → **Didit Verify** in your Shopify admin):

| Setting | Description |
| - | - |
| **API Key** | Your Didit API key (required) |
| **Workflow ID** | The verification workflow to use (required) |
| **Vendor Data** | How sessions are linked to users in your Didit Console: **Customer ID** (sent as `shopify-<customer-id>`), **Customer Email**, **Shop + Customer ID** (sent as `<shop-domain>-<customer-id>`), or **None**. Only applied when the customer is logged in. |
| **Callback URL** | Optional URL where users are redirected after verification. Didit appends `verificationSessionId` and `status` as query parameters. |
| **Callback Method** | Which device handles the redirect: **Default (initiator)**, **Initiator**, **Completer**, or **Both** |
| **Language** | Verification UI language (auto-detect or specific language) |
| **Require Customer Login** | If enabled, only logged-in customers can verify |
| **Allow customer-approved prefill** | Offer an optional checkbox for sharing the logged-in customer's name, email, phone, and address for prefill and identity checks. Details are sent only when the customer selects it. |
| **Automatically delete after (days)** | Choose how long the store needs verification records. The selected period applies to existing and future records from this store. Deletion is irreversible. |

### Customer privacy choices

The storefront block offers an optional checkbox to share account details for prefill and identity checks.
Leaving it unchecked allows the customer to enter details themselves.

Under **Verification choices**, a signed-in customer can request human review or withdraw consent and request deletion of their verification data.
Human review pauses automated verification and adds a request to **Apps → Didit Verify → Human review**.
Contact the customer and arrange an appropriate alternative before completing that request.
Completing a human-review request does not approve a verification or a purchase.

Withdrawal immediately stops the existing verification link and prevents new verifications while deletion is processing.
The storefront confirms receipt of the request; it does not claim that deletion has already finished.

## Fulfil privacy requests

Open **Apps → Didit Verify → Privacy** to track customer exports and deletion requests received from Shopify or the storefront.

* **Customer export:** Download the prepared ZIP, provide it through your secure customer-support process, then select **I have delivered this export**.
* **Customer deletion:** The request stays in progress until the customer’s store-associated verification records, uploaded files, and human-review requests have been deleted.
* **Needs attention:** Follow the request’s instructions to resolve a missing customer ID or contact Didit support when a profile includes data from another store or purpose.

Exports contain verification records, uploaded files, and human-review requests associated with the requesting store and customer.
Temporary downloads expire after seven days; use **Retry after resolving** to prepare a fresh download if needed.
A downloaded export must be handled according to your own customer-support and data-protection procedures.

Set the retention period in **Settings → Data retention**.
Older verification data is deleted automatically; newer verifications remain available.
Existing application-level retention continues to apply when a store-specific period has not been selected.
Check **Privacy** for any retention request that needs attention.

Once a deletion request shows **Deleted**, deletion is irreversible and the deleted media is no longer available.
Consumed credits and separately managed blocklist entries are unaffected.

## Theme Block Settings

These settings are configured in the Shopify theme editor when you select the Didit Verify block:

#### Connection

| Setting | Description |
| - | - |
| **Mode** | **App workflow** (recommended) uses the workflow saved in the app settings. **UniLink workflow** uses a public workflow link from the connected Didit account. Both modes create store-associated sessions with results available in the app. |
| **UniLink URL** | Only used in UniLink mode. Use an active link from the Didit account connected in the app settings. Customers must sign in to their store account. |

#### Display

| Setting | Description |
| - | - |
| **Display Mode** | **Modal** - opens verification in a popup overlay. **Embedded** - shows verification inline below the button. |
| **Show close button** | Show/hide the X button to close the verification modal |
| **Exit confirmation dialog** | Ask users to confirm before closing verification |
| **Auto-close on completion** | Automatically close the modal when verification completes |
| **Debug logging** | Enable browser console logs for troubleshooting |

#### Button Appearance

| Setting | Description |
| - | - |
| **Button text** | Text shown on the button (default: "Verify your Identity") |
| **Success text** | Text shown after successful verification (default: "Identity Verified ✓") |
| **Background color** | Button background color |
| **Text color** | Button text color |
| **Border radius** | Button corner roundness (0–50px) |
| **Vertical padding** | Top/bottom padding (0–40px) |
| **Horizontal padding** | Left/right padding (0–60px) |
| **Font size** | Button text size (10–32px) |

***

## Recommended Setup

For most stores, we recommend:

* **Mode:** App workflow (uses the workflow saved in the app settings)
* **Display Mode:** Modal (works everywhere, no layout issues)
* **Require Customer Login:** Enabled (links verification to customer accounts)
* **Allow customer-approved prefill:** Enabled (customers choose whether to share their store details)

***

## Testing

1. Preview your theme or visit your store
2. Navigate to the page with the Didit Verify button
3. Click **Verify your Identity**
4. Complete the verification flow
5. Check your backend for the webhook delivery, or call [GET /v3/session/{id}/decision/](https://docs.didit.me/sessions-api/retrieve-session.md) to retrieve the verification result

> [!NOTE]
>
> The sandbox is free (each sandbox application can create 500 test sessions every 24 hours), so you can test the full flow at no cost. In live mode, the Free plan includes \$10 of credit a month.

***

## Troubleshooting

### Button does nothing when clicked

* Make sure you've saved your API Key and Workflow ID in the preferences
* Check that the Workflow ID belongs to the same application as your API Key
* Enable **Debug logging** in the block settings and check the browser console for errors

### "Didit credentials not configured" error

* The app has no saved API Key or Workflow ID for this store. Open **Apps** → **Didit Verify**, fill in both fields, and click **Save Settings**

### "You must be logged in to verify your identity"

* **Require Customer Login** is enabled (the default). The customer needs to log in to their store account first - or disable the setting in the app preferences if you need guest verification

### Settings won't save

* "API key validation failed" - re-copy the API key from the [Didit Business Console](https://business.didit.me) and make sure there are no extra spaces
* "This workflow does not belong to your application" - the Workflow ID belongs to a different Didit application than your API key; copy both from the same application

## Support (24/7)

Our team is available to help you get up and running.

> [card] [Email](mailto:hello@didit.me)
>
> Send us an email at [hello@didit.me](mailto:hello@didit.me).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.