{"id":315,"date":"2024-06-13T14:03:33","date_gmt":"2024-06-13T14:03:33","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=960"},"modified":"2026-05-21T14:02:13","modified_gmt":"2026-05-21T14:02:13","password":"","slug":"confirm-email","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/confirm-email\/","title":{"rendered":"Confirm email"},"content":{"rendered":"<h1>Confirm Email<\/h1>\n<p>Validates the six-digit verification code sent to the user and marks the email as verified so the onboarding flow can continue.<\/p>\n<h2>Endpoint<\/h2>\n<pre><code>POST https:\/\/api-test.10npay.com\/User\/email\/confirm\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  \"id\": 123,\n  \"token\": \"475013\",\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>id<\/code><\/td>\n<td>integer (int32)<\/td>\n<td>User identifier returned by <code>POST \/User<\/code>. Required.<\/td>\n<\/tr>\n<tr>\n<td><code>token<\/code><\/td>\n<td>string<\/td>\n<td>Six-digit code received in the verification email. Required.<\/td>\n<\/tr>\n<tr>\n<td><code>correlationType<\/code><\/td>\n<td>integer (enum)<\/td>\n<td>Optional context flag &mdash; <code>0<\/code> for standard individual users, <code>1<\/code> for merchant correlation.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Responses<\/h2>\n<h3>200 OK &mdash; Email verified<\/h3>\n<pre><code>{\n  \"success\": true,\n  \"message\": \"\",\n  \"code\": 200\n}\n<\/code><\/pre>\n<h3>4xx &mdash; Validation errors<\/h3>\n<ul>\n<li><strong>400 Bad Request<\/strong> &mdash; invalid or expired code.<\/li>\n<li><strong>404 Not Found<\/strong> &mdash; unknown <code>userId<\/code>.<\/li>\n<li><strong>401 Unauthorized<\/strong> &mdash; missing\/expired Bearer token.<\/li>\n<\/ul>\n<h3>5xx &mdash; Server errors<\/h3>\n<p>Retry with exponential backoff; capture <code>traceId<\/code> from the response (if present) when contacting support.<\/p>\n<h2>Notes<\/h2>\n<ul>\n<li>Only the most recent code sent through <code>POST \/User\/email\/send-confirmation<\/code> is valid.<\/li>\n<li>On success, <code>isEmailVerified<\/code> becomes <code>true<\/code> in the <code>GET \/User\/{id}\/status<\/code> response.<\/li>\n<li>If the user requests a new code, invalidate the previous one client-side and prompt for the latest value.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Confirm Email Validates the six-digit verification code sent to the user and marks the email as verified so the onboarding flow can continue. Endpoint POST https:\/\/api-test.10npay.com\/User\/email\/confirm Headers Authorization: Bearer &lt;access_token&gt; Content-Type: application\/json Request Body { &#8220;id&#8221;: 123, &#8220;token&#8221;: &#8220;475013&#8221;, &#8220;correlationType&#8221;: 0 } Field Type Description id integer (int32) User identifier returned by POST \/User. Required. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[55],"doc_tag":[],"knowledge_base":[33],"class_list":["post-315","docs","type-docs","status-publish","hentry","doc_category-create-customer","knowledge_base-10npay"],"year_month":"2026-05","word_count":177,"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":"Create - Customer","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/create-customer\/"}],"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\/315","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=315"}],"version-history":[{"count":1,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/315\/revisions"}],"predecessor-version":[{"id":382,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/315\/revisions\/382"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=315"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=315"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}