{"id":317,"date":"2024-06-13T15:02:24","date_gmt":"2024-06-13T15:02:24","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=973"},"modified":"2026-05-21T14:15:47","modified_gmt":"2026-05-21T14:15:47","password":"","slug":"verify-the-phone-number-2","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/verify-the-phone-number-2\/","title":{"rendered":"Verify the phone number"},"content":{"rendered":"<h1>Verify Phone Number<\/h1>\n<p>Confirms the SMS code received by the user and marks the phone number as verified.<\/p>\n<h2>Endpoint<\/h2>\n<pre><code>POST https:\/\/api-test.10npay.com\/User\/phone-number\/verify\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\": 2077,\n  \"code\": \"714982\",\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<\/td>\n<td>User identifier. Required.<\/td>\n<\/tr>\n<tr>\n<td><code>code<\/code><\/td>\n<td>string<\/td>\n<td>SMS code received by the user. Required.<\/td>\n<\/tr>\n<tr>\n<td><code>correlationType<\/code><\/td>\n<td>integer (enum)<\/td>\n<td>Optional context flag (<code>0<\/code> default).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Responses<\/h2>\n<ul>\n<li><strong>200 OK<\/strong> &mdash; phone marked as verified.<\/li>\n<li><strong>400 Bad Request<\/strong> &mdash; incorrect or expired code.<\/li>\n<li><strong>401 Unauthorized<\/strong> &mdash; missing\/expired Bearer token.<\/li>\n<li><strong>404 Not Found<\/strong> &mdash; unknown <code>userId<\/code>.<\/li>\n<li><strong>5xx<\/strong> &mdash; server error (retry with backoff).<\/li>\n<\/ul>\n<h2>Notes<\/h2>\n<ul>\n<li>Only the latest code sent via <code>POST \/User\/phone-number\/send-code<\/code> or <code>\/User\/{id}\/phone-number\/resend-code<\/code> is valid.<\/li>\n<li>On success, <code>isPhoneNumberVerified<\/code> becomes <code>true<\/code> in <code>GET \/User\/{id}\/status<\/code>.<\/li>\n<li>Consider locking the UI after several failed attempts to prevent brute-force guessing.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Verify Phone Number Confirms the SMS code received by the user and marks the phone number as verified. Endpoint POST https:\/\/api-test.10npay.com\/User\/phone-number\/verify Headers Authorization: Bearer &lt;access_token&gt; Content-Type: application\/json Request Body { &#8220;id&#8221;: 2077, &#8220;code&#8221;: &#8220;714982&#8221;, &#8220;correlationType&#8221;: 0 } Field Type Description id integer User identifier. Required. code string SMS code received by the user. Required. correlationType [&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-317","docs","type-docs","status-publish","hentry","doc_category-create-customer","knowledge_base-10npay"],"year_month":"2026-05","word_count":138,"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\/317","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=317"}],"version-history":[{"count":1,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/317\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/317\/revisions\/387"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=317"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=317"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}