{"id":257,"date":"2023-06-09T10:43:26","date_gmt":"2023-06-09T10:43:26","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=85"},"modified":"2023-06-09T10:43:26","modified_gmt":"2023-06-09T10:43:26","password":"","slug":"token-endpoint","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/token-endpoint\/","title":{"rendered":"Token Endpoint"},"content":{"rendered":"<h4 class=\"wp-block-heading\" id=\"URL\">URL<\/h4>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/auth.10npay.com\/connect\/token\n<\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Parameters.1\">Parameters<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"client_id\">client_id<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">client identifier (required \u2013 Either in the body or as part of the authorization header.)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"client_secret\">client_secret<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">client secret either in the post body, or as a basic authentication header. Optional.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"grant_type\">grant_type<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">authorization_code, client_credentials, password, refresh_token, urn:ietf:params:oauth:grant-type:device_code or custom<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"scope\">scope<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">one or more registered scopes, delimited with space. If not specified, a token for all explicitly allowed scopes will be issued.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"redirect_url.1\">redirect_url<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">required for the authorization_code grant type<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"code\">code<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">the authorization code (required for authorization_code grant type)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"code_verifier\">code_verifier<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">PKCE proof key<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"username\">username<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">resource owner username (required for password grant type)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"password\">password<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">resource owner password (required for password grant type)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"refresh_token\">refresh_token<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">the refresh token (required for refresh_token grant type)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"device_code\">device_code<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">the device code (required for urn:ietf:params:oauth:grant-type:device_code grant type)<\/p>","protected":false},"excerpt":{"rendered":"<p>URL Parameters client_id client identifier (required \u2013 Either in the body or as part of the authorization header.) client_secret client secret either in the post body, or as a basic authentication header. Optional. grant_type authorization_code, client_credentials, password, refresh_token, urn:ietf:params:oauth:grant-type:device_code or custom scope one or more registered scopes, delimited with space. If not specified, a token [&hellip;]<\/p>\n","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-257","docs","type-docs","status-publish","hentry","knowledge_base-10npay"],"year_month":"2026-07","word_count":149,"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\/257","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=257"}],"version-history":[{"count":0,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/257\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=257"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=257"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}