{"title":"Manage payment methods with API","category":"default","creationDate":1776961628,"content":"<p>During the <a href=\"\/pt\/platforms\/onboard-users\/onboarding-steps\/\">onboarding process<\/a>, you already added payment methods to your users' stores. After we enable a payment method, your users can start accepting all of the <a href=\"\/pt\/development-resources\/paymentmethodvariant\/\">payment method's variants<\/a> by default. For example, if you configure <strong>visa<\/strong>, they can accept <a href=\"\/pt\/development-resources\/paymentmethodvariant\/#visa\">all of its variants<\/a>, including <strong>visadebit<\/strong>, <strong>visapremiumcredit<\/strong>, <strong>visasignature<\/strong> and so on.<\/p>\n<p>This page explains how you can:<\/p>\n<ul>\n<li>Request additional payment methods.<\/li>\n<li>View all payment methods configured for your merchant account or store.<\/li>\n<li>View the details of a specific payment method.<\/li>\n<li>Update the country\/region and currency of a payment method.<\/li>\n<li>Enable or disable a payment method for your user.<\/li>\n<\/ul>\n<h2>Requirements<\/h2>\n<p>Before you begin, take into account the following requirements, limitations, 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 <a href=\"\/pt\/online-payments\/build-your-integration\">online<\/a> or <a href=\"\/pt\/point-of-sale\/design-your-integration\">in-person<\/a> payments integration with Adyen.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/api-credentials\/roles\/\">API credential roles<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Your  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Management API<\/a> credential must have the following role:<ul><li markdown=\"1\"><strong>Management API\u2014Payment methods read and write<\/strong><\/li><\/ul><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/webhooks\">Webhooks<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Subscribe to the following webhooks: <ul><li markdown=\"1\"><strong>Payment method webhook<\/strong><\/li><\/ul><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Limitations<\/strong><\/td>\n<td style=\"text-align: left;\"><ul><li markdown=\"1\">You can only configure payment methods that are <a href=\"\/pt\/platforms\/payment-methods#supported-payment-methods\">supported for your currency and integration<\/a>.<\/li><li markdown=\"1\">It may take some time for the payment method to become available due to external factors. Payment methods typically appear within a day. To avoid delays, we recommend requesting payment methods at least one day before the business opens.<\/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 requesting a payment method, make sure that you already configured both your user's <a href=\"\/pt\/platforms\/manage-stores\/#create-store\">store<\/a> and <strong>business lines<\/strong>.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Request payment methods<\/h2>\n<p>To request a payment method for your user's store, make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/paymentMethodSettings<\/a> request with your merchant account ID in the path.<\/p>\n<p>In the body, specify the following parameters:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#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 style=\"text-align: left;\">The payment method variant. Some payment methods require additional configuration or parameters. For details, see the <a href=\"\/pt\/platforms\/payment-methods#supported-payment-methods\">Supported payment methods<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#request-storeIds\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">storeIds<\/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 style=\"text-align: left;\">The <code>id<\/code> of your user's store. For the list of stores in your merchant account, make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/stores\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/stores<\/a> request.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#request-businessLineId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">businessLineId<\/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 style=\"text-align: left;\">The unique identifier of your user's <a href=\"\/pt\/platforms\/onboard-users\/onboarding-steps\">business line<\/a> for which you want to request a payment method.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#request-countries\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countries<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The list of countries to enable with the payment method. To enable all countries supported by the payment method, set to <span translate=\"no\"><strong>ANY<\/strong><\/span> or send empty.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#request-currencies\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">currencies<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The list of currencies to enable with the payment method. To enable all currencies supported by the payment method, set to <span translate=\"no\"><strong>ANY<\/strong><\/span> or send empty.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here is an example of a request to accept <strong>Visa<\/strong> payments from cards issued in the <strong>Netherlands<\/strong>:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Add a payment method to a store'\" :id=\"'add-pm-to-store'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/paymentMethodSettings \\\\\\n-H 'x-API-key: YOUR_X-API-KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;type\\&quot;: \\&quot;visa\\&quot;,\\n    \\&quot;businessLineId\\&quot;:\\&quot;BL00000000000000000000001\\&quot;,\\n    \\&quot;storeIds\\&quot;: [\\&quot;ST00000000000000000000001\\&quot;],\\n    \\&quot;currencies\\&quot;: [\\n        \\&quot;EUR\\&quot;\\n    ],\\n    \\&quot;countries\\&quot;: [\\n        \\&quot;NL\\&quot;\\n    ]\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v28.3.1\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nPaymentMethodSetupInfo paymentMethodSetupInfo = new PaymentMethodSetupInfo()\\n  .countries(Arrays.asList(\\&quot;NL\\&quot;))\\n  .type(PaymentMethodSetupInfo.TypeEnum.VISA)\\n  .businessLineId(\\&quot;BL00000000000000000000001\\&quot;)\\n  .currencies(Arrays.asList(\\&quot;EUR\\&quot;));\\n\\n\\\/\\\/ Send the request\\nPaymentMethodsMerchantLevelApi service = new PaymentMethodsMerchantLevelApi(client);\\nPaymentMethod response = service.requestPaymentMethod(\\&quot;merchantId\\&quot;, paymentMethodSetupInfo, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v20.2.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Management\\\\PaymentMethodSetupInfo;\\nuse Adyen\\\\Service\\\\Management\\\\PaymentMethodsMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$paymentMethodSetupInfo = new PaymentMethodSetupInfo();\\n$paymentMethodSetupInfo\\n  -&gt;setCountries(array(\\&quot;NL\\&quot;))\\n  -&gt;setType(\\&quot;visa\\&quot;)\\n  -&gt;setBusinessLineId(\\&quot;BL00000000000000000000001\\&quot;)\\n  -&gt;setCurrencies(array(\\&quot;EUR\\&quot;));\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentMethodsMerchantLevelApi($client);\\n$response = $service-&gt;requestPaymentMethod('merchantId', $paymentMethodSetupInfo);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v19.1.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nPaymentMethodSetupInfo paymentMethodSetupInfo = new PaymentMethodSetupInfo\\n{\\n  Countries = { \\&quot;NL\\&quot; },\\n  Type = PaymentMethodSetupInfo.TypeEnum.Visa,\\n  BusinessLineId = \\&quot;BL00000000000000000000001\\&quot;,\\n  Currencies = { \\&quot;EUR\\&quot; }\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentMethodsMerchantLevelService(client);\\nvar response = service.RequestPaymentMethod(\\&quot;merchantId\\&quot;, paymentMethodSetupInfo);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v19.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentMethodSetupInfo = {\\n  type: \\&quot;visa\\&quot;,\\n  businessLineId: \\&quot;BL00000000000000000000001\\&quot;,\\n  storeIds: \\&quot;ST00000000000000000000001\\&quot;,\\n  currencies: [ \\&quot;EUR\\&quot; ],\\n  countries: [ \\&quot;NL\\&quot; ]\\n}\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.requestPaymentMethod(\\&quot;merchantId\\&quot;, paymentMethodSetupInfo);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v12.2.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\npaymentMethodSetupInfo := management.PaymentMethodSetupInfo{\\n  Countries: []string{\\n    \\&quot;NL\\&quot;,\\n  },\\n  Type: \\&quot;visa\\&quot;,\\n  BusinessLineId: common.PtrString(\\&quot;BL00000000000000000000001\\&quot;),\\n  Currencies: []string{\\n    \\&quot;EUR\\&quot;,\\n  },\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Management()\\nreq := service.PaymentMethodsMerchantLevelApi.RequestPaymentMethodInput(\\&quot;merchantId\\&quot;).PaymentMethodSetupInfo(paymentMethodSetupInfo)\\nres, httpRes, err := service.PaymentMethodsMerchantLevelApi.RequestPaymentMethod(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.7.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_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;visa\\&quot;,\\n  \\&quot;businessLineId\\&quot;: \\&quot;BL00000000000000000000001\\&quot;,\\n  \\&quot;storeIds\\&quot;: [\\&quot;ST00000000000000000000001\\&quot;],\\n  \\&quot;currencies\\&quot;: [ \\&quot;EUR\\&quot; ],\\n  \\&quot;countries\\&quot;: [ \\&quot;NL\\&quot; ]\\n}\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.request_payment_method(request=json_request, merchantId=\\&quot;merchantId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.7.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_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; 'visa',\\n  :businessLineId =&gt; 'BL00000000000000000000001',\\n  :storeIds =&gt; 'ST00000000000000000000001',\\n  :currencies =&gt; [ 'EUR' ],\\n  :countries =&gt; [ 'NL' ]\\n}\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.request_payment_method(request_body, 'merchantId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v19.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentMethodSetupInfo: Types.management.PaymentMethodSetupInfo = {\\n  countries: [\\&quot;NL\\&quot;],\\n  type: Types.management.PaymentMethodSetupInfo.TypeEnum.Visa,\\n  businessLineId: \\&quot;BL00000000000000000000001\\&quot;,\\n  currencies: [\\&quot;EUR\\&quot;]\\n};\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.requestPaymentMethod(\\&quot;merchantId\\&quot;, paymentMethodSetupInfo);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response contains the <code>id<\/code> of the requested payment method.<\/p>\n\n<div id=\"tabqWMOf\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Payment method added&quot;,&quot;content&quot;:&quot;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Visa payment method added&#039;\\&quot; :id=\\&quot;&#039;add-pm-response&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n    \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;PM00000000000000000000001\\\\\\&quot;,\\\\n    \\\\\\&quot;businessLineId\\\\\\&quot;: \\\\\\&quot;BL00000000000000000000001\\\\\\&quot;,\\\\n    \\\\\\&quot;storeIds\\\\\\&quot;: [\\\\\\&quot;ST00000000000000000000001\\\\\\&quot;],\\\\n    \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;visa\\\\\\&quot;,\\\\n    \\\\\\&quot;enabled\\\\\\&quot;: \\\\\\&quot;true\\\\\\&quot;,\\\\n    \\\\\\&quot;currencies\\\\\\&quot;: [\\\\n        \\\\\\&quot;EUR\\\\\\&quot;\\\\n    ],\\\\n    \\\\\\&quot;countries\\\\\\&quot;: [\\\\n        \\\\\\&quot;NL\\\\\\&quot;\\\\n    ],\\\\n    \\\\\\&quot;allowed\\\\\\&quot;: \\\\\\&quot;true\\\\\\&quot;,\\\\n    \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;payment_method_added_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Payment method pending&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;If the &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;receivePayments&lt;\\\/strong&gt;&lt;\\\/span&gt; capability of the account holder for whom you request the payment method is not &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;allowed&lt;\\\/strong&gt;&lt;\\\/span&gt;, then your user will not be able to use the payment method. This is the case if the &lt;code&gt;allowed&lt;\\\/code&gt; parameter is set to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;false&lt;\\\/strong&gt;&lt;\\\/span&gt; in the API response.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Visa payment method pending&#039;\\&quot; :id=\\&quot;&#039;payment-method-pending&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n    \\\\\\&quot;businessLineId\\\\\\&quot;: \\\\\\&quot;BL00000000000000000000001\\\\\\&quot;,\\\\n    \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;PM00000000000000000000001\\\\\\&quot;,\\\\n    \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;mc\\\\\\&quot;,\\\\n    \\\\\\&quot;enabled\\\\\\&quot;: \\\\\\&quot;true\\\\\\&quot;,\\\\n    \\\\\\&quot;currencies\\\\\\&quot;: [\\\\n        \\\\\\&quot;USD\\\\\\&quot;\\\\n    ],\\\\n    \\\\\\&quot;countries\\\\\\&quot;: [\\\\n        \\\\\\&quot;NL\\\\\\&quot;\\\\n    ],\\\\n    \\\\\\&quot;allowed\\\\\\&quot;: false,\\\\n    \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;pending\\\\\\&quot;,\\\\n    \\\\\\&quot;customRoutingFlags\\\\\\&quot;: [\\\\n        \\\\\\&quot;Test123456\\\\\\&quot;\\\\n    ]\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;p&gt;Listen to the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform-webhooks\\\/latest\\\/post\\\/balancePlatform.accountHolder.updated\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;balancePlatform.accountHolder.updated&lt;\\\/a&gt; webhook to get notified about the status of the &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;receivePayments&lt;\\\/strong&gt;&lt;\\\/span&gt; capability. When it is &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;enabled&lt;\\\/strong&gt;&lt;\\\/span&gt;, &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;allowed&lt;\\\/strong&gt;&lt;\\\/span&gt;, and &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;valid&lt;\\\/strong&gt;&lt;\\\/span&gt;, the requested payment method will be automatically available for the user. If the &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;receivePayments&lt;\\\/strong&gt;&lt;\\\/span&gt; capability does not reach any of these states within 60 days, the payment method activation request is automatically removed.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;payment_method_pending_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h3>Webhooks<\/h3>\n<p>Because adding a payment method to your user's store is an asynchronous process, we recommend that you subscribe to the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/ManagementNotification\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Management webhooks<\/a> in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>.<\/p>\n<p>After the payment method has been added to your store, Adyen sends a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/ManagementNotification\/latest\/post\/paymentMethod.created\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">paymentMethod.created<\/a> webhook.<\/p>\n<p>Here is an example of the webhook you receive after adding <strong>Visa<\/strong> to your payment methods:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Visa payment method created'\" :id=\"'payment-method-created'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"createdAt\\\": \\\"2023-05-24T14:59:11+01:00\\\",\\n  \\\"data\\\": {\\n    \\\"id\\\": \\\"PM00000000000000000000001\\\",\\n    \\\"merchantId\\\": \\\"MERCHANT_ACCOUNT\\\",\\n    \\\"result\\\": \\\"SUCCESS\\\",\\n    \\\"storeId\\\": \\\"ST00000000000000000000001\\\",\\n    \\\"type\\\": \\\"visa\\\"\\n  },\\n  \\\"environment\\\": \\\"test\\\",\\n  \\\"type\\\": \\\"paymentMethod.created\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Troubleshooting<\/h3>\n<p>By default, every payment method you request is enabled for your user. However, only verified account holders can use the configured payment methods. This means that the account holder must have the following parameters and values set for the <strong>receivePayments<\/strong> capability:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<th style=\"text-align: left;\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/get\/accountHolders\/(id)#responses-200-capabilities-verificationStatus\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">verificationStatus<\/a><\/td>\n<td style=\"text-align: left;\">The status of the verification checks for the capability.<\/td>\n<td style=\"text-align: left;\"><strong>valid<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/get\/accountHolders\/(id)#responses-200-capabilities-enabled\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">enabled<\/a><\/td>\n<td style=\"text-align: left;\">Indicates whether the capability is enabled.<\/td>\n<td style=\"text-align: left;\"><strong>true<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/get\/accountHolders\/(id)#responses-200-capabilities-allowed\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">allowed<\/a><\/td>\n<td style=\"text-align: left;\">Indicates whether the capability is allowed. Adyen sets this to <strong>true<\/strong> if the verification is successful and the account holder is permitted to use the capability.<\/td>\n<td style=\"text-align: left;\"><strong>true<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If you update you user's legal entity or account holder information after it has been verified, the payment methods may be disabled until the account holder is verified again.<\/p>\n<p>To check the status of your account holder's <strong>receivePayments<\/strong> capability, you can either send a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/get\/accountHolders\/(id)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/accountHolders\/{id}<\/a> request, or listen to the  <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> webhook.<\/p>\n\n<div id=\"tabY3mtD\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Configuration API&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;To check the status of your user&#039;s &lt;strong&gt;receivePayments&lt;\\\/strong&gt; capability, send a GET  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform\\\/latest\\\/get\\\/accountHolders\\\/(id)\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/accountHolders\\\/{id}&lt;\\\/a&gt; request, specifying the ID of the account holder in the path.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Account holder status&#039;\\&quot; :id=\\&quot;&#039;receivePayments-verificationStatus&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n  \\\\\\&quot;balancePlatform\\\\\\&quot;: \\\\\\&quot;YOUR_BALANCE_PLATFORM\\\\\\&quot;,\\\\n  \\\\\\&quot;description\\\\\\&quot;: \\\\\\&quot;Liable account holder used for international payments and payouts\\\\\\&quot;,\\\\n  \\\\\\&quot;legalEntityId\\\\\\&quot;: \\\\\\&quot;LE322JV223222D5GG42KN6869\\\\\\&quot;,\\\\n  \\\\\\&quot;reference\\\\\\&quot;: \\\\\\&quot;S.Eller-001\\\\\\&quot;,\\\\n  \\\\\\&quot;capabilities\\\\\\&quot;: {\\\\n    \\\\\\&quot;receivePayments\\\\\\&quot;: {\\\\n      \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n      \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n      \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n      \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n    },\\\\n    \\\\\\&quot;receiveFromBalanceAccount\\\\\\&quot;: {\\\\n      \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n      \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n      \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n      \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n    },\\\\n    \\\\\\&quot;sendToBalanceAccount\\\\\\&quot;: {\\\\n      \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n      \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n      \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n      \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n    },\\\\n    \\\\\\&quot;sendToTransferInstrument\\\\\\&quot;: {\\\\n      \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n      \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n      \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n      \\\\\\&quot;transferInstruments\\\\\\&quot;: [\\\\n        {\\\\n          \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n          \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n          \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n          \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;SE322KH223222F5GXZFNM3BGP\\\\\\&quot;,\\\\n          \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n        }\\\\n      ],\\\\n      \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n    }\\\\n  },\\\\n  \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;AH3227C223222C5GXQXF658WB\\\\\\&quot;,\\\\n  \\\\\\&quot;status\\\\\\&quot;: \\\\\\&quot;active\\\\\\&quot;\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;configuration_api_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Configuration webhook&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Adyen sends  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform-webhooks\\\/latest\\\/overview\\&quot; class=\\&quot; external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;Configuration webhooks&lt;\\\/a&gt; to notify you of changes in your account holder&#039;s verification status.&lt;\\\/p&gt;\\n&lt;p&gt;To check the status of your user&#039;s &lt;strong&gt;receivePayments&lt;\\\/strong&gt; capability, listen to the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/balanceplatform-webhooks\\\/latest\\\/post\\\/balancePlatform.accountHolder.updated\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;balancePlatform.accountHolder.updated&lt;\\\/a&gt; webhook.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Account holder updated&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n  \\\\\\&quot;data\\\\\\&quot;: {\\\\n    \\\\\\&quot;balancePlatform\\\\\\&quot;: \\\\\\&quot;YOUR_BALANCE_PLATFORM\\\\\\&quot;,\\\\n    \\\\\\&quot;accountHolder\\\\\\&quot;: {\\\\n      \\\\\\&quot;legalEntityId\\\\\\&quot;: \\\\\\&quot;LE322JV223222D5GG42KN6869\\\\\\&quot;,\\\\n      \\\\\\&quot;reference\\\\\\&quot;: \\\\\\&quot;S.Eller-001\\\\\\&quot;,\\\\n      \\\\\\&quot;capabilities\\\\\\&quot;: {\\\\n        \\\\\\&quot;receivePayments\\\\\\&quot;: {\\\\n            \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n            \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n            \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n            \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n        },\\\\n        \\\\\\&quot;sendToTransferInstrument\\\\\\&quot;: {\\\\n            \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n            \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n            \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n            \\\\\\&quot;transferInstruments\\\\\\&quot;: [\\\\n                {\\\\n                    \\\\\\&quot;enabled\\\\\\&quot;: true,\\\\n                    \\\\\\&quot;requested\\\\\\&quot;: true,\\\\n                    \\\\\\&quot;allowed\\\\\\&quot;: true,\\\\n                    \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;SE322KH223222F5GXZFNM3BGP\\\\\\&quot;,\\\\n                    \\\\\\&quot;verificationStatus\\\\\\&quot;: \\\\\\&quot;valid\\\\\\&quot;\\\\n                }\\\\n            ]\\\\n        }\\\\n      },\\\\n      \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;AH3227C223222C5GXQXF658WB\\\\\\&quot;,\\\\n      \\\\\\&quot;status\\\\\\&quot;: \\\\\\&quot;active\\\\\\&quot;\\\\n    }\\\\n  },\\\\n  \\\\\\&quot;environment\\\\\\&quot;: \\\\\\&quot;test\\\\\\&quot;,\\\\n  \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;balancePlatform.accountHolder.updated\\\\\\&quot;\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;configuration_webhook_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>Get a list of all payment methods<\/h2>\n<p>To get the details of all payment methods configured on your merchant account, make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/paymentMethodSettings\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/paymentMethodSettings<\/a> request with the ID of your merchant account in the path.<\/p>\n<p>You can filter the response using the following query parameters:<\/p>\n<ul>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/paymentMethodSettings#query-storeIds\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">storeIds<\/a>&#58; The unique identifier of the store for which to return the payment methods.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/paymentMethodSettings#query-businessLineId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">businessLineId<\/a>&#58; The unique identifier of the business line for which to return the payment methods.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Get a list of payment methods for a store'\" :id=\"'get-list-pms-platform'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/paymentMethodSettings \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X GET \\\\\\n-d businessLineId=BL00000000000000000000001 \\\\\\n-d storeId=ST00000000000000000000001&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v37.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Send the request\\nPaymentMethodsMerchantLevelApi service = new PaymentMethodsMerchantLevelApi(client);\\nPaymentMethodResponse response = service.getAllPaymentMethods(\\&quot;merchantId\\&quot;, \\&quot;String\\&quot;, \\&quot;String\\&quot;, 1, 1, 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 v27.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\PaymentMethodsMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n$requestOptions['queryParams'] = array('storeId' =&gt; 'string', 'businessLineId' =&gt; 'string', 'pageSize' =&gt; 'integer', 'pageNumber' =&gt; 'integer');\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentMethodsMerchantLevelApi($client);\\n$response = $service-&gt;getAllPaymentMethods('merchantId', $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v31.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentMethodsMerchantLevelService(client);\\nvar response = service.GetAllPaymentMethods(\\&quot;merchantId\\&quot;, storeId: \\&quot;string\\&quot;, businessLineId: \\&quot;string\\&quot;, pageSize: 1, pageNumber: 1);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v26.1.0\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.getAllPaymentMethods(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v20.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/management\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Send the request\\nservice := client.Management()\\nreq := service.PaymentMethodsMerchantLevelApi.GetAllPaymentMethodsInput(\\&quot;merchantId\\&quot;)\\nreq = req.StoreId(\\&quot;string\\&quot;).BusinessLineId(\\&quot;string\\&quot;).PageSize(1).PageNumber(1)\\nres, httpRes, err := service.PaymentMethodsMerchantLevelApi.GetAllPaymentMethods(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.4.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nquery_parameters = {\\n  \\&quot;storeId\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;businessLineId\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;pageSize\\&quot; : \\&quot;integer\\&quot;,\\n  \\&quot;pageNumber\\&quot; : \\&quot;integer\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.get_all_payment_methods(merchantId=\\&quot;merchantId\\&quot;, query_parameters=query_parameters)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nquery_params = {\\n  :storeId =&gt; 'string',\\n  :businessLineId =&gt; 'string',\\n  :pageSize =&gt; 'integer',\\n  :pageNumber =&gt; 'integer'\\n}\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.get_all_payment_methods('merchantId', query_params: query_params)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v26.1.0\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.getAllPaymentMethods(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<!--\n<div data-component-wrapper=\"code-sample\">\n    <code-sample\n        :title=\"'List of payment methods for a store'\"\n        :id=\"'pm-list-store'\"\n        :code-data=\"[{&quot;language&quot;:&quot;&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;&quot;}]\"\n        :enable-copy-link-to-code-block=\"true\"\n        :code-sample-card-size=\"'fullsize'\"\n    ><\/code-sample>\n<\/div>\n-->\n<h2>Get the details of a specific payment method<\/h2>\n<p>To get the details of a specific payment method, make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/paymentMethodSettings\/(paymentMethodId)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/paymentMethodSettings\/{paymentMethodId}<\/a> request with the ID of your merchant account and the payment method in the path.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Get the details of a payment method'\" :id=\"'get-a-pm'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/paymentMethodSettings\\\/{paymentMethodId} \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X GET \\\\\\n-d&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v37.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Send the request\\nPaymentMethodsMerchantLevelApi service = new PaymentMethodsMerchantLevelApi(client);\\nPaymentMethod response = service.getPaymentMethodDetails(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&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 v27.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\PaymentMethodsMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentMethodsMerchantLevelApi($client);\\n$response = $service-&gt;getPaymentMethodDetails('merchantId', 'paymentMethodId');&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v31.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentMethodsMerchantLevelService(client);\\nvar response = service.GetPaymentMethodDetails(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v26.1.0\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.getPaymentMethodDetails(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v20.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/management\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Send the request\\nservice := client.Management()\\nreq := service.PaymentMethodsMerchantLevelApi.GetPaymentMethodDetailsInput(\\&quot;merchantId\\&quot;,\\&quot;paymentMethodId\\&quot;)\\nres, httpRes, err := service.PaymentMethodsMerchantLevelApi.GetPaymentMethodDetails(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.4.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.get_payment_method_details(merchantId=\\&quot;merchantId\\&quot;, paymentMethodId=\\&quot;paymentMethodId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.get_payment_method_details('merchantId', 'paymentMethodId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v26.1.0\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.getPaymentMethodDetails(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"update-payment-method\">Update a payment method<\/h2>\n<p>To change the settings of a payment method, make a PATCH  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/merchants\/(merchantId)\/paymentMethodSettings\/(paymentMethodId)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/paymentMethodSettings\/{paymentMethodId}<\/a> request with the ID of your merchant account and the payment method in the path.<\/p>\n<p>In the body, you can specify the following parameters:<\/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\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#request-countries\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countries<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td>The list of countries to enable with the payment method. If sent empty, then all countries are supported by the payment method.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/paymentMethodSettings#request-currencies\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">currencies<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td>The list of currencies to enable with the payment method. If sent empty, then all currencies are supported by the payment method.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/merchants\/(merchantId)\/paymentMethodSettings\/(paymentMethodId)#request-enabled\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">enabled<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td>Indicates whether the payment method is enabled (<strong>true<\/strong>) or disabled (<strong>false<\/strong>).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"notices green\">\n<p><strong>Disabled<\/strong> payment methods are automatically deleted after <strong>90 days<\/strong>. Payment methods linked to a closed store are automatically disabled and deleted after 90 days.<\/p>\n<\/div>\n<p>Here's an example of requesting to update <strong>Visa<\/strong> payment method by adding support for cards issued in the <strong>United States<\/strong>:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Update payment method settings'\" :id=\"'update-pm'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/paymentMethodSettings\\\/{paymentMethodId} \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X PATCH \\\\\\n-d '{\\n    \\&quot;countries\\&quot;: [\\n        \\&quot;NL\\&quot;,\\n        \\&quot;US\\&quot;\\n    ],\\n    \\&quot;currencies\\&quot;: [\\n        \\&quot;EUR\\&quot;,\\n        \\&quot;USD\\&quot;\\n    ]\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v37.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nUpdatePaymentMethodInfo updatePaymentMethodInfo = new UpdatePaymentMethodInfo()\\n  .countries(Arrays.asList(\\&quot;NL\\&quot;, \\&quot;US\\&quot;))\\n  .currencies(Arrays.asList(\\&quot;EUR\\&quot;, \\&quot;USD\\&quot;));\\n\\n\\\/\\\/ Send the request\\nPaymentMethodsMerchantLevelApi service = new PaymentMethodsMerchantLevelApi(client);\\nPaymentMethod response = service.updatePaymentMethod(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;, updatePaymentMethodInfo, 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 v27.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Management\\\\UpdatePaymentMethodInfo;\\nuse Adyen\\\\Service\\\\Management\\\\PaymentMethodsMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$updatePaymentMethodInfo = new UpdatePaymentMethodInfo();\\n$updatePaymentMethodInfo\\n  -&gt;setCountries(array(\\&quot;NL\\&quot;, \\&quot;US\\&quot;))\\n  -&gt;setCurrencies(array(\\&quot;EUR\\&quot;, \\&quot;USD\\&quot;));\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentMethodsMerchantLevelApi($client);\\n$response = $service-&gt;updatePaymentMethod('merchantId', 'paymentMethodId', $updatePaymentMethodInfo);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v31.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nUpdatePaymentMethodInfo updatePaymentMethodInfo = new UpdatePaymentMethodInfo\\n{\\n  Countries = { \\&quot;NL\\&quot;, \\&quot;US\\&quot; },\\n  Currencies = { \\&quot;EUR\\&quot;, \\&quot;USD\\&quot; }\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentMethodsMerchantLevelService(client);\\nvar response = service.UpdatePaymentMethod(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;, updatePaymentMethodInfo);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v26.1.0\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst updatePaymentMethodInfo = {\\n  countries: [ \\&quot;NL\\&quot;, \\&quot;US\\&quot; ],\\n  currencies: [ \\&quot;EUR\\&quot;, \\&quot;USD\\&quot; ]\\n}\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.updatePaymentMethod(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;, updatePaymentMethodInfo);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v20.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v20\\\/src\\\/management\\&quot;\\n)\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\nupdatePaymentMethodInfo := management.UpdatePaymentMethodInfo{\\n  Countries: []string{\\n    \\&quot;NL\\&quot;, \\&quot;US\\&quot;,\\n  },\\n  Currencies: []string{\\n    \\&quot;EUR\\&quot;, \\&quot;USD\\&quot;,\\n  },\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Management()\\nreq := service.PaymentMethodsMerchantLevelApi.UpdatePaymentMethodInput(\\&quot;merchantId\\&quot;,\\&quot;paymentMethodId\\&quot;).UpdatePaymentMethodInfo(updatePaymentMethodInfo)\\nres, httpRes, err := service.PaymentMethodsMerchantLevelApi.UpdatePaymentMethod(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.4.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_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;countries\\&quot;: [ \\&quot;NL\\&quot;, \\&quot;US\\&quot; ],\\n  \\&quot;currencies\\&quot;: [ \\&quot;EUR\\&quot;, \\&quot;USD\\&quot; ]\\n}\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.update_payment_method(request=json_request, merchantId=\\&quot;merchantId\\&quot;, paymentMethodId=\\&quot;paymentMethodId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :countries =&gt; [ 'NL', 'US' ],\\n  :currencies =&gt; [ 'EUR', 'USD' ]\\n}\\n\\n# Send the request\\nresult = adyen.management.payment_methods_merchant_level_api.update_payment_method(request_body, 'merchantId', 'paymentMethodId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v26.1.0\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst updatePaymentMethodInfo: Types.management.UpdatePaymentMethodInfo = {\\n  countries: [\\&quot;NL\\&quot;, \\&quot;US\\&quot;],\\n  currencies: [\\&quot;EUR\\&quot;, \\&quot;USD\\&quot;]\\n};\\n\\n\\\/\\\/ Send the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.PaymentMethodsMerchantLevelApi.updatePaymentMethod(\\&quot;merchantId\\&quot;, \\&quot;paymentMethodId\\&quot;, updatePaymentMethodInfo);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response contains the <code>id<\/code> of the payment method and the updated list of payment method settings.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Response'\" :id=\"'update-pm-response'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"id\\\": \\\"PM00000000000000000000001\\\",\\n    \\\"type\\\": \\\"visa\\\",\\n    \\\"enabled\\\": true,\\n    \\\"countries\\\": [\\n        \\\"NL\\\",\\n        \\\"US\\\"\\n    ],\\n    \\\"currencies\\\": [\\n        \\\"EUR\\\",\\n        \\\"USD\\\"\\n    ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/platforms\/payment-methods#supported-payment-methods\"\n                        target=\"_self\"\n                        >\n                    Supported payment methods\n                <\/a><\/li><li><a href=\"\/platforms\/payment-methods\/customer-area\"\n                        target=\"_self\"\n                        >\n                    Manage payment methods in your Customer Area\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/platforms\/payment-methods\/api","articleFields":{"description":"Request and manage payment methods using the Management API.","_expandable":null,"operations":"","feedback_component":true,"parameters":{"model":"platform","directoryPath":"\/platforms"},"page_id":"346b1d2c-e686-4c9c-a25f-d5881b2c6377","filters_component":false,"decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/platforms\/payment-methods\/api","title":"Manage payment methods with API","content":"During the onboarding process, you already added payment methods to your users' stores. After we enable a payment method, your users can start accepting all of the payment method's variants by default. For example, if you configure visa, they can accept all of its variants, including visadebit, visapremiumcredit, visasignature and so on.\nThis page explains how you can:\n\nRequest additional payment methods.\nView all payment methods configured for your merchant account or store.\nView the details of a specific payment method.\nUpdate the country\/region and currency of a payment method.\nEnable or disable a payment method for your user.\n\nRequirements\nBefore you begin, take into account the following requirements, limitations, and preparations.\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nYou must have an online or in-person payments integration with Adyen.\n\n\nAPI credential roles\nYour  Management API credential must have the following role:Management API\u2014Payment methods read and write\n\n\n\nWebhooks\nSubscribe to the following webhooks: Payment method webhook\n\n\n\nLimitations\nYou can only configure payment methods that are supported for your currency and integration.It may take some time for the payment method to become available due to external factors. Payment methods typically appear within a day. To avoid delays, we recommend requesting payment methods at least one day before the business opens.\n\n\n\nSetup steps\nBefore requesting a payment method, make sure that you already configured both your user's store and business lines.\n\n\n\n\nRequest payment methods\nTo request a payment method for your user's store, make a POST  \/merchants\/{merchantId}\/paymentMethodSettings request with your merchant account ID in the path.\nIn the body, specify the following parameters:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n type\n\nThe payment method variant. Some payment methods require additional configuration or parameters. For details, see the Supported payment methods.\n\n\n storeIds\n\nThe id of your user's store. For the list of stores in your merchant account, make a GET  \/merchants\/{merchantId}\/stores request.\n\n\n businessLineId\n\nThe unique identifier of your user's business line for which you want to request a payment method.\n\n\n countries\n\nThe list of countries to enable with the payment method. To enable all countries supported by the payment method, set to ANY or send empty.\n\n\n currencies\n\nThe list of currencies to enable with the payment method. To enable all currencies supported by the payment method, set to ANY or send empty.\n\n\n\nHere is an example of a request to accept Visa payments from cards issued in the Netherlands:\n\n    \n\nThe response contains the id of the requested payment method.\n\n\n    \n        \n        \n    \n\n\nWebhooks\nBecause adding a payment method to your user's store is an asynchronous process, we recommend that you subscribe to the  Management webhooks in your Customer Area.\nAfter the payment method has been added to your store, Adyen sends a  paymentMethod.created webhook.\nHere is an example of the webhook you receive after adding Visa to your payment methods:\n\n    \n\nTroubleshooting\nBy default, every payment method you request is enabled for your user. However, only verified account holders can use the configured payment methods. This means that the account holder must have the following parameters and values set for the receivePayments capability:\n\n\n\nParameter\nDescription\nValue\n\n\n\n\n verificationStatus\nThe status of the verification checks for the capability.\nvalid\n\n\n enabled\nIndicates whether the capability is enabled.\ntrue\n\n\n allowed\nIndicates whether the capability is allowed. Adyen sets this to true if the verification is successful and the account holder is permitted to use the capability.\ntrue\n\n\n\nIf you update you user's legal entity or account holder information after it has been verified, the payment methods may be disabled until the account holder is verified again.\nTo check the status of your account holder's receivePayments capability, you can either send a GET  \/accountHolders\/{id} request, or listen to the  balancePlatform.accountHolder.updated webhook.\n\n\n    \n        \n        \n    \n\n\nGet a list of all payment methods\nTo get the details of all payment methods configured on your merchant account, make a GET  \/merchants\/{merchantId}\/paymentMethodSettings request with the ID of your merchant account in the path.\nYou can filter the response using the following query parameters:\n\n storeIds&#58; The unique identifier of the store for which to return the payment methods.\n businessLineId&#58; The unique identifier of the business line for which to return the payment methods.\n\n\n    \n\n\nGet the details of a specific payment method\nTo get the details of a specific payment method, make a GET  \/merchants\/{merchantId}\/paymentMethodSettings\/{paymentMethodId} request with the ID of your merchant account and the payment method in the path.\n\n    \n\nUpdate a payment method\nTo change the settings of a payment method, make a PATCH  \/merchants\/{merchantId}\/paymentMethodSettings\/{paymentMethodId} request with the ID of your merchant account and the payment method in the path.\nIn the body, you can specify the following parameters:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n countries\n\nThe list of countries to enable with the payment method. If sent empty, then all countries are supported by the payment method.\n\n\n currencies\n\nThe list of currencies to enable with the payment method. If sent empty, then all currencies are supported by the payment method.\n\n\n enabled\n\nIndicates whether the payment method is enabled (true) or disabled (false).\n\n\n\n\nDisabled payment methods are automatically deleted after 90 days. Payment methods linked to a closed store are automatically disabled and deleted after 90 days.\n\nHere's an example of requesting to update Visa payment method by adding support for cards issued in the United States:\n\n    \n\nThe response contains the id of the payment method and the updated list of payment method settings.\n\n    \n\nSee also\n\n\n                    Supported payment methods\n                \n                    Manage payment methods in your Customer Area\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Platforms","lvl2":"Payment methods","lvl3":"Manage payment methods with API"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/platforms","lvl2":"https:\/\/docs.adyen.com\/pt\/platforms\/payment-methods","lvl3":"\/pt\/platforms\/payment-methods\/api"},"levels":4,"category":"Platforms","category_color":"green","tags":["Manage","payment","methods"]},"articleFiles":{"add-pm-to-store.js":"<p alt=\"\">add-pm-to-store.js<\/p>"}}
