{"id":356,"date":"2025-09-09T14:34:59","date_gmt":"2025-09-09T14:34:59","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=1547"},"modified":"2026-05-21T14:21:57","modified_gmt":"2026-05-21T14:21:57","password":"","slug":"initiate-external-identification-api","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/initiate-external-identification-api\/","title":{"rendered":"Initiate External Identification API"},"content":{"rendered":"<h1>Initiate External Identification<\/h1>\n<p>Starts the external identification flow (Onfido + document signing) and returns the URL the client must open in a browser or WebView.<\/p>\n<h2>Endpoint<\/h2>\n<pre><code>POST https:\/\/api-test.10npay.com\/Enrollment\/initiate-external-identification\n<\/code><\/pre>\n<h2>Headers<\/h2>\n<ul>\n<li><code>Authorization: Bearer &lt;access_token&gt;<\/code><\/li>\n<li><code>Content-Type: application\/json<\/code><\/li>\n<\/ul>\n<h2>Request Body<\/h2>\n<pre><code>{\n  \"userId\": 2077,\n  \"isRestartIdentification\": false,\n  \"localTimezone\": \"Europe\/Sofia\",\n  \"userAgent\": \"Chrome\/119.0\",\n  \"browserLanguage\": \"bg\",\n  \"userLanguage\": \"bg\",\n  \"deviceName\": \"MacBook Pro\",\n  \"correlationType\": 0\n}\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>userId<\/code><\/td>\n<td>integer<\/td>\n<td>User identifier. Required.<\/td>\n<\/tr>\n<tr>\n<td><code>isRestartIdentification<\/code><\/td>\n<td>boolean<\/td>\n<td>If <code>true<\/code>, force a brand-new session even if one is in progress.<\/td>\n<\/tr>\n<tr>\n<td><code>localTimezone<\/code>, <code>userAgent<\/code>, <code>browserLanguage<\/code>, <code>userLanguage<\/code>, <code>deviceName<\/code><\/td>\n<td>string<\/td>\n<td>Optional metadata used for auditing\/support.<\/td>\n<\/tr>\n<tr>\n<td><code>correlationType<\/code><\/td>\n<td>integer (enum)<\/td>\n<td>Optional context flag (default <code>0<\/code>).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Response &mdash; 200 OK<\/h2>\n<pre><code>{\n  \"videoIdentificationUrl\": \"https:\/\/onfido-session-url\",\n  \"videoIdentificationStatus\": \"STARTED\",\n  \"message\": \"\"\n}\n<\/code><\/pre>\n<p>Open <code>videoIdentificationUrl<\/code> to render the Onfido flow (ID capture, liveness, document signing).<\/p>\n<h2>Errors<\/h2>\n<ul>\n<li><strong>400 Bad Request<\/strong> &mdash; user not eligible (missing additional data, wrong state).<\/li>\n<li><strong>401 Unauthorized<\/strong> &mdash; missing\/expired token.<\/li>\n<li><strong>404 Not Found<\/strong> &mdash; unknown <code>userId<\/code>.<\/li>\n<li><strong>5xx<\/strong> &mdash; gateway or backend error.<\/li>\n<\/ul>\n<h2>Flow Notes<\/h2>\n<ul>\n<li>After the user completes Onfido, your client will be redirected to the Success\/Fail URLs configured in the portal.<\/li>\n<li>Immediately after a Success redirect, start polling <code>GET \/Enrollment\/{id}\/0\/true\/get-identification-process-status<\/code> (Phase A) until <code>SIGN_SESSION_ID_SUCCESSFULLY_CREATED<\/code>.<\/li>\n<li>Then open the returned signing URL (Signhost) and, after completion, poll again (Phase B) until <code>DOCUMENT_SIGN_SUCCESS<\/code>.<\/li>\n<li>Finally, call <code>POST \/Enrollment\/finalize-external-identification<\/code> to persist the outcome.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Initiate External Identification Starts the external identification flow (Onfido + document signing) and returns the URL the client must open in a browser or WebView. Endpoint POST https:\/\/api-test.10npay.com\/Enrollment\/initiate-external-identification Headers Authorization: Bearer &lt;access_token&gt; Content-Type: application\/json Request Body { &#8220;userId&#8221;: 2077, &#8220;isRestartIdentification&#8221;: false, &#8220;localTimezone&#8221;: &#8220;Europe\/Sofia&#8221;, &#8220;userAgent&#8221;: &#8220;Chrome\/119.0&#8221;, &#8220;browserLanguage&#8221;: &#8220;bg&#8221;, &#8220;userLanguage&#8221;: &#8220;bg&#8221;, &#8220;deviceName&#8221;: &#8220;MacBook Pro&#8221;, &#8220;correlationType&#8221;: 0 } [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[58],"doc_tag":[],"knowledge_base":[33],"class_list":["post-356","docs","type-docs","status-publish","hentry","doc_category-web-identification","knowledge_base-10npay"],"year_month":"2026-05","word_count":218,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"10npaydev","author_nicename":"10npaydev","author_url":"https:\/\/developers.10npay.com\/bg\/author\/10npaydev\/"},"doc_category_info":[{"term_name":"Web identification","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/web-identification\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"10npay","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/","term_slug":"10npay"}],"knowledge_base_slug":["10npay"],"_links":{"self":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":1,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/356\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/356\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=356"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=356"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}