{"id":316,"date":"2024-06-13T14:14:51","date_gmt":"2024-06-13T14:14:51","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=964"},"modified":"2026-05-21T14:13:57","modified_gmt":"2026-05-21T14:13:57","password":"","slug":"send-verification-code","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/send-verification-code\/","title":{"rendered":"Send Phone verification code"},"content":{"rendered":"<h1>Send Phone Verification Code<\/h1>\n<p>Sends a one-time SMS code to the user so they can confirm ownership of their phone number.<\/p>\n<h2>Endpoint<\/h2>\n<pre><code>POST https:\/\/api-test.10npay.com\/User\/phone-number\/send-code\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  \"phoneNumber\": \"+359881234567\",\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>phoneNumber<\/code><\/td>\n<td>string<\/td>\n<td>Phone number in E.164 format (<code>+[country][number]<\/code>). Required.<\/td>\n<\/tr>\n<tr>\n<td><code>correlationType<\/code><\/td>\n<td>integer (enum)<\/td>\n<td>Optional &mdash; <code>0<\/code> for standard individual users (default), <code>1<\/code> for merchant flows.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Responses<\/h2>\n<ul>\n<li><strong>204 No Content<\/strong> &mdash; SMS dispatched (or the user is already verified, in which case the call is still idempotent).<\/li>\n<li><strong>400 Bad Request<\/strong> &mdash; invalid format or phone already registered.<\/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 Server Error<\/strong> &mdash; transient failure (retry with backoff).<\/li>\n<\/ul>\n<h2>Notes<\/h2>\n<ul>\n<li>Apply local validation and throttling (e.g., minimum delay between resend attempts).<\/li>\n<li>The server enforces uniqueness: if the phone is already linked to another user, the call returns <code>400<\/code>.<\/li>\n<li>After the code is sent, prompt the user to call <code>POST \/User\/phone-number\/verify<\/code> with the received digits.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Send Phone Verification Code Sends a one-time SMS code to the user so they can confirm ownership of their phone number. Endpoint POST https:\/\/api-test.10npay.com\/User\/phone-number\/send-code Headers Authorization: Bearer &lt;access_token&gt; Content-Type: application\/json Request Body { &#8220;id&#8221;: 2077, &#8220;phoneNumber&#8221;: &#8220;+359881234567&#8221;, &#8220;correlationType&#8221;: 0 } Field Type Description id integer (int32) User identifier returned by POST \/User. Required. phoneNumber string [&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-316","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\/316","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=316"}],"version-history":[{"count":2,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/316\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/316\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=316"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=316"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}