{"title":"Terms of Service","category":"default","creationDate":1776961627,"content":"<p>Your users must accept Adyen's Terms of Service before they can perform particular actions in your marketplace. If you build your own UI to collect data to onboard your users, you must generate a Terms of Service document, show the document to your users, and ask them to accept it.<\/p>\n<p>If you are using <a href=\"\/pt\/marketplaces\/onboard-users#hosted-onboarding\">hosted onboarding<\/a>, your user will complete this step as part of the onboarding process.<\/p>\n<p>The Terms of Service document must be accepted by an individual <a href=\"\/pt\/marketplaces\/verification-requirements#legal-entity-type\">legal entity<\/a> that represents a physical person. For organizations, the document must be accepted by an authorized signatory of the organization.<\/p>\n<p>For example:<\/p>\n<ul>\n<li>A cardholder accepts the document on their own behalf.<\/li>\n<li>The owner of a restaurant accepts the document on behalf of the legal entity that represents the business.<\/li>\n<\/ul>\n<h2>Requirements<\/h2>\n<p>Before you begin, take into account the following requirements and preparations.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">You must have an Adyen for Platforms integration.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>API credentials<\/strong><\/td>\n<td style=\"text-align: left;\">You must have API credentials for the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Legal Entity Management API<\/a> (for example, <strong>ws[123456]@Scope.Company[YourCompanyAccount]<\/strong>)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Webhooks<\/strong><\/td>\n<td style=\"text-align: left;\">Ensure that your server can receive and accept <a href=\"\/pt\/development-resources\/webhooks\">standard webhooks<\/a>.<br>Subscribe to the following webhooks: <ul><li markdown=\"1\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform-webhooks\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Configuration webhooks<\/a><\/li><\/ul><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin, make sure:  <ul><li markdown=\"1\">Make sure you created legal entities for:<ul><li markdown=\"1\">The user that has a contractual relationship with your marketplace.<\/li><li markdown=\"1\">The individual legal entity who will accept the document.<\/li><\/ul><\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How it works<\/h2>\n<p>To generate the Terms of Service and have them accepted by your users, follow these steps:<\/p>\n<ol>\n<li>Listen to the webhook to <a href=\"#get-updates\">confirm Terms of Service requirements<\/a>.<\/li>\n<li>Make an API request to <a href=\"#get-required\">get the types of Terms of Service required<\/a>.<\/li>\n<li>Make an API request to <a href=\"#get-document\">generate the Terms of Service documents<\/a>.<\/li>\n<li><a href=\"#present-document\">Present the Terms of Service document<\/a> to your user.<\/li>\n<li>Make an API request to <a href=\"#accept-tos\">confirm that your user has accepted the Terms of Service<\/a>.<\/li>\n<li>Optionally, make an API request to <a href=\"#tos-for-le\">see the Terms of Service information for a specific legal entity<\/a>.<\/li>\n<\/ol>\n<h2 id=\"get-updates\">1. Confirm Terms of Service requirements<\/h2>\n<p>When you create an account holder, certain <a href=\"\/pt\/marketplaces\/verification-overview\/capabilities\">capabilities<\/a> are requested for them. To check whether your user must accept the Terms of Service, listen to <a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/balanceplatform-webhooks\/latest\/post\/balancePlatform.accountHolder.updated\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">balancePlatform.accountHolder.updated<\/a> webhooks.<\/p>\n<p>If your user is required to accept Adyen's Terms of Service, it is indicated in the <code>verificationErrors<\/code> array.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'balancePlatform.accountHolder.updated webhook - with verification errors array'\" :id=\"'verification-errors'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"data\\\":{\\n      \\\"accountHolder\\\":{\\n         \\\"capabilities\\\":{\\n            \\\"sendToTransferInstrument\\\":{\\n               \\\"allowed\\\":\\\"false\\\",\\n               \\\"enabled\\\":\\\"true\\\",\\n               \\\"problems\\\":[\\n                  {\\n                     \\\"entity\\\":{\\n                        \\\"id\\\":\\\"LE00000000000000000000001\\\",\\n                        \\\"type\\\":\\\"LegalEntity\\\"\\n                     },\\n                     \\\"verificationErrors\\\":[\\n                        {\\n                           \\\"code\\\":\\\"2_902\\\",\\n                           \\\"message\\\":\\\"Terms Of Service forms are not accepted.\\\",\\n                           \\\"remediatingActions\\\":[\\n                              {\\n                                 \\\"code\\\":\\\"2_902\\\",\\n                                 \\\"message\\\":\\\"Accept TOS\\\"\\n                              }\\n                           ],\\n                           \\\"type\\\":\\\"invalidInput\\\"\\n                        }\\n                     ]\\n                  }\\n               ],\\n               \\\"requested\\\":\\\"true\\\",\\n               \\\"verificationStatus\\\":\\\"invalid\\\"\\n            }\\n         },\\n         \\\"description\\\":\\\"Test Account holder\\\",\\n         \\\"reference\\\":\\\"YOUR_INTERNAL_IDENTIFIER\\\",\\n         \\\"id\\\":\\\"AH00000000000000000000001\\\",\\n         \\\"legalEntityId\\\":\\\"LE00000000000000000000001\\\",\\n         \\\"status\\\":\\\"Active\\\"\\n      },\\n      \\\"balancePlatform\\\":\\\"YOUR_BALANCE_PLATFORM\\\"\\n   },\\n   \\\"environment\\\":\\\"test\\\",\\n   \\\"type\\\":\\\"balancePlatform.accountHolder.updated\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"get-required\">2. Get the types of Terms of Service required<\/h2>\n<p>If your user is required to accept Adyen's Terms of Service, you must determine which types of documents they need to accept. Make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/(id)\/termsOfServiceStatus\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/legalEntities\/{id}\/termsOfServiceStatus<\/a> request, specifying the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the main legal entity in the path. For sole proprietorships, this is the individual legal entity ID of the owner.<\/p>\n<div class=\"notices green\">\n<p>Note that your user may need to accept more than one Terms of Service document.<\/p>\n<\/div>\n<p>In your test environment, only the document type <code>adyenForPlatformsAdvanced<\/code> is returned regardless of your actual integration. This is since all accounts use the same default configuration. In your live environment, the actual Terms of Service document types are returned.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"termsOfServiceTypes\\\": [\\n        \\\"adyenForPlatformsAdvanced\\\"\\n    ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"get-document\">3. Generate the Terms of Service documents<\/h2>\n<p>To generate the Terms of Service documents, make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/legalEntities\/{id}\/termsOfService<\/a> request, specifying the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the main legal entity in the path. For sole proprietorships, this is the individual legal entity ID of the owner.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#request-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The type of document based on the services and capabilities requested by the user and your platform integration.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#request-language\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">language<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The language used for the Terms of Service document, specified by the two letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_ISO_639-1_codes\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO 639-1<\/a> language code. Possible value: <strong>en<\/strong> for English or <strong>fr<\/strong> for French. <br><br> Note that French is only available for some integration types in certain countries\/regions. Reach out to your Adyen contact for more information.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#request-termsOfServiceDocumentFormat\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentFormat<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td>The requested format for the Terms of Service document. Default value: <strong>JSON<\/strong>. Possible values: <strong>JSON<\/strong>, <strong>PDF<\/strong>, or <strong>TXT<\/strong>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Generate the Terms of Service document'\" :id=\"'generate-tos'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/kyc-test.adyen.com\\\/lem\\\/v3\\\/legalEntities\\\/LE00000000000000000000001\\\/termsOfService \\\\\\n-H 'x-api-key: ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY' \\\\\\n-d '{\\n   \\&quot;type\\&quot;: \\&quot;adyenForPlatformsAdvanced\\&quot;,\\n   \\&quot;language\\&quot;: \\&quot;en\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v33.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.legalentitymanagement.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.legalEntityManagement.*;\\n\\nClient client = new Client(\\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nGetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = new GetTermsOfServiceDocumentRequest()\\n  .language(\\&quot;en\\&quot;)\\n  .type(GetTermsOfServiceDocumentRequest.TypeEnum.ADYENFORPLATFORMSADVANCED);\\n\\n\\\/\\\/ Send the request\\nTermsOfServiceApi service = new TermsOfServiceApi(client);\\nGetTermsOfServiceDocumentResponse response = service.getTermsOfServiceDocument(\\&quot;id\\&quot;, getTermsOfServiceDocumentRequest, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;&lt;?php\\n\\\/\\\/ Adyen PHP API Library v24.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\LegalEntityManagement\\\\GetTermsOfServiceDocumentRequest;\\nuse Adyen\\\\Service\\\\LegalEntityManagement\\\\TermsOfServiceApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$getTermsOfServiceDocumentRequest = new GetTermsOfServiceDocumentRequest();\\n$getTermsOfServiceDocumentRequest\\n  -&gt;setLanguage(\\&quot;en\\&quot;)\\n  -&gt;setType(\\&quot;adyenForPlatformsAdvanced\\&quot;);\\n\\n\\\/\\\/ Send the request\\n$service = new TermsOfServiceApi($client);\\n$response = $service-&gt;getTermsOfServiceDocument('id', $getTermsOfServiceDocumentRequest);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v28.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.LegalEntityManagement;\\nusing Adyen.Service.LegalEntityManagement;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nGetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = new GetTermsOfServiceDocumentRequest\\n{\\n  Language = \\&quot;en\\&quot;,\\n  Type = GetTermsOfServiceDocumentRequest.TypeEnum.AdyenForPlatformsAdvanced\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new TermsOfServiceService(client);\\nvar response = service.GetTermsOfServiceDocument(\\&quot;id\\&quot;, getTermsOfServiceDocumentRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v23.3.0\\nconst { Client, LegalEntityManagementAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst getTermsOfServiceDocumentRequest = {\\n  type: \\&quot;adyenForPlatformsAdvanced\\&quot;,\\n  language: \\&quot;en\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst legalEntityManagementAPI = new LegalEntityManagementAPI(client);\\nconst response = legalEntityManagementAPI.TermsOfServiceApi.getTermsOfServiceDocument(\\&quot;id\\&quot;, getTermsOfServiceDocumentRequest);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v17.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/legalEntityManagement\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\ngetTermsOfServiceDocumentRequest := legalEntityManagement.GetTermsOfServiceDocumentRequest{\\n  Language: \\&quot;en\\&quot;,\\n  Type: \\&quot;adyenForPlatformsAdvanced\\&quot;,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.LegalEntityManagement()\\nreq := service.TermsOfServiceApi.GetTermsOfServiceDocumentInput(\\&quot;id\\&quot;).GetTermsOfServiceDocumentRequest(getTermsOfServiceDocumentRequest)\\nres, httpRes, err := service.TermsOfServiceApi.GetTermsOfServiceDocument(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v13.3.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;type\\&quot;: \\&quot;adyenForPlatformsAdvanced\\&quot;,\\n  \\&quot;language\\&quot;: \\&quot;en\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.legalEntityManagement.terms_of_service_api.get_terms_of_service_document(request=json_request, id=\\&quot;id\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.1.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :type =&gt; 'adyenForPlatformsAdvanced',\\n  :language =&gt; 'en'\\n}\\n\\n# Send the request\\nresult = adyen.legalEntityManagement.terms_of_service_api.get_terms_of_service_document(request_body, 'id')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v23.3.0\\nimport { Client, LegalEntityManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst getTermsOfServiceDocumentRequest: Types.legalEntityManagement.GetTermsOfServiceDocumentRequest = {\\n  language: \\&quot;en\\&quot;,\\n  type: Types.legalEntityManagement.GetTermsOfServiceDocumentRequest.TypeEnum.AdyenForPlatformsAdvanced\\n};\\n\\n\\\/\\\/ Send the request\\nconst legalEntityManagementAPI = new LegalEntityManagementAPI(client);\\nconst response = legalEntityManagementAPI.TermsOfServiceApi.getTermsOfServiceDocument(\\&quot;id\\&quot;, getTermsOfServiceDocumentRequest);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns the following information:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#responses-200-document\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">document<\/a><\/td>\n<td>The generated document in the Base64-encoded format.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a><\/td>\n<td>The unique identifier of the organization legal entity.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#responses-200-language\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">language<\/a><\/td>\n<td>The language of the document.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#responses-200-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td>The type of document based on the services and capabilities requested by the user and your platform integration.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#responses-200-termsOfServiceDocumentId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentId<\/a><\/td>\n<td>The unique identifier of the document.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/(id)\/termsOfService#request-termsOfServiceDocumentFormat\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentFormat<\/a><\/td>\n<td>The requested format for the Terms of Service document. Default value: <strong>JSON<\/strong>. Possible values: <strong>JSON<\/strong>, <strong>PDF<\/strong>, or <strong>TXT<\/strong>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"id\\\": \\\"LE00000000000000000000001\\\",\\n  \\\"type\\\": \\\"adyenForPlatformsAdvanced\\\",\\n  \\\"language\\\": \\\"en\\\",\\n  \\\"document\\\": \\\"termsOfServiceDocumentResponse\\\" ,\\n  \\\"termsOfServiceDocumentId\\\": \\\"abc123\\\",\\n  \\\"termsOfServiceDocumentFormat\\\": \\\"JSON\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns the <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/_id_\/termsOfService#responses-200-document\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">document<\/a> and its unique <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/_id_\/termsOfService#responses-200-termsOfServiceDocumentId\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentId<\/a>.<\/p>\n<div class=\"notices yellow\">\n<p>Your user may need to accept more than one Terms of Service document depending on your integration. In this case, every required <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/_id_\/termsOfService#responses-200-document\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">document<\/a> and <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/_id_\/termsOfService#responses-200-termsOfServiceDocumentId\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentId<\/a> is returned in the response.<\/p>\n<\/div>\n<p>You will need to present the document to your user in the <a href=\"#present-document\">next step<\/a>. Use the document ID when you confirm your user has <a href=\"#accept-tos\">accepted the Terms of Service<\/a>.<\/p>\n<h2 id=\"present-document\">4. Present the Terms of Service document to your user<\/h2>\n<p>You need to ask your user to review and accept the Terms of Service document. The process to do this depends on the format of the document.<\/p>\n\n<div id=\"tabIBtw7\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Format: JSON&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To present the document to your user, you can use the Adyen Document Viewer to render the document in your website.&lt;\\\/p&gt;\\n&lt;p&gt;Before passing the document to the Adyen Document Viewer, you need to decode it.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-js\\&quot;&gt;const documentViewer = new AdyenDocumentViewer(&#039;#test&#039;);\\nconst document = JSON.parse(decodeURIComponent(escape(window.atob(termsOfServiceDocumentResponse.document))));\\ndocumentViewer.render(document);&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n\\n&lt;div id=\\&quot;tabzSa0F\\&quot;&gt;\\n    &lt;div data-component-wrapper=\\&quot;tabs\\&quot;&gt;\\n        &lt;tabs\\n                        :items=\\&quot;[{&amp;quot;title&amp;quot;:&amp;quot;npm (Recommended)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\n&amp;lt;p&amp;gt;Install the &amp;lt;a href=\\\\&amp;quot;https:\\\\\\\/\\\\\\\/www.npmjs.com\\\\\\\/package\\\\\\\/@adyen\\\\\\\/adyen-document-viewer\\\\&amp;quot; target=\\\\&amp;quot;_blank\\\\&amp;quot; rel=\\\\&amp;quot;nofollow noopener noreferrer\\\\&amp;quot; class=\\\\&amp;quot;external-link no-image\\\\&amp;quot;&amp;gt;Adyen Document Viewer package&amp;lt;\\\\\\\/a&amp;gt;:&amp;lt;\\\\\\\/p&amp;gt;\\\\n&amp;lt;pre&amp;gt;&amp;lt;code class=\\\\&amp;quot;language-bash\\\\&amp;quot;&amp;gt;npm install @adyen\\\\\\\/adyen-document-viewer --save&amp;lt;\\\\\\\/code&amp;gt;&amp;lt;\\\\\\\/pre&amp;gt;\\\\n&amp;lt;p&amp;gt;Import the Adyen Document Viewer Node package into your application. You can add your own styling by overriding the rules in the CSS file.&amp;lt;\\\\\\\/p&amp;gt;\\\\n&amp;lt;pre&amp;gt;&amp;lt;code class=\\\\&amp;quot;language-js\\\\&amp;quot;&amp;gt;import AdyenDocumentViewer from &amp;#039;@adyen\\\\\\\/adyen-document-viewer&amp;#039;;\\\\nimport &amp;#039;@adyen\\\\\\\/adyen-document-viewer\\\\\\\/dist\\\\\\\/adyen-document-viewer.min.css&amp;#039;;&amp;lt;\\\\\\\/code&amp;gt;&amp;lt;\\\\\\\/pre&amp;gt;\\\\n&amp;quot;,&amp;quot;altTitle&amp;quot;:null,&amp;quot;oldTabId&amp;quot;:&amp;quot;npm_(recommended)_0_1&amp;quot;,&amp;quot;relation&amp;quot;:&amp;quot;&amp;quot;},{&amp;quot;title&amp;quot;:&amp;quot;Embed script and stylesheet&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\n&amp;lt;p&amp;gt;Include the script and stylesheet to a .html file&amp;lt;\\\\\\\/p&amp;gt;\\\\n&amp;lt;div data-component-wrapper=\\\\&amp;quot;code-sample\\\\&amp;quot;&amp;gt;\\\\n    &amp;lt;code-sample :title=\\\\&amp;quot;&amp;#039;HTML&amp;#039;\\\\&amp;quot; :id=\\\\&amp;quot;&amp;#039;&amp;#039;\\\\&amp;quot; :code-data=&amp;#039;[{\\\\&amp;quot;language\\\\&amp;quot;:\\\\&amp;quot;html\\\\&amp;quot;,\\\\&amp;quot;tabTitle\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\&amp;quot;content\\\\&amp;quot;:\\\\&amp;quot;&amp;amp;lt;script src=\\\\\\\\\\\\&amp;quot;https:\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\/unpkg.com\\\\\\\\\\\\\\\/@adyen\\\\\\\\\\\\\\\/adyen-document-viewer@^1.0.0\\\\\\\\\\\\&amp;quot;&amp;amp;gt;&amp;amp;lt;\\\\\\\\\\\\\\\/script&amp;amp;gt;\\\\\\\\n&amp;amp;lt;link rel=\\\\\\\\\\\\&amp;quot;stylesheet\\\\\\\\\\\\&amp;quot; href=\\\\\\\\\\\\&amp;quot;https:\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\/unpkg.com\\\\\\\\\\\\\\\/@adyen\\\\\\\\\\\\\\\/adyen-document-viewer@^1.0.0\\\\\\\\\\\\\\\/dist\\\\\\\\\\\\\\\/adyen-document-viewer.min.css\\\\\\\\\\\\&amp;quot;&amp;amp;gt;\\\\&amp;quot;}]&amp;#039; :enable-copy-link-to-code-block=\\\\&amp;quot;true\\\\&amp;quot; :code-sample-card-size=\\\\&amp;quot;&amp;#039;fullsize&amp;#039;\\\\&amp;quot;&amp;gt;&amp;lt;\\\\\\\/code-sample&amp;gt;\\\\n&amp;lt;\\\\\\\/div&amp;gt;\\\\n&amp;quot;,&amp;quot;altTitle&amp;quot;:null,&amp;quot;oldTabId&amp;quot;:&amp;quot;embed_script_and_stylesheet_1_2&amp;quot;,&amp;quot;relation&amp;quot;:&amp;quot;&amp;quot;}]\\&quot;\\n            :should-update-when-url-changes=&#039;false&#039;&gt;\\n        &lt;\\\/tabs&gt;\\n    &lt;\\\/div&gt;\\n&lt;\\\/div&gt;\\n\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;format:_json_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Format: PDF or TXT&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;In the response from the previous step, take the Base64-encoded data from the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/legalentity\\\/latest\\\/post\\\/legalEntities\\\/(id)\\\/termsOfService#responses-200-document\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;document&lt;\\\/a&gt;. Decode it and present it to your user in your UI.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;format:_pdf_or_txt_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"accept-tos\">5. Accept the Terms of Service<\/h2>\n<p>To confirm that your user has accepted the Terms of Service, make a PATCH  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/(id)\/termsOfService\/(termsofservicedocumentid)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/legalEntities\/{id}\/termsOfService\/termsOfServicedocumentid<\/a> request, specifying the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the main legal entity and the <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities\/_id_\/termsOfService#responses-200-termsOfServiceDocumentId\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentId<\/a> of the document in the path. For sole proprietorships, include the legal entity ID of the owner in the path. For organizations, include the legal entity ID of the organization in the path.<\/p>\n<p>In the body of the request, specify the following:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#request-acceptedBy\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">acceptedBy<\/a><\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The individual legal entity  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the user accepting the Terms of Service. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the legal entity ID of an authorized signatory for the organization.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#request-ipAddress\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">ipAddress<\/a><\/td>\n<td><\/td>\n<td>The IP address of the user.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This request populates the Terms of Service document with the data of the main legal entity. For sole proprietorships, this is the information for the individual legal entity of the owner. For organizations, this means the document contains both the data for the organization and the individual legal entity of the authorized signatory who accepted the document.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Accept Terms of Service document'\" :id=\"'accept-tos'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/kyc-test.adyen.com\\\/lem\\\/v3\\\/legalEntities\\\/LE00000000000000000000001\\\/termsOfService\\\/abc123 \\\\\\n-H 'x-api-key: ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X PATCH \\\\\\n-d '{\\n    \\&quot;acceptedBy\\&quot; : \\&quot;LE00000000000000000000002\\&quot;,\\n    \\&quot;ipAddress\\&quot; : \\&quot;127.0.0.1\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v33.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.legalentitymanagement.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.legalEntityManagement.*;\\n\\nClient client = new Client(\\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nAcceptTermsOfServiceRequest acceptTermsOfServiceRequest = new AcceptTermsOfServiceRequest()\\n  .ipAddress(\\&quot;127.0.0.1\\&quot;)\\n  .acceptedBy(\\&quot;LE00000000000000000000002\\&quot;);\\n\\n\\\/\\\/ Send the request\\nTermsOfServiceApi service = new TermsOfServiceApi(client);\\nAcceptTermsOfServiceResponse response = service.acceptTermsOfService(\\&quot;id\\&quot;, \\&quot;termsofservicedocumentid\\&quot;, acceptTermsOfServiceRequest, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;&lt;?php\\n\\\/\\\/ Adyen PHP API Library v24.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\LegalEntityManagement\\\\AcceptTermsOfServiceRequest;\\nuse Adyen\\\\Service\\\\LegalEntityManagement\\\\TermsOfServiceApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$acceptTermsOfServiceRequest = new AcceptTermsOfServiceRequest();\\n$acceptTermsOfServiceRequest\\n  -&gt;setIpAddress(\\&quot;127.0.0.1\\&quot;)\\n  -&gt;setAcceptedBy(\\&quot;LE00000000000000000000002\\&quot;);\\n\\n\\\/\\\/ Send the request\\n$service = new TermsOfServiceApi($client);\\n$response = $service-&gt;acceptTermsOfService('id', 'termsofservicedocumentid', $acceptTermsOfServiceRequest);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v28.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.LegalEntityManagement;\\nusing Adyen.Service.LegalEntityManagement;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nAcceptTermsOfServiceRequest acceptTermsOfServiceRequest = new AcceptTermsOfServiceRequest\\n{\\n  IpAddress = \\&quot;127.0.0.1\\&quot;,\\n  AcceptedBy = \\&quot;LE00000000000000000000002\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new TermsOfServiceService(client);\\nvar response = service.AcceptTermsOfService(\\&quot;id\\&quot;, \\&quot;termsofservicedocumentid\\&quot;, acceptTermsOfServiceRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v23.3.0\\nconst { Client, LegalEntityManagementAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst acceptTermsOfServiceRequest = {\\n  acceptedBy: \\&quot;LE00000000000000000000002\\&quot;,\\n  ipAddress: \\&quot;127.0.0.1\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst legalEntityManagementAPI = new LegalEntityManagementAPI(client);\\nconst response = legalEntityManagementAPI.TermsOfServiceApi.acceptTermsOfService(\\&quot;id\\&quot;, \\&quot;termsofservicedocumentid\\&quot;, acceptTermsOfServiceRequest);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v17.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/legalEntityManagement\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\nacceptTermsOfServiceRequest := legalEntityManagement.AcceptTermsOfServiceRequest{\\n  IpAddress: common.PtrString(\\&quot;127.0.0.1\\&quot;),\\n  AcceptedBy: \\&quot;LE00000000000000000000002\\&quot;,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.LegalEntityManagement()\\nreq := service.TermsOfServiceApi.AcceptTermsOfServiceInput(\\&quot;id\\&quot;,\\&quot;termsofservicedocumentid\\&quot;).AcceptTermsOfServiceRequest(acceptTermsOfServiceRequest)\\nres, httpRes, err := service.TermsOfServiceApi.AcceptTermsOfService(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v13.3.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;acceptedBy\\&quot;: \\&quot;LE00000000000000000000002\\&quot;,\\n  \\&quot;ipAddress\\&quot;: \\&quot;127.0.0.1\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.legalEntityManagement.terms_of_service_api.accept_terms_of_service(request=json_request, id=\\&quot;id\\&quot;, termsofservicedocumentid=\\&quot;termsofservicedocumentid\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.1.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :acceptedBy =&gt; 'LE00000000000000000000002',\\n  :ipAddress =&gt; '127.0.0.1'\\n}\\n\\n# Send the request\\nresult = adyen.legalEntityManagement.terms_of_service_api.accept_terms_of_service(request_body, 'id', 'termsofservicedocumentid')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v23.3.0\\nimport { Client, LegalEntityManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst acceptTermsOfServiceRequest: Types.legalEntityManagement.AcceptTermsOfServiceRequest = {\\n  ipAddress: \\&quot;127.0.0.1\\&quot;,\\n  acceptedBy: \\&quot;LE00000000000000000000002\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst legalEntityManagementAPI = new LegalEntityManagementAPI(client);\\nconst response = legalEntityManagementAPI.TermsOfServiceApi.acceptTermsOfService(\\&quot;id\\&quot;, \\&quot;termsofservicedocumentid\\&quot;, acceptTermsOfServiceRequest);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns the following information.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#responses-200-acceptedBy\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">acceptedBy<\/a><\/td>\n<td>The individual legal entity  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the user who accepted the terms of service.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#responses-200-id\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a><\/td>\n<td>The unique identifier of the accepted document.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#responses-200-ipAddress\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">ipAddress<\/a><\/td>\n<td>The IP address of the user. Only if provided in the request.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#responses-200-language\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">language<\/a><\/td>\n<td>The language of the document.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#responses-200-termsOfServiceDocumentId\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">termsOfServiceDocumentId<\/a><\/td>\n<td>The unique identifier of the document.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/patch\/legalEntities\/_id_\/termsOfService\/_termsofservicedocumentid_#responses-200-type\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td>The type of document based on the services and capabilities requested by the user and your platform integration.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Terms of Service document accepted'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"acceptedBy\\\": \\\"LE00000000000000000000002\\\",\\n    \\\"id\\\": \\\"TOSA000AB00000000B2AAAB2BA0AA0\\\",\\n    \\\"ipAddress\\\": \\\"127.0.0.1\\\",\\n    \\\"language\\\": \\\"en\\\",\\n    \\\"termsOfServiceDocumentId\\\": \\\"abc123\\\",\\n    \\\"type\\\": \\\"adyenForPlatformsAdvanced\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"tos-for-le\">6. (Optional): Get the Terms of Service information for a legal entity<\/h2>\n<p>To see the Terms of Service information for a legal entity, make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/(id)\/termsOfServiceAcceptanceInfos\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/legalEntities\/{id}\/termsOfServiceAcceptanceInfos<\/a> request with the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the main legal entity in the path. For sole proprietorships, this is the individual legal entity ID of the owner.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Get Terms of Service information for a legal entity'\" :id=\"'get-tos-for-le'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/kyc-test.adyen.com\\\/lem\\\/v3\\\/legalEntities\\\/LE00000000000000000000001\\\/termsOfServiceAcceptanceInfos \\\\\\n-H 'x-api-key: ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY' \\\\\\n-X GET \\\\&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v33.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.legalentitymanagement.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.legalEntityManagement.*;\\n\\nClient client = new Client(\\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Send the request\\nTermsOfServiceApi service = new TermsOfServiceApi(client);\\nGetTermsOfServiceAcceptanceInfosResponse response = service.getTermsOfServiceInformationForLegalEntity(\\&quot;id\\&quot;, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;&lt;?php\\n\\\/\\\/ Adyen PHP API Library v24.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\LegalEntityManagement\\\\TermsOfServiceApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\\/\\\/ Send the request\\n$service = new TermsOfServiceApi($client);\\n$response = $service-&gt;getTermsOfServiceInformationForLegalEntity('id');&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v28.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.LegalEntityManagement;\\nusing Adyen.Service.LegalEntityManagement;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Send the request\\nvar service = new TermsOfServiceService(client);\\nvar response = service.GetTermsOfServiceInformationForLegalEntity(\\&quot;id\\&quot;);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v23.3.0\\nconst { Client, LegalEntityManagementAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Send the request\\nconst legalEntityManagementAPI = new LegalEntityManagementAPI(client);\\nconst response = legalEntityManagementAPI.TermsOfServiceApi.getTermsOfServiceInformationForLegalEntity(\\&quot;id\\&quot;);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v17.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v17\\\/src\\\/legalEntityManagement\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Send the request\\nservice := client.LegalEntityManagement()\\nreq := service.TermsOfServiceApi.GetTermsOfServiceInformationForLegalEntityInput(\\&quot;id\\&quot;)\\nres, httpRes, err := service.TermsOfServiceApi.GetTermsOfServiceInformationForLegalEntity(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v13.3.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Send the request\\nresult = adyen.legalEntityManagement.terms_of_service_api.get_terms_of_service_information_for_legal_entity(id=\\&quot;id\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.1.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Send the request\\nresult = adyen.legalEntityManagement.terms_of_service_api.get_terms_of_service_information_for_legal_entity('id')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v23.3.0\\nimport { Client, LegalEntityManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Send the request\\nconst legalEntityManagementAPI = new LegalEntityManagementAPI(client);\\nconst response = legalEntityManagementAPI.TermsOfServiceApi.getTermsOfServiceInformationForLegalEntity(\\&quot;id\\&quot;);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns information about the Terms of Service document linked to the legal entity.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/_id_\/termsOfServiceAcceptanceInfos#responses-200-data-createdAt\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">createdAt<\/a><\/td>\n<td>The date the document was created.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/_id_\/termsOfServiceAcceptanceInfos#responses-200-data-id\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a><\/td>\n<td>The unique identifier of the accepted document.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/_id_\/termsOfServiceAcceptanceInfos#responses-200-data-acceptedBy\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">acceptedBy<\/a><\/td>\n<td>The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the individual who accepted the terms of service.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/_id_\/termsOfServiceAcceptanceInfos#responses-200-data-acceptedFor\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">acceptedFor<\/a><\/td>\n<td>The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/post\/legalEntities#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the main legal entity.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/docs.adyen.com\/api-explorer\/legalentity\/latest\/get\/legalEntities\/_id_\/termsOfServiceAcceptanceInfos#responses-200-data-type\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td>The type of document based on the services and capabilities requested by the user and your platform integration.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"data\\\": [\\n        {\\n            \\\"acceptedBy\\\": \\\"LE00000000000000000000002\\\",\\n            \\\"acceptedFor\\\": \\\"LE00000000000000000000001\\\",\\n            \\\"createdAt\\\": \\\"2022-12-05T13:36:58.212253Z\\\",\\n            \\\"id\\\": \\\"TOSA000AB00000000B2AAAB2BA0AA0\\\",\\n            \\\"type\\\": \\\"adyenForPlatformsAdvanced\\\"\\n        }\\n    ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/marketplaces\/onboard-users\/terms-of-service","articleFields":{"description":"Get your users to accept Adyen's Terms of Service","feedback_component":true,"parameters":{"directoryPath":"\/marketplaces","model":"marketplace"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/marketplaces\/onboard-users\/terms-of-service","title":"Terms of Service","content":"Your users must accept Adyen's Terms of Service before they can perform particular actions in your marketplace. If you build your own UI to collect data to onboard your users, you must generate a Terms of Service document, show the document to your users, and ask them to accept it.\nIf you are using hosted onboarding, your user will complete this step as part of the onboarding process.\nThe Terms of Service document must be accepted by an individual legal entity that represents a physical person. For organizations, the document must be accepted by an authorized signatory of the organization.\nFor example:\n\nA cardholder accepts the document on their own behalf.\nThe owner of a restaurant accepts the document on behalf of the legal entity that represents the business.\n\nRequirements\nBefore you begin, take into account the following requirements and preparations.\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nYou must have an Adyen for Platforms integration.\n\n\nAPI credentials\nYou must have API credentials for the  Legal Entity Management API (for example, ws[123456]@Scope.Company[YourCompanyAccount])\n\n\n\nWebhooks\nEnsure that your server can receive and accept standard webhooks.Subscribe to the following webhooks:  Configuration webhooks\n\n\n\nSetup steps\nBefore you begin, make sure:  Make sure you created legal entities for:The user that has a contractual relationship with your marketplace.The individual legal entity who will accept the document.\n\n\n\nHow it works\nTo generate the Terms of Service and have them accepted by your users, follow these steps:\n\nListen to the webhook to confirm Terms of Service requirements.\nMake an API request to get the types of Terms of Service required.\nMake an API request to generate the Terms of Service documents.\nPresent the Terms of Service document to your user.\nMake an API request to confirm that your user has accepted the Terms of Service.\nOptionally, make an API request to see the Terms of Service information for a specific legal entity.\n\n1. Confirm Terms of Service requirements\nWhen you create an account holder, certain capabilities are requested for them. To check whether your user must accept the Terms of Service, listen to balancePlatform.accountHolder.updated webhooks.\nIf your user is required to accept Adyen's Terms of Service, it is indicated in the verificationErrors array.\n\n    \n\n2. Get the types of Terms of Service required\nIf your user is required to accept Adyen's Terms of Service, you must determine which types of documents they need to accept. Make a GET  \/legalEntities\/{id}\/termsOfServiceStatus request, specifying the  id of the main legal entity in the path. For sole proprietorships, this is the individual legal entity ID of the owner.\n\nNote that your user may need to accept more than one Terms of Service document.\n\nIn your test environment, only the document type adyenForPlatformsAdvanced is returned regardless of your actual integration. This is since all accounts use the same default configuration. In your live environment, the actual Terms of Service document types are returned.\n\n    \n\n3. Generate the Terms of Service documents\nTo generate the Terms of Service documents, make a POST  \/legalEntities\/{id}\/termsOfService request, specifying the  id of the main legal entity in the path. For sole proprietorships, this is the individual legal entity ID of the owner.\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n type\n\nThe type of document based on the services and capabilities requested by the user and your platform integration.\n\n\n language\n\nThe language used for the Terms of Service document, specified by the two letter ISO 639-1 language code. Possible value: en for English or fr for French.  Note that French is only available for some integration types in certain countries\/regions. Reach out to your Adyen contact for more information.\n\n\n termsOfServiceDocumentFormat\n\nThe requested format for the Terms of Service document. Default value: JSON. Possible values: JSON, PDF, or TXT.\n\n\n\n\n    \n\nThe response returns the following information:\n\n\n\nParameter\nDescription\n\n\n\n\n document\nThe generated document in the Base64-encoded format.\n\n\n id\nThe unique identifier of the organization legal entity.\n\n\n language\nThe language of the document.\n\n\n type\nThe type of document based on the services and capabilities requested by the user and your platform integration.\n\n\n termsOfServiceDocumentId\nThe unique identifier of the document.\n\n\n termsOfServiceDocumentFormat\nThe requested format for the Terms of Service document. Default value: JSON. Possible values: JSON, PDF, or TXT.\n\n\n\n\n    \n\nThe response returns the document and its unique termsOfServiceDocumentId.\n\nYour user may need to accept more than one Terms of Service document depending on your integration. In this case, every required document and termsOfServiceDocumentId is returned in the response.\n\nYou will need to present the document to your user in the next step. Use the document ID when you confirm your user has accepted the Terms of Service.\n4. Present the Terms of Service document to your user\nYou need to ask your user to review and accept the Terms of Service document. The process to do this depends on the format of the document.\n\n\n    \n        \n        \n    \n\n\n5. Accept the Terms of Service\nTo confirm that your user has accepted the Terms of Service, make a PATCH  \/legalEntities\/{id}\/termsOfService\/termsOfServicedocumentid request, specifying the  id of the main legal entity and the termsOfServiceDocumentId of the document in the path. For sole proprietorships, include the legal entity ID of the owner in the path. For organizations, include the legal entity ID of the organization in the path.\nIn the body of the request, specify the following:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\nacceptedBy\n\nThe individual legal entity  id of the user accepting the Terms of Service. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the legal entity ID of an authorized signatory for the organization.\n\n\nipAddress\n\nThe IP address of the user.\n\n\n\nThis request populates the Terms of Service document with the data of the main legal entity. For sole proprietorships, this is the information for the individual legal entity of the owner. For organizations, this means the document contains both the data for the organization and the individual legal entity of the authorized signatory who accepted the document.\n\n    \n\nThe response returns the following information.\n\n\n\nParameter\nDescription\n\n\n\n\nacceptedBy\nThe individual legal entity  id of the user who accepted the terms of service.\n\n\nid\nThe unique identifier of the accepted document.\n\n\nipAddress\nThe IP address of the user. Only if provided in the request.\n\n\nlanguage\nThe language of the document.\n\n\ntermsOfServiceDocumentId\nThe unique identifier of the document.\n\n\ntype\nThe type of document based on the services and capabilities requested by the user and your platform integration.\n\n\n\n\n    \n\n6. (Optional): Get the Terms of Service information for a legal entity\nTo see the Terms of Service information for a legal entity, make a GET  \/legalEntities\/{id}\/termsOfServiceAcceptanceInfos request with the  id of the main legal entity in the path. For sole proprietorships, this is the individual legal entity ID of the owner.\n\n    \n\nThe response returns information about the Terms of Service document linked to the legal entity.\n\n\n\nParameter\nDescription\n\n\n\n\ncreatedAt\nThe date the document was created.\n\n\nid\nThe unique identifier of the accepted document.\n\n\nacceptedBy\nThe  id of the individual who accepted the terms of service.\n\n\nacceptedFor\nThe  id of the main legal entity.\n\n\ntype\nThe type of document based on the services and capabilities requested by the user and your platform integration.\n\n\n\n\n    \n\n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Marketplaces","lvl2":"Onboard and verify users","lvl3":"Terms of Service"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/marketplaces","lvl2":"https:\/\/docs.adyen.com\/pt\/marketplaces\/onboard-users","lvl3":"\/pt\/marketplaces\/onboard-users\/terms-of-service"},"levels":4,"category":"Marketplaces","category_color":"green","tags":["Terms","Service"]}}
