{"id":261,"date":"2023-06-09T10:44:19","date_gmt":"2023-06-09T10:44:19","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=93"},"modified":"2023-06-09T10:44:19","modified_gmt":"2023-06-09T10:44:19","password":"","slug":"client-credentials-grant","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/client-credentials-grant\/","title":{"rendered":"Client Credentials Grant"},"content":{"rendered":"<figure class=\"wp-block-table\"><table><tbody><tr><td>POST <a href=\"https:\/\/auth.10npay.com\/connect\/token\">https:\/\/auth.10npay.com\/connect\/token<\/a><br>Content-Type: application\/x-www-form-urlencoded&nbsp;&nbsp;&nbsp; client_id=client1&amp;<br>&nbsp;&nbsp;&nbsp; client_secret=secret&amp;<br>&nbsp;&nbsp;&nbsp; grant_type=client_credentials&amp;<br>&nbsp;&nbsp;&nbsp; scope=scope1 scope2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">(Form-encoding removed and line breaks added for readability)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Sample-Response\">Sample Response<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>HTTP\/1.1 200 OK<br>Content-Type: application\/json{<br>&nbsp;&nbsp; &#8220;id_token&#8221;:&#8221;eyJhbGcxxxxx.eyJuYxxxxx.NXDxxxxx&#8221;,<br>&nbsp;&nbsp; &#8220;access_token&#8221;:&#8221;eyJhxxxxx.eyJuYxxxxx.WRxxxxx&#8221;,<br>&nbsp; &nbsp;&#8220;expires_in&#8221;:3600,<br>&nbsp;&nbsp; &#8220;token_type&#8221;:&#8221;Bearer&#8221;,<br>&nbsp;&nbsp; &#8220;refresh_token&#8221;:&#8221;povbxxxxx&#8221;,<br>&nbsp;&nbsp; &#8220;scope&#8221;:&#8221;phone openid profile email xxxxx offline_access&#8221;<br>}<\/td><\/tr><\/tbody><\/table><\/figure>","protected":false},"excerpt":{"rendered":"<p>POST https:\/\/auth.10npay.com\/connect\/tokenContent-Type: application\/x-www-form-urlencoded&nbsp;&nbsp;&nbsp; client_id=client1&amp;&nbsp;&nbsp;&nbsp; client_secret=secret&amp;&nbsp;&nbsp;&nbsp; grant_type=client_credentials&amp;&nbsp;&nbsp;&nbsp; scope=scope1 scope2 (Form-encoding removed and line breaks added for readability) Sample Response HTTP\/1.1 200 OKContent-Type: application\/json{&nbsp;&nbsp; &#8220;id_token&#8221;:&#8221;eyJhbGcxxxxx.eyJuYxxxxx.NXDxxxxx&#8221;,&nbsp;&nbsp; &#8220;access_token&#8221;:&#8221;eyJhxxxxx.eyJuYxxxxx.WRxxxxx&#8221;,&nbsp; &nbsp;&#8220;expires_in&#8221;:3600,&nbsp;&nbsp; &#8220;token_type&#8221;:&#8221;Bearer&#8221;,&nbsp;&nbsp; &#8220;refresh_token&#8221;:&#8221;povbxxxxx&#8221;,&nbsp;&nbsp; &#8220;scope&#8221;:&#8221;phone openid profile email xxxxx offline_access&#8221;}<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[],"doc_tag":[],"knowledge_base":[33],"class_list":["post-261","docs","type-docs","status-publish","hentry","knowledge_base-10npay"],"year_month":"2026-06","word_count":89,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"","author_nicename":"","author_url":"https:\/\/developers.10npay.com\/bg\/author\/"},"doc_category_info":[],"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\/261","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":0,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/261\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=261"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=261"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}