{"title":"Fix the cost of goods in the settlement currency","category":"default","creationDate":1676035020,"content":"<p><span style=\"color: #0ABF53;\"><span style=\"font-size: 20px;\"><strong>Limited availability<\/strong><\/span><\/span><br \/>\nCurrency conversion in currently in pilot phase. Some of the processes and documentation may change as the feature evolves. If you are interested in piloting currency conversion or have any feedback, reach out to your Adyen contact.<\/p>\n<hr \/>\n<p>When you fix the cost of the goods in the settlement currency, your user always receives the same, fixed amount in their currency of choice (the settlement currency). The amount the customer pays in the processing currency is not fixed and depends on the prevailing exchange rate and Adyen's conversion markup.<\/p>\n<h2>Requirements<\/h2>\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 <a href=\"\/pt\/online-payments\/build-your-integration\">online payments integration and a checkout UI<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/api-credentials\">API credentials<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">You must have credentials for the following APIs:<ul><li markdown=\"1\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Checkout API<\/a> (format: <strong>ws@Company.[YourCompanyAccount]<\/strong>)<\/li><li markdown=\"1\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/foreignexchange\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Foreign Exchange API<\/a> (format: <strong>ws@BalancePlatform.[YourBalancePlatform]<\/strong>). Only if you are <a href=\"\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency\/?tab=rates-api-settlement_1\">using the <code>rates\/calculate<\/code> endpoint<\/a>.<\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>API credential roles<\/strong><\/td>\n<td style=\"text-align: left;\">To use the <a href=\"\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency\/?tab=rates-api-settlement_1\">Foreign Exchange API<\/a>, make sure you have the following role:<ul><li markdown=\"1\"><strong>Read FX rates role<\/strong><\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/account\/user-roles\">Customer Area roles<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">To use the <a href=\"\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency\/?tab=exchange-rate-report-settlement_2\">Exchange Rate Report<\/a>, make sure that you have at least one of the following roles<ul><li markdown=\"1\"><strong>Merchant report<\/strong><\/li> <li markdown=\"1\"><strong>Merchant financial<\/strong><\/li><li markdown=\"1\"><strong>Merchant admin<\/strong><\/li><\/ul><\/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;\">Ensure that your server can receive and accept <a href=\"\/pt\/development-resources\/webhooks\">standard webhooks<\/a>.<br>Subscribe to any of the following webhooks: <ul><li markdown=\"1\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfer-webhooks\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Transfer webhooks<\/a><\/li><li markdown=\"1\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transaction-webhooks\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Transaction webhooks<\/a><\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/marketplaces\/verification-overview\/capabilities\">Capabilities<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that your account holders have the following capabilities:<ul><li markdown=\"1\"><strong>receivePayments<\/strong><\/li><li markdown=\"1\"><strong>receiveFromPlatformPayments<\/strong><\/li><li markdown=\"1\"><strong>sendToTransferInstrument<\/strong><\/li><\/ul><\/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: <ul><li markdown=\"1\">Ask our <a href=\"https:\/\/ca-test.adyen.com\/ca\/ca\/contactUs\/support.shtml?form=other\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Support Team<\/a> to:<ul><li markdown=\"1\">Enable the use of the Foreign Exchange API for your merchant account (only if you are <a href=\"\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency\/?tab=rates-api-settlement_1\">using the <code>rates\/calculate<\/code> endpoint<\/a>).<\/li><li markdown=\"1\">Configure the required currencies for your merchant account.<\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How it works<\/h2>\n<p>If the cost of the goods in the settlement currency (the currency your user receives) is fixed:<\/p>\n<ol>\n<li><a href=\"#calculate-the-amount-in-the-processing-currency\">You calculate the amount the customer must pay in the processing currency, using either the Foreign Exchange API or the Exchange Rate Report<\/a>.<\/li>\n<li><a href=\"#send-a-payment-request-with-the-calculated-amount\">You make a POST <code>\/payments<\/code> request, specifying the cost of the goods in both currencies<\/a>.<\/li>\n<li>When Adyen receives the request, we debit the customer and credit your user in their respective currencies.<\/li>\n<\/ol>\n<h2>Calculate the amount in the processing currency<\/h2>\n<p>To calculate the exact amount the customer must pay in their currency of choice (the processing currency), you have two options:<\/p>\n<ul>\n<li>Make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/foreignexchange\/latest\/post\/rates\/calculate\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/rates\/calculate<\/a> request using the Foreign Exchange API to get the exact payment amount in the processing currency.<\/li>\n<li>Use our Exchange Rate Report to manually calculate the exact payment amount in the processing currency.<\/li>\n<\/ul>\n\n<div id=\"tabwZ2UT\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Foreign Exchange API&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Contact our &lt;a href=\\&quot;https:\\\/\\\/ca-test.adyen.com\\\/ca\\\/ca\\\/contactUs\\\/support.shtml?form=other\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Support Team&lt;\\\/a&gt; to:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;Enable the use of the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/overview\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;Foreign Exchange API&lt;\\\/a&gt; for your merchant account.&lt;\\\/li&gt;\\n&lt;li&gt;Configure the required currencies for your merchant account.&lt;br&gt;&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Make sure that you have the API key for the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/overview\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;Foreign Exchange API&lt;\\\/a&gt;. Your credential has the format &lt;strong&gt;ws@BalancePlatform.[YourBalancePlatform]&lt;\\\/strong&gt;.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Make a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/rates\\\/calculate&lt;\\\/a&gt; request with an  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;exchangeCalculations&lt;\\\/a&gt; array. Each item in the array defines a currency and value for which you want to perform a calculation. In each item of the array, specify:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Parameter&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: center;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-type\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;type&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Set to &lt;strong&gt;splitPayment&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-sourceAmount-currency\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;sourceAmount.currency&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The settlement currency.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-sourceAmount-value\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;sourceAmount.value&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The cost of the goods in the settlement currency, in minor units.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-targetCurrency\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;targetCurrency&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The processing currency.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-exchangeSide\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;exchangeSide&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;span class=\\&quot;hint--bottom\\&quot; data-hint=\\&quot;Required\\&quot; markdown=\\&quot;1\\&quot;&gt;&lt;img style=\\&quot;width: 25px;\\&quot; alt=\\&quot;Required\\&quot; src=\\&quot;\\\/user\\\/pages\\\/reuse\\\/image-library\\\/01.icons\\\/required\\\/required.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/span&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The operation performed on the fixed currency (the currency provided in the &lt;code&gt;sourceAmount.currency&lt;\\\/code&gt; field. Set this to &lt;strong&gt;buy&lt;\\\/strong&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;In the response, note the following fields:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Parameter&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-type\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;type&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Returns &lt;strong&gt;splitPayment&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-exchangeSide\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;exchangeSide&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The operation performed on the fixed currency (the currency provided in the &lt;code&gt;sourceAmount.currency&lt;\\\/code&gt; field). Returns &lt;strong&gt;buy&lt;\\\/strong&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-sourceAmount-currency\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;sourceAmount.currency&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The settlement currency.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#request-exchangeCalculations-sourceAmount-value\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;sourceAmount.value&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The cost of the goods in the settlement currency, in minor units.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#responses-200-exchangeCalculations-targetAmount-currency\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;targetAmount.currency&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The processing currency.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#responses-200-exchangeCalculations-targetAmount-value\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;targetAmount.value&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The cost of the goods in the processing currency, in minor units. This is the amount the customer must pay.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#responses-200-exchangeCalculations-appliedExchangeRate\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;appliedExchangeRate&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The exchange rate to convert the settlement currency to the processing currency that includes Adyen&#039;s Markup.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;div class=\\&quot;accordion-shortcode adl-accordion adl-accordion--max-height-transition\\&quot; data-expand=\\&quot;true\\&quot; data-ignore=\\&quot;anchorjs-link\\&quot;&gt;\\n    \\n    &lt;div class=\\&quot;adl-accordion__item\\&quot; style=\\&quot;\\&quot;&gt;\\n        &lt;div tabindex=\\&quot;0\\&quot; role=\\&quot;item\\&quot; aria-expanded=\\&quot;false\\&quot; class=\\&quot;adl-accordion__header\\&quot;&gt;\\n            &lt;i class=\\&quot;adl-accordion__toggle adl-icon-chevron-down\\&quot;&gt;&lt;\\\/i&gt;\\n            &lt;div class=\\&quot;adl-accordion__title-wrapper\\&quot; data-accordion=\\&quot;#example-request\\&quot;&gt;\\n                                    &lt;h4 class=\\&quot;adl-accordion__title\\&quot;&gt;Example request&lt;\\\/h4&gt;\\n                            &lt;\\\/div&gt;\\n        &lt;\\\/div&gt;\\n        &lt;div role=\\&quot;region\\&quot; class=\\&quot;adl-accordion__content\\&quot;&gt;\\n            \\n&lt;p&gt;For example, your user sells goods worth CZK 1000.00 to a customer who pays in PLN. Here:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;The processing currency is PLN and the settlement currency is CZK.&lt;\\\/li&gt;\\n&lt;li&gt;The cost of the goods is fixed in CZK (the settlement currency).&lt;\\\/li&gt;\\n&lt;li&gt;You must calculate the cost of the goods in PLN (the processing currency). This is the amount the customer must pay.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;Here is a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/rates\\\/calculate&lt;\\\/a&gt; request to calculate the amount the customer must pay, when the cost of the goods is fixed at CZK 1000.00 (the settlement currency).&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Calculate the cost of goods in the processing currency&#039;\\&quot; :id=\\&quot;&#039;calculate-processing-currency-cost&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/balanceplatform-api-live.adyen.com\\\\\\\/fx\\\\\\\/api\\\\\\\/v1\\\\\\\/rates\\\\\\\/calculate \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-X POST \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;exchangeCalculations\\\\&amp;quot;: [\\\\n        {\\\\n            \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;splitPayment\\\\&amp;quot;,\\\\n            \\\\&amp;quot;sourceAmount\\\\&amp;quot;: {\\\\n               \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;CZK\\\\&amp;quot;\\\\n               \\\\&amp;quot;value\\\\&amp;quot;: 100000\\\\n            },\\\\n            \\\\&amp;quot;targetCurrency\\\\&amp;quot;: \\\\&amp;quot;PLN\\\\&amp;quot;,\\\\n            \\\\&amp;quot;exchangeSide\\\\&amp;quot;: \\\\&amp;quot;buy\\\\&amp;quot;\\\\n        }\\\\n    ]\\\\n}&#039;&amp;quot;}]\\&quot; :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;You receive the following response:&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Response&#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;exchangeCalculations\\\\\\&quot;: [\\\\n      {\\\\n         \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;splitPayment\\\\\\&quot;,\\\\n         \\\\\\&quot;exchangeSide\\\\\\&quot;: \\\\\\&quot;sell\\\\\\&quot;,\\\\n         \\\\\\&quot;sourceAmount\\\\\\&quot;: {\\\\n            \\\\\\&quot;currency\\\\\\&quot;: \\\\\\&quot;CZK\\\\\\&quot;,\\\\n            \\\\\\&quot;value\\\\\\&quot;: 100000\\\\n         },\\\\n         \\\\\\&quot;targetAmount\\\\\\&quot;: {\\\\n            \\\\\\&quot;currency\\\\\\&quot;: \\\\\\&quot;PLN\\\\\\&quot;,\\\\n            \\\\\\&quot;value\\\\\\&quot;: \\\\\\&quot;20174\\\\\\&quot;\\\\n         },\\\\n         \\\\\\&quot;appliedExchangeRate\\\\\\&quot;: \\\\\\&quot;0.20174\\\\\\&quot;\\\\n      }\\\\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;The  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/foreignexchange\\\/latest\\\/post\\\/rates\\\/calculate#responses-200-exchangeCalculations-targetAmount-value\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;targetAmount.value&lt;\\\/a&gt; field returns the amount the customer must pay in PLN for your user to receive exactly CZK 1000.00. Here, the customer must pay PLN 201.74 in order for your user to receive CZK 1000.00.&lt;\\\/p&gt;\\n\\n        &lt;\\\/div&gt;\\n    &lt;\\\/div&gt;\\n&lt;\\\/div&gt;\\n\\n&quot;,&quot;altTitle&quot;:&quot;rates-api-settlement&quot;,&quot;oldTabId&quot;:&quot;rates-api-settlement_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Exchange Rate Report&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Make sure that you have at least one of the following &lt;a href=\\&quot;\\\/pt\\\/account\\\/user-roles\\&quot;&gt;user roles&lt;\\\/a&gt;:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;Merchant report&lt;\\\/li&gt;\\n&lt;li&gt;Merchant financial&lt;\\\/li&gt;\\n&lt;li&gt;Merchant admin&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Configure an additional column for the settlement exchange rate in the Exchange Rate Report:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Log in to your &lt;a href=\\&quot;https:\\\/\\\/ca-live.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;, and go to &lt;strong&gt;Settings &amp;gt; Report columns&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Find the &lt;strong&gt;Exchange Rate Report&lt;\\\/strong&gt; and select &lt;strong&gt;Configure&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Add the column &lt;strong&gt;Exchange rate (platform Settlement)&lt;\\\/strong&gt;, then select &lt;strong&gt;Save configuration&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Get the exchange rates for the day from the Exchange Rate Report. To do this:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;Log in to your &lt;a href=\\&quot;https:\\\/\\\/ca-live.adyen.com\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Customer Area&lt;\\\/a&gt;, and go to &lt;strong&gt;Reports &amp;gt; Exchange rate&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Select &lt;strong&gt;Manage report&lt;\\\/strong&gt; to generate the Exchange Rate Report for the day, or to enable automatic generation. Once generated, download the report.&lt;\\\/li&gt;\\n&lt;li&gt;In the report, under the column &lt;strong&gt;Exchange rate (platform Settlement)&lt;\\\/strong&gt;, find the rate to convert the settlement currency to the processing currency.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;p&gt;The rates found in this report already include the conversion markup, which does not need to be added separately.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Use the following formula to calculate the cost of the goods in the processing currency, which is the amount the customer must pay:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;The cost of goods in the processing currency =&lt;br \\\/&gt;\\nThe cost of goods in the settlement currency \\u00d7 The exchange rate to convert the settlement currency to the processing currency&lt;br \\\/&gt;\\n&lt;br&gt;&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;div class=\\&quot;accordion-shortcode adl-accordion adl-accordion--max-height-transition\\&quot; data-expand=\\&quot;true\\&quot; data-ignore=\\&quot;anchorjs-link\\&quot;&gt;\\n    \\n    &lt;div class=\\&quot;adl-accordion__item\\&quot; style=\\&quot;\\&quot;&gt;\\n        &lt;div tabindex=\\&quot;0\\&quot; role=\\&quot;item\\&quot; aria-expanded=\\&quot;false\\&quot; class=\\&quot;adl-accordion__header\\&quot;&gt;\\n            &lt;i class=\\&quot;adl-accordion__toggle adl-icon-chevron-down\\&quot;&gt;&lt;\\\/i&gt;\\n            &lt;div class=\\&quot;adl-accordion__title-wrapper\\&quot; data-accordion=\\&quot;#example-calculation\\&quot;&gt;\\n                                    &lt;h4 class=\\&quot;adl-accordion__title\\&quot;&gt;Example calculation&lt;\\\/h4&gt;\\n                            &lt;\\\/div&gt;\\n        &lt;\\\/div&gt;\\n        &lt;div role=\\&quot;region\\&quot; class=\\&quot;adl-accordion__content\\&quot;&gt;\\n            \\n&lt;p&gt;For example, your user sells goods worth CZK 1000.00 to a customer who pays in PLN. Here:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;The processing currency is PLN and the settlement currency is CZK.&lt;\\\/li&gt;\\n&lt;li&gt;The cost of the goods is fixed in CZK (the settlement currency).&lt;\\\/li&gt;\\n&lt;li&gt;You must calculate the cost of the goods in PLN (the processing currency). This is the amount the customer must pay.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;To calculate the cost of the goods in the processing currency, use the prevailing exchange rate found in the Exchange Rate Report.&lt;\\\/p&gt;\\n&lt;p&gt;In this example, the cost of the goods in the settlement currency is CZK 1000.00. According to the Exchange Rate Report, these are exchange rates for the day:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Base Currency&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Target Currency&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Exchange rate (platform Settlement)&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;CZK&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;PLN&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;0.20174&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;PLN&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;CZK&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;5.07655&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;Based on this table:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;The exchange rate to convert CZK to PLN is 0.20174&lt;\\\/li&gt;\\n&lt;li&gt;The exchange rate to convert PLN to CZK is 5.07655&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;div class=\\&quot;notices yellow\\&quot;&gt;\\n&lt;p&gt;Because these exchange rates include a conversion markup, they cannot be used interchangeably. For example:&lt;br&gt;&lt;code&gt;(PLN to CZK exchange rate)  \\u2260  1 \\u00f7 (CZK to PLN exchange rate)&lt;\\\/code&gt;&lt;\\\/p&gt;\\n&lt;\\\/div&gt;\\n&lt;p&gt;For your user to receive exactly exactly CZK 1000.00, use the following formula to calculate the amount the customer needs to pay in PLN so that your user receives exactly CZK 1000.00:&lt;\\\/p&gt;\\n&lt;p&gt;&lt;code&gt;(Cost of goods in CZK) \\u00d7 (Exchange rate to convert CZK to PLN) = (Cost of goods in PLN)&lt;\\\/code&gt;&lt;\\\/p&gt;\\n&lt;p&gt;In our example:&lt;br \\\/&gt;\\nCZK 1000.00 \\u00d7 0.20174 = PLN 201.74&lt;\\\/p&gt;\\n&lt;p&gt;The customer must pay PLN 201.74 in order for your user to receive CZK 1000.00.&lt;\\\/p&gt;\\n\\n        &lt;\\\/div&gt;\\n    &lt;\\\/div&gt;\\n&lt;\\\/div&gt;\\n\\n&lt;p&gt;&lt;br&gt;&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;exchange-rate-report-settlement&quot;,&quot;oldTabId&quot;:&quot;exchange-rate-report-settlement_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>Send a payment request with the calculated amount<\/h2>\n<ol>\n<li>\n<p>Make sure that you have the API key for the Checkout API. Your credential has the format <strong>ws@Company.[YourCompanyAccount]<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Send a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a>,  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/sessions\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/sessions<\/a>, or  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/captures\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/captures<\/a> request, specifying the following fields for the currency conversion:<\/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<th style=\"text-align: left;\">Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code>amount.value<\/code><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The cost of the goods in the processing currency, calculated in <a href=\"#1-calculate-the-amount-in-the-processing-currency\">step 1<\/a>.<\/td>\n<td style=\"text-align: left;\"><strong>amount.value: 20174<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>amount.currency<\/code><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The currency in which the customer pays.<\/td>\n<td style=\"text-align: left;\"><strong>amount.currency: \"PLN\"<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>splits.amount.value<\/code><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The cost of the goods in the settlement currency. In case of multiple splits, the sum of the split amounts in the splits array must equal the cost of the goods in the settlement currency. Any mismatch is booked to the balance account you specify in the split item with type <strong>Remainder<\/strong>.<\/td>\n<td style=\"text-align: left;\"><strong>splits.amount.value: 100000<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>splits.amount.currency<\/code><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The settlement currency.<br>This is the currency in which your user receives the funds.<\/td>\n<td style=\"text-align: left;\"><strong>splits.amount.currency: \"CZK\"<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>splits.type<\/code><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The type of the split item. We recommend to always add a split item for the <strong>Remainder<\/strong> and the <a href=\"\/pt\/marketplaces\/transaction-fees\">transaction fees<\/a>.<\/td>\n<td style=\"text-align: left;\"><strong>split.type: BalanceAccount<\/strong><br><strong>split.type: PaymentFee<\/strong><br><strong>split.type: Remainder<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Payment request with currency conversion'\" :id=\"'convert-currency-payment'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/payments \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;paymentMethod\\&quot;: {\\n        \\&quot;type\\&quot;: \\&quot;scheme\\&quot;,\\n        \\&quot;number\\&quot;: \\&quot;4111111111111111\\&quot;,\\n        \\&quot;cvc\\&quot;: \\&quot;737\\&quot;,\\n        \\&quot;expiryMonth\\&quot;: \\&quot;03\\&quot;,\\n        \\&quot;expiryYear\\&quot;: \\&quot;2030\\&quot;,\\n        \\&quot;holderName\\&quot;: \\&quot;John Doe\\&quot;\\n    },\\n    \\&quot;billingAddress\\&quot;: {\\n        \\&quot;city\\&quot;:\\&quot;London\\&quot;,\\n        \\&quot;country\\&quot;:\\&quot;GB\\&quot;,\\n        \\&quot;houseNumberOrName\\&quot;:\\&quot;10\\&quot;,\\n        \\&quot;postalCode\\&quot;:\\&quot;SW1A 2AA\\&quot;,\\n        \\&quot;street\\&quot;:\\&quot;Downing Street\\&quot;\\n    },\\n    \\&quot;amount\\&quot;: {\\n        \\&quot;value\\&quot;: 20174,\\n        \\&quot;currency\\&quot;: \\&quot;PLN\\&quot;\\n    },\\n    \\&quot;reference\\&quot;: \\&quot;YOUR_PAYMENT_REFERENCE\\&quot;,\\n    \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n    \\&quot;splits\\&quot;: [\\n        {\\n            \\&quot;type\\&quot;: \\&quot;BalanceAccount\\&quot;,\\n            \\&quot;account\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n            \\&quot;amount\\&quot;: {\\n                \\&quot;currency\\&quot;: \\&quot;CZK\\&quot;,\\n                \\&quot;value\\&quot;: 100000\\n            },\\n            \\&quot;reference\\&quot;: \\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;,\\n            \\&quot;description\\&quot;: \\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;\\n        },\\n        {\\n            \\&quot;type\\&quot;: \\&quot;Remainder\\&quot;,\\n            \\&quot;account\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n            \\&quot;reference\\&quot;: \\&quot;YOUR_REMAINDER_REFERENCE\\&quot;,\\n            \\&quot;description\\&quot;: \\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;\\n        },\\n        {\\n            \\&quot;type\\&quot;: \\&quot;PaymentFee\\&quot;,\\n            \\&quot;account\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n            \\&quot;reference\\&quot;: \\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;,\\n            \\&quot;description\\&quot;: \\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;\\n        }\\n    ]\\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.checkout.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.model.RequestOptions;\\nimport com.adyen.service.checkout.*;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nSplitAmount splitAmount1 = new SplitAmount()\\n  .currency(\\&quot;CZK\\&quot;)\\n  .value(100000L);\\n\\nAmount amount = new Amount()\\n  .currency(\\&quot;PLN\\&quot;)\\n  .value(20174L);\\n\\nSplit split1 = new Split()\\n  .reference(\\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;)\\n  .amount(splitAmount1)\\n  .description(\\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;)\\n  .type(Split.TypeEnum.BALANCEACCOUNT)\\n  .account(\\&quot;BA00000000000000000000001\\&quot;);\\n\\nSplit split2 = new Split()\\n  .reference(\\&quot;YOUR_REMAINDER_REFERENCE\\&quot;)\\n  .description(\\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;)\\n  .type(Split.TypeEnum.REMAINDER)\\n  .account(\\&quot;BA00000000000000000000001\\&quot;);\\n\\nSplit split3 = new Split()\\n  .reference(\\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;)\\n  .description(\\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;)\\n  .type(Split.TypeEnum.PAYMENTFEE)\\n  .account(\\&quot;BA00000000000000000000001\\&quot;);\\n\\nCardDetails cardDetails = new CardDetails()\\n  .number(\\&quot;4111111111111111\\&quot;)\\n  .cvc(\\&quot;737\\&quot;)\\n  .holderName(\\&quot;John Doe\\&quot;)\\n  .expiryMonth(\\&quot;03\\&quot;)\\n  .expiryYear(\\&quot;2030\\&quot;)\\n  .type(CardDetails.TypeEnum.SCHEME);\\n\\nBillingAddress billingAddress = new BillingAddress()\\n  .country(\\&quot;GB\\&quot;)\\n  .city(\\&quot;London\\&quot;)\\n  .houseNumberOrName(\\&quot;10\\&quot;)\\n  .street(\\&quot;Downing Street\\&quot;)\\n  .postalCode(\\&quot;SW1A 2AA\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .reference(\\&quot;YOUR_PAYMENT_REFERENCE\\&quot;)\\n  .amount(amount)\\n  .splits(Arrays.asList(split1, split2, split3))\\n  .merchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  .paymentMethod(new CheckoutPaymentMethod(cardDetails))\\n  .billingAddress(billingAddress);\\n\\n\\\/\\\/ Send the request\\nPaymentsApi service = new PaymentsApi(client);\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\&quot;UUID\\&quot;));&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\\\\Checkout\\\\Amount;\\nuse Adyen\\\\Model\\\\Checkout\\\\Split;\\nuse Adyen\\\\Model\\\\Checkout\\\\CheckoutPaymentMethod;\\nuse Adyen\\\\Model\\\\Checkout\\\\BillingAddress;\\nuse Adyen\\\\Model\\\\Checkout\\\\SplitAmount;\\nuse Adyen\\\\Model\\\\Checkout\\\\PaymentRequest;\\nuse Adyen\\\\Service\\\\Checkout\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$splitAmount1 = new SplitAmount();\\n$splitAmount1\\n  -&gt;setCurrency(\\&quot;CZK\\&quot;)\\n  -&gt;setValue(100000);\\n\\n$amount = new Amount();\\n$amount\\n  -&gt;setCurrency(\\&quot;PLN\\&quot;)\\n  -&gt;setValue(20174);\\n\\n$split1 = new Split();\\n$split1\\n  -&gt;setReference(\\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;)\\n  -&gt;setAmount($splitAmount1)\\n  -&gt;setDescription(\\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;)\\n  -&gt;setType(\\&quot;BalanceAccount\\&quot;)\\n  -&gt;setAccount(\\&quot;BA00000000000000000000001\\&quot;);\\n\\n$split2 = new Split();\\n$split2\\n  -&gt;setReference(\\&quot;YOUR_REMAINDER_REFERENCE\\&quot;)\\n  -&gt;setDescription(\\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;)\\n  -&gt;setType(\\&quot;Remainder\\&quot;)\\n  -&gt;setAccount(\\&quot;BA00000000000000000000001\\&quot;);\\n\\n$split3 = new Split();\\n$split3\\n  -&gt;setReference(\\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;)\\n  -&gt;setDescription(\\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;)\\n  -&gt;setType(\\&quot;PaymentFee\\&quot;)\\n  -&gt;setAccount(\\&quot;BA00000000000000000000001\\&quot;);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n  -&gt;setNumber(\\&quot;4111111111111111\\&quot;)\\n  -&gt;setCvc(\\&quot;737\\&quot;)\\n  -&gt;setHolderName(\\&quot;John Doe\\&quot;)\\n  -&gt;setExpiryMonth(\\&quot;03\\&quot;)\\n  -&gt;setExpiryYear(\\&quot;2030\\&quot;)\\n  -&gt;setType(\\&quot;scheme\\&quot;);\\n\\n$billingAddress = new BillingAddress();\\n$billingAddress\\n  -&gt;setCountry(\\&quot;GB\\&quot;)\\n  -&gt;setCity(\\&quot;London\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;10\\&quot;)\\n  -&gt;setStreet(\\&quot;Downing Street\\&quot;)\\n  -&gt;setPostalCode(\\&quot;SW1A 2AA\\&quot;);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setReference(\\&quot;YOUR_PAYMENT_REFERENCE\\&quot;)\\n  -&gt;setAmount($amount)\\n  -&gt;setSplits(array($split1, $split2, $split3))\\n  -&gt;setMerchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setPaymentMethod($checkoutPaymentMethod)\\n  -&gt;setBillingAddress($billingAddress);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;payments($paymentRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v27.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\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)\\nSplitAmount splitAmount1 = new SplitAmount\\n{\\n  Currency = \\&quot;CZK\\&quot;,\\n  Value = 100000\\n};\\n\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;PLN\\&quot;,\\n  Value = 20174\\n};\\n\\nSplit split1 = new Split\\n{\\n  Reference = \\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;,\\n  Amount = splitAmount1,\\n  Description = \\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;,\\n  Type = Split.TypeEnum.BalanceAccount,\\n  Account = \\&quot;BA00000000000000000000001\\&quot;\\n};\\n\\nSplit split2 = new Split\\n{\\n  Reference = \\&quot;YOUR_REMAINDER_REFERENCE\\&quot;,\\n  Description = \\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;,\\n  Type = Split.TypeEnum.Remainder,\\n  Account = \\&quot;BA00000000000000000000001\\&quot;\\n};\\n\\nSplit split3 = new Split\\n{\\n  Reference = \\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;,\\n  Description = \\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;,\\n  Type = Split.TypeEnum.PaymentFee,\\n  Account = \\&quot;BA00000000000000000000001\\&quot;\\n};\\n\\nCardDetails cardDetails = new CardDetails\\n{\\n  Number = \\&quot;4111111111111111\\&quot;,\\n  Cvc = \\&quot;737\\&quot;,\\n  HolderName = \\&quot;John Doe\\&quot;,\\n  ExpiryMonth = \\&quot;03\\&quot;,\\n  ExpiryYear = \\&quot;2030\\&quot;,\\n  Type = CardDetails.TypeEnum.Scheme\\n};\\n\\nBillingAddress billingAddress = new BillingAddress\\n{\\n  Country = \\&quot;GB\\&quot;,\\n  City = \\&quot;London\\&quot;,\\n  HouseNumberOrName = \\&quot;10\\&quot;,\\n  Street = \\&quot;Downing Street\\&quot;,\\n  PostalCode = \\&quot;SW1A 2AA\\&quot;\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Reference = \\&quot;YOUR_PAYMENT_REFERENCE\\&quot;,\\n  Amount = amount,\\n  Splits = new List&lt;Split&gt;{ split1, split2, split3 },\\n  MerchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  PaymentMethod = new CheckoutPaymentMethod(cardDetails),\\n  BillingAddress = billingAddress\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentsService(client);\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\&quot;UUID\\&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, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest = {\\n  paymentMethod: {\\n    type: \\&quot;scheme\\&quot;,\\n    number: \\&quot;4111111111111111\\&quot;,\\n    cvc: \\&quot;737\\&quot;,\\n    expiryMonth: \\&quot;03\\&quot;,\\n    expiryYear: \\&quot;2030\\&quot;,\\n    holderName: \\&quot;John Doe\\&quot;\\n  },\\n  billingAddress: {\\n    city: \\&quot;London\\&quot;,\\n    country: \\&quot;GB\\&quot;,\\n    houseNumberOrName: \\&quot;10\\&quot;,\\n    postalCode: \\&quot;SW1A 2AA\\&quot;,\\n    street: \\&quot;Downing Street\\&quot;\\n  },\\n  amount: {\\n    value: 20174,\\n    currency: \\&quot;PLN\\&quot;\\n  },\\n  reference: \\&quot;YOUR_PAYMENT_REFERENCE\\&quot;,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  splits: [ {\\n    type: \\&quot;BalanceAccount\\&quot;,\\n    account: \\&quot;BA00000000000000000000001\\&quot;,\\n    amount: {\\n      currency: \\&quot;CZK\\&quot;,\\n      value: 100000\\n    },\\n    reference: \\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;,\\n    description: \\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;\\n  }, {\\n    type: \\&quot;Remainder\\&quot;,\\n    account: \\&quot;BA00000000000000000000001\\&quot;,\\n    reference: \\&quot;YOUR_REMAINDER_REFERENCE\\&quot;,\\n    description: \\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;\\n  }, {\\n    type: \\&quot;PaymentFee\\&quot;,\\n    account: \\&quot;BA00000000000000000000001\\&quot;,\\n    reference: \\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;,\\n    description: \\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;\\n  } ]\\n}\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v16.3.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v16\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v16\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v16\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\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)\\nsplitAmount1 := checkout.SplitAmount{\\n  Currency: common.PtrString(\\&quot;CZK\\&quot;),\\n  Value: 100000,\\n}\\n\\namount := checkout.Amount{\\n  Currency: \\&quot;PLN\\&quot;,\\n  Value: 20174,\\n}\\n\\nsplit1 := checkout.Split{\\n  Reference: common.PtrString(\\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;),\\n  Amount: &amp;splitAmount1,\\n  Description: common.PtrString(\\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;),\\n  Type: \\&quot;BalanceAccount\\&quot;,\\n  Account: common.PtrString(\\&quot;BA00000000000000000000001\\&quot;),\\n}\\n\\nsplit2 := checkout.Split{\\n  Reference: common.PtrString(\\&quot;YOUR_REMAINDER_REFERENCE\\&quot;),\\n  Description: common.PtrString(\\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;),\\n  Type: \\&quot;Remainder\\&quot;,\\n  Account: common.PtrString(\\&quot;BA00000000000000000000001\\&quot;),\\n}\\n\\nsplit3 := checkout.Split{\\n  Reference: common.PtrString(\\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;),\\n  Description: common.PtrString(\\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;),\\n  Type: \\&quot;PaymentFee\\&quot;,\\n  Account: common.PtrString(\\&quot;BA00000000000000000000001\\&quot;),\\n}\\n\\ncardDetails := checkout.CardDetails{\\n  Number: common.PtrString(\\&quot;4111111111111111\\&quot;),\\n  Cvc: common.PtrString(\\&quot;737\\&quot;),\\n  HolderName: common.PtrString(\\&quot;John Doe\\&quot;),\\n  ExpiryMonth: common.PtrString(\\&quot;03\\&quot;),\\n  ExpiryYear: common.PtrString(\\&quot;2030\\&quot;),\\n  Type: common.PtrString(\\&quot;scheme\\&quot;),\\n}\\n\\nbillingAddress := checkout.BillingAddress{\\n  Country: \\&quot;GB\\&quot;,\\n  City: \\&quot;London\\&quot;,\\n  HouseNumberOrName: \\&quot;10\\&quot;,\\n  Street: \\&quot;Downing Street\\&quot;,\\n  PostalCode: \\&quot;SW1A 2AA\\&quot;,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n  Reference: \\&quot;YOUR_PAYMENT_REFERENCE\\&quot;,\\n  Amount: amount,\\n  Splits: []checkout.Split{\\n      split1, split2, split3,\\n  },\\n  MerchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  PaymentMethod: checkout.CardDetailsAsCheckoutPaymentMethod(&amp;cardDetails),\\n  BillingAddress: &amp;billingAddress,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Checkout()\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\&quot;UUID\\&quot;).PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Payments(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_API_KEY\\&quot;\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;paymentMethod\\&quot;: {\\n    \\&quot;type\\&quot;: \\&quot;scheme\\&quot;,\\n    \\&quot;number\\&quot;: \\&quot;4111111111111111\\&quot;,\\n    \\&quot;cvc\\&quot;: \\&quot;737\\&quot;,\\n    \\&quot;expiryMonth\\&quot;: \\&quot;03\\&quot;,\\n    \\&quot;expiryYear\\&quot;: \\&quot;2030\\&quot;,\\n    \\&quot;holderName\\&quot;: \\&quot;John Doe\\&quot;\\n  },\\n  \\&quot;billingAddress\\&quot;: {\\n    \\&quot;city\\&quot;: \\&quot;London\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;GB\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;10\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;SW1A 2AA\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Downing Street\\&quot;\\n  },\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;value\\&quot;: 20174,\\n    \\&quot;currency\\&quot;: \\&quot;PLN\\&quot;\\n  },\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_PAYMENT_REFERENCE\\&quot;,\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;splits\\&quot;: [ {\\n    \\&quot;type\\&quot;: \\&quot;BalanceAccount\\&quot;,\\n    \\&quot;account\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n    \\&quot;amount\\&quot;: {\\n      \\&quot;currency\\&quot;: \\&quot;CZK\\&quot;,\\n      \\&quot;value\\&quot;: 100000\\n    },\\n    \\&quot;reference\\&quot;: \\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;\\n  }, {\\n    \\&quot;type\\&quot;: \\&quot;Remainder\\&quot;,\\n    \\&quot;account\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n    \\&quot;reference\\&quot;: \\&quot;YOUR_REMAINDER_REFERENCE\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;\\n  }, {\\n    \\&quot;type\\&quot;: \\&quot;PaymentFee\\&quot;,\\n    \\&quot;account\\&quot;: \\&quot;BA00000000000000000000001\\&quot;,\\n    \\&quot;reference\\&quot;: \\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;\\n  } ]\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\&quot;UUID\\&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_API_KEY'\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'scheme',\\n    :number =&gt; '4111111111111111',\\n    :cvc =&gt; '737',\\n    :expiryMonth =&gt; '03',\\n    :expiryYear =&gt; '2030',\\n    :holderName =&gt; 'John Doe'\\n  },\\n  :billingAddress =&gt; {\\n    :city =&gt; 'London',\\n    :country =&gt; 'GB',\\n    :houseNumberOrName =&gt; '10',\\n    :postalCode =&gt; 'SW1A 2AA',\\n    :street =&gt; 'Downing Street'\\n  },\\n  :amount =&gt; {\\n    :value =&gt; 20174,\\n    :currency =&gt; 'PLN'\\n  },\\n  :reference =&gt; 'YOUR_PAYMENT_REFERENCE',\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :splits =&gt; [ {\\n    :type =&gt; 'BalanceAccount',\\n    :account =&gt; 'BA00000000000000000000001',\\n    :amount =&gt; {\\n      :currency =&gt; 'CZK',\\n      :value =&gt; 100000\\n    },\\n    :reference =&gt; 'YOUR_SPLIT_REFERENCE_1',\\n    :description =&gt; 'YOUR_SPLIT_DESCRIPTION_1'\\n  }, {\\n    :type =&gt; 'Remainder',\\n    :account =&gt; 'BA00000000000000000000001',\\n    :reference =&gt; 'YOUR_REMAINDER_REFERENCE',\\n    :description =&gt; 'YOUR_REMAINDER_DESCRIPTION'\\n  }, {\\n    :type =&gt; 'PaymentFee',\\n    :account =&gt; 'BA00000000000000000000001',\\n    :reference =&gt; 'YOUR_PAYMENT-FEE_REFERENCE',\\n    :description =&gt; 'YOUR_PAYMENT-FEE_DESCRIPTION'\\n  } ]\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' =&gt; 'UUID' })&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, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst splitAmount1: Types.checkout.SplitAmount = {\\n  currency: \\&quot;CZK\\&quot;,\\n  value: 100000\\n};\\n\\nconst amount: Types.checkout.Amount = {\\n  currency: \\&quot;PLN\\&quot;,\\n  value: 20174\\n};\\n\\nconst split1: Types.checkout.Split = {\\n  reference: \\&quot;YOUR_SPLIT_REFERENCE_1\\&quot;,\\n  amount: splitAmount1,\\n  description: \\&quot;YOUR_SPLIT_DESCRIPTION_1\\&quot;,\\n  type: Types.checkout.Split.TypeEnum.BalanceAccount,\\n  account: \\&quot;BA00000000000000000000001\\&quot;\\n};\\n\\nconst split2: Types.checkout.Split = {\\n  reference: \\&quot;YOUR_REMAINDER_REFERENCE\\&quot;,\\n  description: \\&quot;YOUR_REMAINDER_DESCRIPTION\\&quot;,\\n  type: Types.checkout.Split.TypeEnum.Remainder,\\n  account: \\&quot;BA00000000000000000000001\\&quot;\\n};\\n\\nconst split3: Types.checkout.Split = {\\n  reference: \\&quot;YOUR_PAYMENT-FEE_REFERENCE\\&quot;,\\n  description: \\&quot;YOUR_PAYMENT-FEE_DESCRIPTION\\&quot;,\\n  type: Types.checkout.Split.TypeEnum.PaymentFee,\\n  account: \\&quot;BA00000000000000000000001\\&quot;\\n};\\n\\nconst cardDetails: Types.checkout.CardDetails = {\\n  number: \\&quot;4111111111111111\\&quot;,\\n  cvc: \\&quot;737\\&quot;,\\n  holderName: \\&quot;John Doe\\&quot;,\\n  expiryMonth: \\&quot;03\\&quot;,\\n  expiryYear: \\&quot;2030\\&quot;,\\n  type: Types.checkout.CardDetails.TypeEnum.Scheme\\n};\\n\\nconst billingAddress: Types.checkout.BillingAddress = {\\n  country: \\&quot;GB\\&quot;,\\n  city: \\&quot;London\\&quot;,\\n  houseNumberOrName: \\&quot;10\\&quot;,\\n  street: \\&quot;Downing Street\\&quot;,\\n  postalCode: \\&quot;SW1A 2AA\\&quot;\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n  reference: \\&quot;YOUR_PAYMENT_REFERENCE\\&quot;,\\n  amount: amount,\\n  splits: [split1, split2, split3],\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  paymentMethod: cardDetails,\\n  billingAddress: billingAddress\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p><br><\/p>\n<\/li>\n<li>\n<p>You receive the following response:<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Response'\" :id=\"'response-payment-forex'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   ...\\n   \\\"pspReference\\\":\\\"LVP53Z9PQGNG5S82\\\",\\n   \\\"resultCode\\\":\\\"Authorised\\\",\\n   \\\"amount\\\":{\\n      \\\"currency\\\":\\\"PLN\\\",\\n      \\\"value\\\":20174\\n   },\\n   \\\"merchantReference\\\":\\\"YOUR_PAYMENT_REFERENCE\\\",\\n   \\\"paymentMethod\\\":{\\n      \\\"brand\\\":\\\"mc\\\",\\n      \\\"type\\\":\\\"scheme\\\"\\n   }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<p>The splits are guaranteed, and the payment is booked according to the data you provide in the splits array. Any mismatch or miscalculation is booked to the balance account you specify in the split item with type <strong>Remainder<\/strong>. You can reconcile these mismatches per transaction using the <a href=\"\/pt\/marketplaces\/reports-and-fees\/balance-platform-accounting-report\">Balance Platform Accounting Report<\/a>.<\/p>","url":"https:\/\/docs.adyen.com\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency","articleFields":{"description":"Learn how to convert the currency of a payment when the cost of the goods is fixed in the settlement currency","feedback_component":true,"parameters":{"directoryPath":"\/marketplaces","model":"marketplace"},"filters_component":false,"page_id":"7f6ea2bd-a801-49ac-9cae-77429d0c13c6"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency","title":"Fix the cost of goods in the settlement currency","content":"Limited availability\nCurrency conversion in currently in pilot phase. Some of the processes and documentation may change as the feature evolves. If you are interested in piloting currency conversion or have any feedback, reach out to your Adyen contact.\n\nWhen you fix the cost of the goods in the settlement currency, your user always receives the same, fixed amount in their currency of choice (the settlement currency). The amount the customer pays in the processing currency is not fixed and depends on the prevailing exchange rate and Adyen's conversion markup.\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nYou must have an Adyen online payments integration and a checkout UI.\n\n\nAPI credentials\nYou must have credentials for the following APIs: Checkout API (format: ws@Company.[YourCompanyAccount]) Foreign Exchange API (format: ws@BalancePlatform.[YourBalancePlatform]). Only if you are using the rates\/calculate endpoint.\n\n\nAPI credential roles\nTo use the Foreign Exchange API, make sure you have the following role:Read FX rates role\n\n\nCustomer Area roles\nTo use the Exchange Rate Report, make sure that you have at least one of the following rolesMerchant report Merchant financialMerchant admin\n\n\nWebhooks\nEnsure that your server can receive and accept standard webhooks.Subscribe to any of the following webhooks:  Transfer webhooks Transaction webhooks\n\n\nCapabilities\nMake sure that your account holders have the following capabilities:receivePaymentsreceiveFromPlatformPaymentssendToTransferInstrument\n\n\nSetup steps\nBefore you begin: Ask our Support Team to:Enable the use of the Foreign Exchange API for your merchant account (only if you are using the rates\/calculate endpoint).Configure the required currencies for your merchant account.\n\n\n\nHow it works\nIf the cost of the goods in the settlement currency (the currency your user receives) is fixed:\n\nYou calculate the amount the customer must pay in the processing currency, using either the Foreign Exchange API or the Exchange Rate Report.\nYou make a POST \/payments request, specifying the cost of the goods in both currencies.\nWhen Adyen receives the request, we debit the customer and credit your user in their respective currencies.\n\nCalculate the amount in the processing currency\nTo calculate the exact amount the customer must pay in their currency of choice (the processing currency), you have two options:\n\nMake a POST  \/rates\/calculate request using the Foreign Exchange API to get the exact payment amount in the processing currency.\nUse our Exchange Rate Report to manually calculate the exact payment amount in the processing currency.\n\n\n\n    \n        \n        \n    \n\n\nSend a payment request with the calculated amount\n\n\nMake sure that you have the API key for the Checkout API. Your credential has the format ws@Company.[YourCompanyAccount].\n\n\nSend a POST  \/payments,  \/sessions, or  \/payments\/{paymentPspReference}\/captures request, specifying the following fields for the currency conversion:\n\n\n\nParameter\nRequired\nDescription\nExample\n\n\n\n\namount.value\n\nThe cost of the goods in the processing currency, calculated in step 1.\namount.value: 20174\n\n\namount.currency\n\nThe currency in which the customer pays.\namount.currency: \"PLN\"\n\n\nsplits.amount.value\n\nThe cost of the goods in the settlement currency. In case of multiple splits, the sum of the split amounts in the splits array must equal the cost of the goods in the settlement currency. Any mismatch is booked to the balance account you specify in the split item with type Remainder.\nsplits.amount.value: 100000\n\n\nsplits.amount.currency\n\nThe settlement currency.This is the currency in which your user receives the funds.\nsplits.amount.currency: \"CZK\"\n\n\nsplits.type\n\nThe type of the split item. We recommend to always add a split item for the Remainder and the transaction fees.\nsplit.type: BalanceAccountsplit.type: PaymentFeesplit.type: Remainder\n\n\n\n\n\n\n\n\n\nYou receive the following response:\n\n\n\n\n\nThe splits are guaranteed, and the payment is booked according to the data you provide in the splits array. Any mismatch or miscalculation is booked to the balance account you specify in the split item with type Remainder. You can reconcile these mismatches per transaction using the Balance Platform Accounting Report.","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Marketplaces","lvl2":"Currency conversion","lvl3":"Convert the currency of a payment","lvl4":"Fix the cost of goods in the settlement currency"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/marketplaces","lvl2":"https:\/\/docs.adyen.com\/pt\/marketplaces\/currency-conversion","lvl3":"https:\/\/docs.adyen.com\/pt\/marketplaces\/currency-conversion\/payments","lvl4":"\/pt\/marketplaces\/currency-conversion\/payments\/fix-settlement-currency"},"levels":5,"category":"Marketplaces","category_color":"green","tags":["goods","settlement","currency"]}}
