{"id":320,"date":"2024-06-13T15:45:20","date_gmt":"2024-06-13T15:45:20","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=989"},"modified":"2024-06-13T15:45:20","modified_gmt":"2024-06-13T15:45:20","password":"","slug":"989","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/989\/","title":{"rendered":"Main Activity"},"content":{"rendered":"<h4><span style=\"font-size: 20px\">End-point overview<\/span><\/h4>\n<p><span style=\"font-size: 20px\"><strong>URL:<\/strong> <div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\">https:\/\/crm-api-test.10npay.com\/api\/v1\/Individual\/main-activity<\/pre>\n<p><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><br \/>\n<\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>HTTP Method:<\/strong> GET<\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>Headers:<\/strong><\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>accept:<\/strong> application\/json<\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>Authorization:<\/strong> Bearer {token}<\/span><\/p>\n<h4><span style=\"font-size: 20px\">Example Request<\/span><\/h4>\n<p><span style=\"font-size: 20px\">To make a request to the main activity endpoint, use the following curl command:<\/span><br \/>\n<span style=\"font-size: 20px\"><div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\"><span style=\"font-size: 20px\">curl -X 'GET' \\\r\n'https:\/\/crm-api-test.10npay.com\/api\/v1\/Individual\/main-activity' \\\r\n-H 'accept: application\/json' \\\r\n-H 'Authorization: Bearer {your_token_here}'<\/span><\/pre>\n<p><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>Note:<\/strong> Replace {your_token_here} with the actual Bearer token obtained from the <strong>\/Auth\/validate<\/strong> step.<\/span><\/p>\n<h4><span style=\"font-size: 20px\"><strong>Response<\/strong><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><strong>Status Code:<\/strong> 200 OK<\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>Response Body:<\/strong> A JSON array of main activities<\/span><\/p>\n<p><span style=\"font-size: 20px\"><strong>Example Response<\/strong><\/span><br \/>\n<span style=\"font-size: 20px\"><div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\"><span style=\"font-size: 20px\">[\r\n\t{\r\n\t\t\"label\": \"Employed on an employment contract\",\r\n\t\t\"value\": \"1\"\r\n\t},\r\n\t{\r\n\t\t\"label\": \"Self Employed\",\r\n\t\t\"value\": \"2\"\r\n\t},\r\n\t{\r\n\t\t\"label\": \"Retired\",\r\n\t\t\"value\": \"3\"\r\n\t},\r\n\t{\r\n\t\t\"label\": \"Unemployed\",\r\n\t\t\"value\": \"4\"\r\n\t},\r\n\t{\r\n\t\t\"label\": \"Student\",\r\n\t\t\"value\": \"5\"\r\n\t},\r\n\t{\r\n\t\t\"label\": \"Individual investor\",\r\n\t\t\"value\": \"6\"\r\n\t}\r\n]<\/span><\/pre>\n<p><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><\/span><\/p>\n<h4><span style=\"font-size: 20px\">Detailed Steps<\/span><\/h4>\n<p><span style=\"font-size: 20px\">Call Main Activity Endpoint: Use the curl command provided to fetch the list of main activities. This list is necessary for completing the KYC process as it helps identify the user&#8217;s primary source of income or occupation.<\/span><\/p>\n<p><span style=\"font-size: 20px\">Parse Response: The response will be a JSON array of objects, each containing a label and a value. This information is used to populate the necessary fields in the KYC questionnaire.<\/span><\/p>\n<p><span style=\"font-size: 20px\">Purpose of Fetching Main Activity<\/span><br \/>\n<span style=\"font-size: 20px\">The main activity endpoint provides a list of predefined activities representing the user&#8217;s primary occupation or source of income. This information is a critical part of the KYC verification process, helping financial institutions to assess the risk profile of the client and ensure compliance with regulatory requirements.<\/span><\/p>\n<h4><span style=\"font-size: 20px\">Snippet<\/span><\/h4>\n<p><span style=\"font-size: 20px\">[codesnippet id=&#8221;40&#8243;]<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>End-point overview URL: HTTP Method: GET Headers: accept: application\/json Authorization: Bearer {token} Example Request To make a request to the main activity endpoint, use the following curl command: Note: Replace {your_token_here} with the actual Bearer token obtained from the \/Auth\/validate step. Response Status Code: 200 OK Response Body: A JSON array of main activities Example [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[56],"doc_tag":[],"knowledge_base":[33],"class_list":["post-320","docs","type-docs","status-publish","hentry","doc_category-kyc-verification-process","knowledge_base-10npay"],"year_month":"2026-05","word_count":325,"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":"KYC verification process","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/kyc-verification-process\/"}],"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\/320","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=320"}],"version-history":[{"count":0,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=320"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=320"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}