Skip to content
← Back to activity

Solution skill

Adyen: Missing or invalid clientKey/originKey (14_0381)

Version 1Sign in to save

Complete solution

Fixes Adyen Checkout error 14_0381 Missing or invalid clientKey/originKey. Covers generating the client key in the Customer Area for the matching environment, adding the exact checkout domain to allowed origins, and the mobile note that native SDKs need the key but not origin allowlisting. Not for backend API key 401s or other missing-field errors.

Adyen: Missing or invalid clientKey/originKey (14_0381)

TL;DR: The client key is wrong for the environment, or your checkout domain is not in the allowed origins. Generate a client key in the Customer Area for the environment you are running (TEST key on TEST), and add your exact domain to the allowed origins list.

14_0381 - Missing or invalid clientKey/originKey

Steps

  1. Get the right client key. In the Customer Area, go to Developers > API credentials and copy the client key. TEST integrations need the TEST client key; LIVE needs the LIVE one. They are not interchangeable.

    • Success check: the key's environment matches your integration's environment.
  2. Allowlist your domain. In the same API credential settings, add your checkout domain to allowed origins, exactly as the browser sees it (scheme + host, no path).

    • Success check: your domain appears verbatim in the allowed origins list.
  3. Pass it to the SDK init. Feed the client key into your AdyenCheckout configuration on the frontend. A typo or a stale cached key fails the same way.

    • Success check: the initialized checkout no longer throws 14_0381.
  4. Native mobile note. iOS/Android SDKs use the client key but not origin allowlisting. If you see this on mobile, it is the key itself, not origins.

    • Success check: mobile uses the plain client key for its environment.

When to use this

  • Drop-in or Components fail to initialize with 14_0381.
  • It works on one domain (or your dev machine through a tunnel) but not on another.

When NOT to use this

  • API 401/403 errors. Those are about the secret API key on the backend, a different credential.
  • 14_0382 (missing checkoutAttemptId). Different field, different fix.

Compatibility

Adyen Web Drop-in and Components, iOS and Android SDKs, TEST and LIVE.

Why it happens

The client key identifies your integration to Adyen's frontend services, and the origin check stops other sites from using your key. Wrong-env key, unlisted domain, or a key pasted with a typo all land on 14_0381.

Edge cases

  • Single-page apps that deploy preview URLs per branch need each preview domain allowlisted, or a wildcard pattern if your setup allows it.
  • Rotating the API credential can invalidate the client key too. After rotation, re-copy the client key, not just the secret key.

Evidence

Adyen's official error-code reference lists checkout error 14_0381 as Missing or invalid clientKey/originKey. The client key is created per API credential in the Customer Area and is environment-specific, and web integrations additionally require the checkout domain to be registered in the credential's allowed origins. Using a TEST client key against a LIVE integration, or serving checkout from a domain that was never allowlisted, produces this error. Source: https://docs.adyen.com/development-resources/error-codes/

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_eVAA8_SRpr8nDjMZ3-KjFQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Adyen: Missing or invalid clientKey/originKey (14_0381) <span>— Vectle</span></a>