{"title":"Dynamic surcharge","category":"default","creationDate":1776961628,"content":"<p>If you want to be in full control of surcharges, you can specify the surcharge amount in your in-person payment request. We refer to this as dynamic surcharge. To calculate the surcharge amount, you can use a third-party service or create your own calculation logic. If you accept ecommerce as well as point-of-sale payments, you can use the same calculation logic for both sales channels, taking into account all applicable compliance requirements.<\/p>\n<p>Depending on your <a href=\"\/pt\/platforms\/in-person-payments\/surcharge#surcharge-methods\">use case<\/a>, you can combine dynamic surcharge with <a href=\"\/pt\/platforms\/in-person-payments\/surcharge\/configuration\">configuration-based surcharge<\/a>.<\/p>\n<h2>Requirements<\/h2>\n<p>In addition to the <a href=\"\/pt\/platforms\/in-person-payments#requirements\">general requirements<\/a> for in-person payments with an Adyen for Platforms integration and the general <a href=\"\/pt\/platforms\/in-person-payments\/surcharge#requirements\">surcharge requirements<\/a>, take into account the following information.<\/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;\">Dynamic surcharge is supported with a <a href=\"\/pt\/point-of-sale\/design-your-integration\/\">Terminal API integration<\/a> with payment terminals on terminal software version <strong>1.118<\/strong> or later.<\/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;\">To configure showing the <a href=\"\/pt\/platforms\/in-person-payments\/surcharge#surcharge-confirmation-screen\">surcharge confirmation screen<\/a>, you must have an API credential with an API key and the following <a href=\"\/pt\/development-resources\/api-credentials#api-permissions\">roles<\/a>: <ul><li markdown=\"1\">Management API\u2014Terminal settings read<\/li> <li markdown=\"1\">Management API\u2014Terminal settings read and write<\/li><\/ul> If you have a Terminal API integration with <a href=\"\/pt\/point-of-sale\/design-your-integration\/choose-your-architecture#cloud-communications\">cloud-based communications<\/a>, you can use the existing API key that you use for Terminal API requests.<\/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;\">It is recommended to subscribe to <strong>Standard<\/strong> webhooks and <a href=\"\/pt\/platforms\/in-person-payments\/surcharge#surcharge-in-authorisation-webhooks\">enable<\/a> receiving the surcharge amount in AUTHORISATION webhook messages.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Limitations<\/strong><\/td>\n<td style=\"text-align: left;\">Requests to live Management API endpoints related to terminal settings are subject to <a href=\"\/pt\/point-of-sale\/automating-terminal-management#rate-limits-in-the-live-environment\">rate limits<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you start: <ul><li markdown=\"1\"><a href=\"\/pt\/point-of-sale\/card-acquisition\/identifiers\">Enable receiving the issuer country\/region<\/a> in API responses and webhook messages.<\/li> <li>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 enable single tap.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How it works<\/h2>\n<p>To use dynamic surcharge:<\/p>\n<ol>\n<li>\n<p>Design the customer experience. We recommend the following:<\/p>\n<ul>\n<li>\n<p>To inform customers about the changed amount after the surcharge is calculated, <a href=\"#show-confirmation\">configure showing<\/a> the <a href=\"\/pt\/platforms\/in-person-payments\/surcharge#surcharge-confirmation-screen\">surcharge confirmation screen<\/a>. If you hide this screen, regulations require you to provide another form of surcharge disclosure.<\/p>\n<\/li>\n<li>\n<p>Use the single tap flow. This means that for contactless payments, customers do not need to tap again when they confirm they accept the surcharge. Contact 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 enable single tap.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>To get the details that are needed to calculate the surcharge amount, you <a href=\"#card-acquisition-request\">make a card acquisition request<\/a>. These details include, for example, the transaction amount and currency, card brand, funding source, and issuing country of the card.<\/p>\n<p>Note the following:<\/p>\n<ul>\n<li>In Australia the surcharge compliance requirements are simple enough that you can consider skipping card acquisition.<\/li>\n<li>\n<p>Also note that Mobile solutions currently do not support card acquisition.<\/p>\n<!-- list separator -->\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>On the payment terminal, a payment screen appears and  your user's customer  taps, inserts, or swipes their card.<\/p>\n<\/li>\n<li>\n<p>When you receive the card acquisition response, you pass the details for the surcharge calculation to your own surcharge calculation logic or to the third-party surcharge calculation service.<\/p>\n<\/li>\n<li>\n<p>When you get the calculated surcharge amount from your own system or the third party, you <a href=\"#payment-with-surcharge\">make a payment request with the surcharge amount<\/a>  and the split instructions  in the <code>SaleToAcquirerData<\/code>. The payment request must also refer to the card acquisition.<\/p>\n<\/li>\n<li>\n<p>The surcharge confirmation screen appears. This enables  your user's customer  to accept the surcharge, or cancel the transaction.<\/p>\n<div class=\"notices green\">\n<p>In a Mobile solution or if you configured to skip this Adyen-provided confirmation screen, you must provide another form of disclosure.<\/p>\n<\/div>\n<\/li>\n<li>\n<p>If  your user's customer  accepts the surcharge, the payment is processed and the payment response shows the surcharge amount in the <code>TotalFeesAmount<\/code> field.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"show-confirmation\">Show the confirmation screen<\/h2>\n<p>Adyen provides a surcharge confirmation screen that appears on the payment terminal to let the customer review and accept the surcharge, or cancel the transaction. You can configure this screen to be skipped. But if you do, you must provide another form of disclosure.<\/p>\n<p>To configure showing or hiding the surcharge confirmation screen:<\/p>\n<ol>\n<li>\n<p>Optionally, check the current setting for the surcharge confirmation screen by making a GET request to the <code>\/terminalSettings<\/code> endpoint for the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">company account<\/a>,  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">merchant account<\/a>,  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/stores\/(storeId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">store<\/a> or  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/terminals\/(terminalId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">terminal<\/a>. Check the <code>surcharge.askConfirmation<\/code> parameter.<\/p>\n<\/li>\n<li>\n<p>Make a PATCH request to the <code>\/terminalSettings<\/code> endpoint for the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">company account<\/a>,  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">merchant account<\/a>,  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/stores\/(storeId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">store<\/a> or  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/terminals\/(terminalId)\/terminalSettings\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">terminal<\/a>.<br \/>\nIn the request body, specify a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/companies\/(companyId)\/terminalSettings#request-surcharge\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">surcharge<\/a> object with the following parameter:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Data&nbsp;type<\/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\/patch\/companies\/(companyId)\/terminalSettings#request-surcharge-askConfirmation\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">askConfirmation<\/a><\/td>\n<td style=\"text-align: left;\">Boolean<\/td>\n<td style=\"text-align: left;\">Indicates whether to show (<strong>true<\/strong>) or hide (<strong>false<\/strong>) the <a href=\"#how-it-works\">surcharge confirmation screen<\/a> on the payment terminal.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Show the surcharge confirmation screen'\" :id=\"'code-sample-configure-confirmation'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/stores\\\/{storeId}\\\/terminalSettings \\\\\\n-H 'x-API-key: YOUR_X-API-KEY' \\\\\\n-X PATCH \\\\\\n-d '{\\n    \\&quot;surcharge\\&quot;: {\\n        \\&quot;askConfirmation\\&quot;: true\\n    }\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Note that the response returns the setting for the surcharge confirmation screen as well as all other terminal settings at the level where you made the request.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"card-acquisition-request\">1. Make a card acquisition request<\/h2>\n<p>To calculate the surcharge amount, you need to know certain details. For example, if the customer is using a credit or debit card, and where the card was issued.<\/p>\n<p>We recommend getting these details through a card acquisition request. The response provides the details of the card that the customer presents to the payment terminal.<\/p>\n<ol>\n<li>\n<p>Make a <a href=\"\/pt\/point-of-sale\/design-your-integration\/terminal-api\">Terminal API<\/a> card acquisition request, specifying:<\/p>\n<ul>\n<li>\n<p>The standard <a href=\"\/pt\/point-of-sale\/design-your-integration\/terminal-api#request-message-header\">\n  <code>SaleToPOIRequest.MessageHeader<\/code>\n<\/a> object, with <code>MessageClass<\/code> set to <span translate=\"no\"><strong>Service<\/strong><\/span> and <code>MessageCategory<\/code> set to <span translate=\"no\"><strong>CardAcquisition<\/strong><\/span>.<\/p>\n<table>\n<thead>\n<tr>\n<th>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><code>ProtocolVersion<\/code><\/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;\"><strong>3.0<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>MessageClass<\/code><\/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;\"><span translate=\"no\"><strong>Service<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><code>MessageCategory<\/code><\/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;\"><span translate=\"no\"><strong>CardAcquisition<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><code>MessageType<\/code><\/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;\"><span translate=\"no\"><strong>Request<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><code>ServiceID<\/code><\/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;\">Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (<code>POIID<\/code>) being used.<\/td>\n<\/tr>\n<tr>\n<td><code>SaleID<\/code><\/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;\">Your unique ID for the POS system component to send this request from.<\/td>\n<\/tr>\n<tr>\n<td><code>POIID<\/code><\/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 ID of the terminal to send this request to. Format: <em>[device model]-[serial number]<\/em>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/terminal-api\/latest\/post\/cardacquisition\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">CardAcquisitionRequest<\/a> object with:<\/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;\"><code>SaleData.SaleTransactionID<\/code><\/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;\">An object with: <ul><li markdown=\"1\"><code>TransactionID<\/code>: Your reference to identify a payment. We recommend using a unique value per payment.<\/li> <li markdown=\"1\"><code>TimeStamp<\/code>: The date and time of the request in <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_8601#Coordinated_Universal_Time_(UTC)\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">UTC format<\/a>.<\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>CardAcquisitionTransaction<\/code><\/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;\">An object with: <ul><li markdown=\"1\"><code>TotalAmount<\/code>: The amount due for the goods or services that the customer wants to purchase.<\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<p>The examples show a card acquisition when the customer wants to purchase USD&nbsp;620.00 worth of goods or services.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Simple card acquisition request'\" :id=\"'surcharge-card-acquisition'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"SaleToPOIRequest\\\":\\n        \\\"MessageHeader\\\": {\\n            \\\"ProtocolVersion\\\": \\\"3.0\\\",\\n            \\\"MessageClass\\\": \\\"Service\\\",\\n            \\\"MessageCategory\\\": \\\"CardAcquisition\\\",\\n            \\\"MessageType\\\": \\\"Request\\\",\\n            \\\"ServiceID\\\": \\\"797\\\",\\n            \\\"SaleID\\\": \\\"POSSystemID12345\\\",\\n            \\\"POIID\\\": \\\"V400m-324688179\\\"\\n        },\\n        \\\"CardAcquisitionRequest\\\": {\\n            \\\"SaleData\\\": {\\n                \\\"SaleTransactionID\\\": {\\n                    \\\"TransactionID\\\": \\\"369\\\",\\n                    \\\"TimeStamp\\\": \\\"2026-01-05T15:57:06.973Z\\\"\\n                }\\n            },\\n            \\\"CardAcquisitionTransaction\\\": {\\n                \\\"TotalAmount\\\": 620.00\\n            }\\n        }\\n    }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>When the card acquisition succeeds, the response contains a <code>message<\/code> of  <strong>CARD_ACQ_COMPLETED<\/strong> in the <code>AdditionalResponse<\/code>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Card acquisition response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"SaleToPOIResponse\\\": {\\n        \\\"CardAcquisitionResponse\\\": {\\n            \\\"POIData\\\": {\\n                \\\"POIReconciliationID\\\": \\\"1000\\\",\\n                \\\"POITransactionID\\\": {\\n                    \\\"TimeStamp\\\": \\\"2026-01-05T15:57:20.465Z\\\",\\n                    \\\"TransactionID\\\": \\\"BV0q001767628639000\\\"\\n                }\\n            },\\n            \\\"PaymentInstrumentData\\\": {\\n                \\\"CardData\\\": {\\n                    \\\"CardCountryCode\\\": \\\"840\\\",\\n                    \\\"MaskedPan\\\": \\\"600007 **** 7003\\\",\\n                    \\\"PaymentBrand\\\": \\\"mc\\\",\\n                    \\\"SensitiveCardData\\\": {\\n                        \\\"ExpiryDate\\\": \\\"0330\\\"\\n                    }\\n                },\\n                \\\"PaymentInstrumentType\\\": \\\"Card\\\"\\n            },\\n            \\\"Response\\\": {\\n                \\\"AdditionalResponse\\\": \\\"PaymentAccountReference=t9BVKrTbgJT11Igro8dtfsmUVrLnL&amp;alias=P601291289070502&amp;aliasType=Default&amp;backendGiftcardIndicator=false&amp;cardBin=600007&amp;cardHolderName=S%2Hopper&amp;cardIssuerCountryId=840&amp;cardIssuingBank=Adyen%20TEST&amp;cardScheme=mc&amp;cardSummary=7003&amp;cardType=mc&amp;dcc.dccRefusalReason=Currencies%20are%20the%20same&amp;expiryMonth=03&amp;expiryYear=2030&amp;fundingSource=CREDIT&amp;giftcardIndicator=false&amp;isCardCommercial=false&amp;iso8601TxDate=2026-01-05T15%3a57%3a20.465Z&amp;issuerCountry=US&amp;merchantReference=577&amp;message=CARD_ACQ_COMPLETED&amp;paymentMethod=mc&amp;paymentMethodVariant=mccredit&amp;posAmountCashbackValue=0&amp;posAmountGratuityValue=0&amp;posAuthAmountCurrency=USD&amp;posAuthAmountValue=62000&amp;posEntryMode=ICC&amp;posOriginalAmountValue=62000&amp;posadditionalamounts.originalAmountCurrency=USD&amp;posadditionalamounts.originalAmountValue=62000&amp;shopperCountry=US&amp;store=YOUR_STORE&amp;tid=47069832&amp;transactionType=GOODS_SERVICES&amp;txdate=05-01-2026&amp;txtime=16%3a57%3a20\\\",\\n                \\\"Result\\\": \\\"Success\\\"\\n            },\\n            \\\"SaleData\\\": {\\n                \\\"SaleTransactionID\\\": {\\n                    \\\"TimeStamp\\\": \\\"2026-01-05T15:57:06.973Z\\\",\\n                    \\\"TransactionID\\\": \\\"577\\\"\\n                }\\n            }\\n        },\\n        \\\"MessageHeader\\\": {\\n            \\\"MessageCategory\\\": \\\"CardAcquisition\\\",\\n            \\\"MessageClass\\\": \\\"Service\\\",\\n            \\\"MessageType\\\": \\\"Response\\\",\\n            \\\"POIID\\\": \\\"V400m-324688179\\\",\\n            \\\"ProtocolVersion\\\": \\\"3.0\\\",\\n            \\\"SaleID\\\": \\\"POSSystemID12345\\\",\\n            \\\"ServiceID\\\": \\\"979\\\"\\n        }\\n    }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>From the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/terminal-api\/latest\/post\/cardacquisition#responses-200-Response\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">CardAcquisitionResponse<\/a>, get the details that are needed for the surcharge calculation. Also get the <code>POITransactionID<\/code> details, which you will need to specify later in your payment request.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Usage<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code>POIData.POITransactionID<\/code><\/td>\n<td style=\"text-align: left;\">Keep the <code>TimeStamp<\/code> and <code>TransactionID<\/code>, because you need these card acquisition details in your payment request.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>PaymentInstrumentData.CardData<\/code><\/td>\n<td style=\"text-align: left;\">Includes details you may need for the surcharge calculation: <ul><li markdown=\"1\"><code>CardCountryCode<\/code>: The three-digit code of the issuer country\/region.<\/li> <li markdown=\"1\"><code>PaymentBrand<\/code>: The type of payment card.<\/li> <\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>Response.AdditionalResponse<\/code><\/td>\n<td style=\"text-align: left;\">Includes details you may need for the surcharge calculation.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>As an example, the <code>AdditionalResponse<\/code> from the <code>CardAcquisitionResponse<\/code> above includes the following details that can be useful for the surcharge calculation:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter + value<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code>cardIssuerCountryId=840<\/code><\/td>\n<td style=\"text-align: left;\">The three-digit code of the issuer country\/region.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>cardScheme=mc<\/code><\/td>\n<td style=\"text-align: left;\">The card scheme.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>cardType=mc<\/code><\/td>\n<td style=\"text-align: left;\">The card type.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>fundingSource=CREDIT<\/code><\/td>\n<td style=\"text-align: left;\">The funding source used for the transaction, such as a credit, debit, prepaid, or charge card. In other words: where the customer's money comes from.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>isCardCommercial=false<\/code><\/td>\n<td style=\"text-align: left;\">Indicates if this is a commercial card or a consumer card. When <strong>true<\/strong>, it is a commercial card. When <strong>false<\/strong>, it is a consumer card.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>issuerCountry=US<\/code><\/td>\n<td style=\"text-align: left;\">The two-letter code of the issuer country\/region.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>paymentMethod=mc<\/code><\/td>\n<td style=\"text-align: left;\">The payment method on the brand or scheme level.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>paymentMethodVariant=mccredit<\/code><\/td>\n<td style=\"text-align: left;\">The payment method on the product level.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>posAuthAmountCurrency=USD<\/code><\/td>\n<td style=\"text-align: left;\">The three-letter code of the transaction currency.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>posAuthAmountValue=62000<\/code><\/td>\n<td style=\"text-align: left;\">The transaction amount in minor units.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>posOriginalAmountValue=62000<\/code><\/td>\n<td style=\"text-align: left;\">The transaction amount before surcharge, gratuity, adjustments, and such (if any).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>shopperCountry=US<\/code><\/td>\n<td style=\"text-align: left;\">The two-letter code of the customer's country\/region.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sc-notice note\"><div>\n<p>If the <code>AdditionalResponse<\/code> doesn't include the expected details, check if you enabled receiving those details. Refer to <a href=\"\/pt\/point-of-sale\/card-acquisition\/identifiers#receiving-identifiers-in-responses\">Receive identifiers<\/a>.<\/p>\n<\/div><\/div>\n<\/li>\n<li>\n<p>Pass the relevant details to your own surcharge calculation system or to your third-party surcharge calculation service.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"payment-with-surcharge\">2. Add a surcharge and book it to your user<\/h2>\n<p>When you have received the calculated surcharge amount from your own system or the third-party surcharge calculation service, make a Terminal API payment request with the following information in the <code>SaleToAcquirerData<\/code>:<\/p>\n<ul>\n<li>The surcharge amount, specified using the <code>surchargeFee<\/code> field.<\/li>\n<li>Split instructions for the payment, including how to split the surcharge.<\/li>\n<\/ul>\n<ol>\n<li>\n<p>When you <a href=\"\/pt\/platforms\/in-person-payments\/split-transactions\/split-payments-at-authorization#gather-data\">gather the split instructions for the payment<\/a>, add a split item for the surcharge, and add the calculated surcharge fee.<\/p>\n<ul>\n<li>\n<p>Increase the <code>split.nrOfItems<\/code> by one, to accommodate the surcharge split item you are adding.<\/p>\n<\/li>\n<li>\n<p>In the split item for the surcharge, specify:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Key<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code>split.item[ITEM_NUMBER].type<\/code><\/td>\n<td style=\"text-align: left;\">The type of split. Set this to <span translate=\"no\"><strong>Surcharge<\/strong><\/span>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>split.item[ITEM_NUMBER].account<\/code><\/td>\n<td style=\"text-align: left;\">The account that will receive the surcharge. This is the <code>balanceAccountID<\/code> of one of your user's balance accounts.<br><div class=\"notices green\">You cannot split the surcharge between multiple balance accounts.<\/div><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>split.item[ITEM_NUMBER].reference<\/code><\/td>\n<td style=\"text-align: left;\">Your reference for the surcharge, reflected in the <a href=\"\/pt\/platforms\/reports-and-fees\/balance-platform-accounting-report\">Balance Platform Accounting Report<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>split.item[ITEM_NUMBER].description<\/code><\/td>\n<td style=\"text-align: left;\">Your description of the surcharge, reflected in the <a href=\"\/pt\/platforms\/reports-and-fees\/balance-platform-accounting-report\">Balance Platform Accounting Report<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\n<p>Add a <code>surchargeFee<\/code> parameter with the calculated surcharge amount as the value. Note that this parameter is <em>not<\/em> a split parameter, and that you must <em>not<\/em> use minor units for the surcharge amount.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Format the split data and surcharge amount in one of the following ways:<\/p>\n<ul>\n<li><strong>Option 1<\/strong>: as a string of form-encoded key-value pairs (using <strong>&amp;<\/strong> as a separator).<\/li>\n<li><strong>Option 2<\/strong>: as a JSON object converted to a Base64-encoded string.<\/li>\n<\/ul>\n<p>As an example, we use a payment of USD&nbsp;626.00 that is split into:<\/p>\n<ul>\n<li>USD 600.00 to be booked to your user's first balance account as the sale amount.<\/li>\n<li>USD 20.00 to be booked to your liable account as your platform's commission.<\/li>\n<li>The payment fee to be booked to your user's first balance account. This will be deducted from the sale amount.<\/li>\n<li>USD 6.00 to be booked to your user's first balance account as the surcharge.<\/li>\n<\/ul>\n<p>The <code>split.nrOfItems<\/code> is <strong>4<\/strong> and the <code>split.totalAmount<\/code> is <strong>62000<\/strong> because the amounts for the payment fee and the surcharge should not be added to the original amount.<\/p>\n\n<div id=\"tabVcYhs\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Key-value pairs&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Turn the split data you gathered and the surcharge amount into key-value pairs.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Split surcharge data as key-value pairs&#039;\\&quot; :id=\\&quot;&#039;split-data-pairs-2&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;raw\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;split.api=1\\\\nsplit.nrOfItems=4\\\\nsplit.totalAmount=62000\\\\nsplit.currencyCode=USD\\\\nsplit.item1.amount=60000\\\\nsplit.item1.type=BalanceAccount\\\\nsplit.item1.account=BA00000000000000000000001\\\\nsplit.item1.reference=Your reference for the sale\\\\nsplit.item1.description=Your description for the sale\\\\nsplit.item2.amount=2000\\\\nsplit.item2.type=Commission\\\\nsplit.item2.reference=Your reference for your commission\\\\nsplit.item2.description=Your description for your commission\\\\nsplit.item3.type=PaymentFee\\\\nsplit.item3.account=BA00000000000000000000001\\\\nsplit.item3.reference=Your reference for the fees\\\\nsplit.item3.description=Your description for the fees\\\\nsplit.item4.type=Surcharge\\\\nsplit.item4.account=BA00000000000000000000001\\\\nsplit.item4.reference=Your reference for the surcharge\\\\nsplit.item4.description=Your description for the surcharge\\\\nsurchargeFee=6.00\\&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;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Concatenate the key-value pairs into a string by separating them with ampersands (&lt;strong&gt;&amp;amp;&lt;\\\/strong&gt;).&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Concatenated key-value pairs&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;bash\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;split.api=1&amp;amp;split.nrOfItems=4&amp;amp;split.totalAmount=62000&amp;amp;split.currencyCode=USD&amp;amp;split.item1.amount=60000&amp;amp;split.item1.type=BalanceAccount&amp;amp;split.item1.account=BA00000000000000000000001&amp;amp;split.item1.reference=Your reference for the sale&amp;amp;split.item1.description=Your description for the sale&amp;amp;split.item2.amount=2000&amp;amp;split.item2.type=Commission&amp;amp;split.item2.reference=Your reference for your commission&amp;amp;split.item2.description=Your description for your commission&amp;amp;split.item3.type=PaymentFee&amp;amp;split.item3.account=BA00000000000000000000001&amp;amp;split.item3.reference=Your reference for the fees&amp;amp;split.item3.description=Your description for the fees&amp;amp;split.item4.type=Surcharge&amp;amp;split.item4.account=BA00000000000000000000001&amp;amp;split.item4.reference=Your reference for the surcharge&amp;amp;split.item4.description=Your description for the surcharge&amp;amp;surchargeFee=6.00\\&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;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;split-key-value-pairs&quot;,&quot;oldTabId&quot;:&quot;split-key-value-pairs_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Base64-encoded JSON&quot;,&quot;content&quot;:&quot;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;Create a JSON object consisting of an &lt;code&gt;additionalData&lt;\\\/code&gt; object containing the split data you gathered and the surcharge amount. Note that the surcharge amount must be specified as a string value, not as a numeric value.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;JSON object&#039;\\&quot; :id=\\&quot;&#039;JSON-object_2&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n   \\\\\\&quot;additionalData\\\\\\&quot;: {\\\\n      \\\\\\&quot;split.api\\\\\\&quot;: \\\\\\&quot;1\\\\\\&quot;,\\\\n      \\\\\\&quot;split.nrOfItems\\\\\\&quot;: \\\\\\&quot;4\\\\\\&quot;,\\\\n      \\\\\\&quot;split.totalAmount\\\\\\&quot;: \\\\\\&quot;62000\\\\\\&quot;,\\\\n      \\\\\\&quot;split.currencyCode\\\\\\&quot;: \\\\\\&quot;USD\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item1.amount\\\\\\&quot;: \\\\\\&quot;60000\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item1.type\\\\\\&quot;: \\\\\\&quot;BalanceAccount\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item1.account\\\\\\&quot;: \\\\\\&quot;BA00000000000000000000001\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item1.reference\\\\\\&quot;: \\\\\\&quot;Your reference for the sale\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item1.description\\\\\\&quot;: \\\\\\&quot;Your description for the sale\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item2.amount\\\\\\&quot;: \\\\\\&quot;2000\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item2.type\\\\\\&quot;: \\\\\\&quot;Commission\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item2.reference\\\\\\&quot;: \\\\\\&quot;Your reference for your commission\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item2.description\\\\\\&quot;: \\\\\\&quot;Your description for your commission\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item3.type\\\\\\&quot;: \\\\\\&quot;PaymentFee\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item3.account\\\\\\&quot;: \\\\\\&quot;BA00000000000000000000001\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item3.reference\\\\\\&quot;: \\\\\\&quot;Your reference for the fees\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item3.description\\\\\\&quot;: \\\\\\&quot;Your description for the fees\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item4.type\\\\\\&quot;: \\\\\\&quot;Surcharge\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item4.account\\\\\\&quot;: \\\\\\&quot;BA00000000000000000000001\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item4.reference\\\\\\&quot;: \\\\\\&quot;Your reference for the surcharge\\\\\\&quot;,\\\\n      \\\\\\&quot;split.item4.description\\\\\\&quot;: \\\\\\&quot;Your description for the surcharge\\\\\\&quot;,\\\\n      \\\\\\&quot;surchargeFee\\\\\\&quot;: \\\\\\&quot;6.00\\\\\\&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;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;Encode the JSON object to Base64.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;Base64 string&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;bash\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;ewogICAiYWRkaXRpb25hbERhdGEiOiB7CiAgICAgICJzcGxpdC5hcGkiOiAiMSIsCiAgICAgICJzcGxpdC5uck9mSXRlbXMiOiAiNCIsCiAgICAgICJzcGxpdC50b3RhbEFtb3VudCI6ICI2MjAwMCIsCiAgICAgICJzcGxpdC5jdXJyZW5jeUNvZGUiOiAiVVNEIiwKICAgICAgInNwbGl0Lml0ZW0xLmFtb3VudCI6ICI2MDAwMCIsCiAgICAgICJzcGxpdC5pdGVtMS50eXBlIjogIkJhbGFuY2VBY2NvdW50IiwKICAgICAgInNwbGl0Lml0ZW0xLmFjY291bnQiOiAiQkEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMSIsCiAgICAgICJzcGxpdC5pdGVtMS5yZWZlcmVuY2UiOiAiWW91ciByZWZlcmVuY2UgZm9yIHRoZSBzYWxlIiwKICAgICAgInNwbGl0Lml0ZW0xLmRlc2NyaXB0aW9uIjogIllvdXIgZGVzY3JpcHRpb24gZm9yIHRoZSBzYWxlIiwKICAgICAgInNwbGl0Lml0ZW0yLmFtb3VudCI6ICIyMDAwIiwKICAgICAgInNwbGl0Lml0ZW0yLnR5cGUiOiAiQ29tbWlzc2lvbiIsCiAgICAgICJzcGxpdC5pdGVtMi5yZWZlcmVuY2UiOiAiWW91ciByZWZlcmVuY2UgZm9yIHlvdXIgY29tbWlzc2lvbiIsCiAgICAgICJzcGxpdC5pdGVtMi5kZXNjcmlwdGlvbiI6ICJZb3VyIGRlc2NyaXB0aW9uIGZvciB5b3VyIGNvbW1pc3Npb24iLAogICAgICAic3BsaXQuaXRlbTMudHlwZSI6ICJQYXltZW50RmVlIiwKICAgICAgInNwbGl0Lml0ZW0zLmFjY291bnQiOiAiQkEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMSIsCiAgICAgICJzcGxpdC5pdGVtMy5yZWZlcmVuY2UiOiAiWW91ciByZWZlcmVuY2UgZm9yIHRoZSBmZWVzIiwKICAgICAgInNwbGl0Lml0ZW0zLmRlc2NyaXB0aW9uIjogIllvdXIgZGVzY3JpcHRpb24gZm9yIHRoZSBmZWVzIiwKICAgICAgInNwbGl0Lml0ZW00LnR5cGUiOiAiU3VyY2hhcmdlIiwKICAgICAgInNwbGl0Lml0ZW00LmFjY291bnQiOiAiQkEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMSIsCiAgICAgICJzcGxpdC5pdGVtNC5yZWZlcmVuY2UiOiAiWW91ciByZWZlcmVuY2UgZm9yIHRoZSBzdXJjaGFyZ2UiLAogICAgICAic3BsaXQuaXRlbTQuZGVzY3JpcHRpb24iOiAiWW91ciBkZXNjcmlwdGlvbiBmb3IgdGhlIHN1cmNoYXJnZSIsCiAgICAgICJzdXJjaGFyZ2VGZWUiOiAiNi4wMCIKICAgfQp9\\&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;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&quot;,&quot;altTitle&quot;:&quot;split-base64-format&quot;,&quot;oldTabId&quot;:&quot;split-base64-format_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<\/li>\n<li>\n<p>Make a <a href=\"\/pt\/point-of-sale\/design-your-integration\/terminal-api\">Terminal API<\/a> payment request, specifying:<\/p>\n<ul>\n<li>\n<p>The standard <a href=\"\/pt\/point-of-sale\/design-your-integration\/terminal-api#request-message-header\">\n  <code>SaleToPOIRequest.MessageHeader<\/code>\n<\/a> object, with <code>MessageClass<\/code> set to <span translate=\"no\"><strong>Service<\/strong><\/span> and <code>MessageCategory<\/code> set to <span translate=\"no\"><strong>Payment<\/strong><\/span>.<\/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;\"><code>ProtocolVersion<\/code><\/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;\"><strong>3.0<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>MessageClass<\/code><\/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;\"><span translate=\"no\"><strong>Service<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>MessageCategory<\/code><\/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;\"><span translate=\"no\"><strong>Payment<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>MessageType<\/code><\/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;\"><span translate=\"no\"><strong>Request<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>ServiceID<\/code><\/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;\">Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (<code>POIID<\/code>) being used.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>SaleID<\/code><\/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;\">Your unique ID for the POS system component to send this request from.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>POIID<\/code><\/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 ID of the terminal to send this request to. Format: <em>[device model]-[serial number]<\/em>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/terminal-api\/latest\/post\/payment\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">PaymentRequest<\/a> object with:<\/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;\"><code>SaleData.SaleTransactionID<\/code><\/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;\">An object with: <ul><li markdown=\"1\"><code>TransactionID<\/code>: Your reference to identify a payment. We recommend using a unique value per payment.<\/li> <li markdown=\"1\"><code>TimeStamp<\/code>: The date and time of the request in <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_8601#Coordinated_Universal_Time_(UTC)\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">UTC format<\/a>.<\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>SaleData.SaleToAcquirerData<\/code><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The formatted string specifying the surcharge.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>PaymentTransaction.AmountsReq<\/code><\/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;\">An object with: <ul><li markdown=\"1\"><code>Currency<\/code>: The transaction <a href=\"\/pt\/development-resources\/currency-codes\">currency<\/a>.<\/li><li markdown=\"1\"><code>RequestedAmount<\/code>: The transaction amount due for the goods or services, without surcharge, gratuity, or any other adjustment.<\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>PaymentData.CardAcquisitionReference<\/code><\/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;\">An object referring to the card acquisition: <ul><li markdown=\"1\"><code>TimeStamp<\/code>: The time stamp returned in the <code>POIData.POITransactionID<\/code> of the card acquisition response.<\/li> <li markdown=\"1\"><code>TransactionID<\/code>: The transaction ID returned in the <code>POIData.POITransactionID<\/code> of the card acquisition response.<\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Payment request with surcharge'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"SaleToPOIRequest\\\":{\\n      \\\"MessageHeader\\\":{\\n         \\\"ProtocolVersion\\\":\\\"3.0\\\",\\n         \\\"MessageClass\\\":\\\"Service\\\",\\n         \\\"MessageCategory\\\":\\\"Payment\\\",\\n         \\\"MessageType\\\":\\\"Request\\\",\\n         \\\"SaleID\\\":\\\"POSSystemID12345\\\",\\n         \\\"ServiceID\\\":\\\"0207111104\\\",\\n         \\\"POIID\\\":\\\"V400m-324688179\\\"\\n      },\\n      \\\"PaymentRequest\\\":{\\n         \\\"SaleData\\\":{\\n            \\\"SaleTransactionID\\\":{\\n               \\\"TransactionID\\\":\\\"27908\\\",\\n               \\\"TimeStamp\\\":\\\"2026-01-05T15:59:49.294Z\\\"\\n            },\\n            \\\"SaleToAcquirerData\\\":\\\"split.api=1&amp;split.nrOfItems=4&amp;split.totalAmount=62000&amp;split.currencyCode=USD&amp;split.item1.amount=60000&amp;split.item1.type=BalanceAccount&amp;split.item1.account=BA00000000000000000000001&amp;split.item1.reference=Your reference for the sale&amp;split.item1.description=Your description for the sale&amp;split.item2.amount=2000&amp;split.item2.type=Commission&amp;split.item2.reference=Your reference for your commission&amp;split.item2.description=Your description for your commission&amp;split.item3.type=PaymentFee&amp;split.item3.account=BA00000000000000000000001&amp;split.item3.reference=Your reference for the fees&amp;split.item3.description=Your description for the fees&amp;split.item4.type=Surcharge&amp;split.item4.account=BA00000000000000000000001&amp;split.item4.reference=Your reference for the surcharge&amp;split.item4.description=Your description for the surcharge&amp;surchargeFee=6.00\\\"\\n         },\\n         \\\"PaymentTransaction\\\":{\\n            \\\"AmountsReq\\\":{\\n               \\\"Currency\\\":\\\"USD\\\",\\n               \\\"RequestedAmount\\\":620.00\\n            }\\n         },\\n         \\\"PaymentData\\\":{\\n            \\\"CardAcquisitionReference\\\":{\\n               \\\"TimeStamp\\\":\\\"026-01-05T15:57:20.465Z\\\",\\n               \\\"TransactionID\\\":\\\"BV0q001767628639000\\\"\\n            }\\n         }\\n      }\\n   }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>In the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/terminal-api\/latest\/post\/payment#responses-200\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">PaymentResponse<\/a> note the following:<\/p>\n<ul>\n<li><code>POIData.POITransactionID.TransactionID<\/code>: The <a href=\"\/pt\/point-of-sale\/design-your-integration\/terminal-api#transaction-identifier\">transaction identifier<\/a> in the format <em>tenderReference.pspReference<\/em>. Use the PSP reference to keep track of the payment.<\/li>\n<li><code>PaymentResult.AmountsResp<\/code>:\n<ul>\n<li><code>TotalFeesAmount<\/code>: The surcharge amount.<\/li>\n<li><code>AuthorizedAmount<\/code>: The total authorized amount, consisting of the original amount plus the surcharge amount.<\/li>\n<\/ul><\/li>\n<li>\n<p><code>Response.AdditionalResponse<\/code>:<\/p>\n<ul>\n<li><code>posAuthAmountValue<\/code>: The total authorized amount in minor units, consisting of the original amount plus the surcharge amount.<\/li>\n<li>\n<p><code>surchargeAmount<\/code>: The surcharge amount in minor units.<\/p>\n<!-- list separator -->\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Payment response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"SaleToPOIResponse\\\": {\\n        \\\"MessageHeader\\\": {...},\\n        \\\"PaymentResponse\\\": {\\n            \\\"POIData\\\": {\\n                \\\"POIReconciliationID\\\": \\\"1000\\\",\\n                \\\"POITransactionID\\\": {\\n                    \\\"TimeStamp\\\": \\\"2026-01-06T11:27:24.575Z\\\",\\n                    \\\"TransactionID\\\": \\\"BV0q001767698805001.SWF7F9NR99LJCK75\\\"\\n                }\\n            },\\n            \\\"PaymentReceipt\\\": [...],\\n            \\\"PaymentResult\\\": {\\n                \\\"AmountsResp\\\": {\\n                    \\\"AuthorizedAmount\\\": 626,\\n                    \\\"Currency\\\": \\\"USD\\\",\\n                    \\\"TotalFeesAmount\\\": 6\\n                },\\n                ...\\n                \\\"PaymentInstrumentData\\\": {\\n                    \\\"CardData\\\": {\\n                        \\\"CardCountryCode\\\": \\\"840\\\",\\n                        \\\"EntryMode\\\": [\\n                            \\\"ICC\\\"\\n                        ],\\n                        \\\"MaskedPan\\\": \\\"600007 **** 7003\\\",\\n                        \\\"PaymentBrand\\\": \\\"mc\\\",\\n                        \\\"SensitiveCardData\\\": {\\n                            \\\"CardSeqNumb\\\": \\\"23\\\",\\n                            \\\"ExpiryDate\\\": \\\"0330\\\"\\n                        }\\n                    },\\n                    \\\"PaymentInstrumentType\\\": \\\"Card\\\"\\n                }\\n            },\\n            \\\"Response\\\": {\\n                \\\"AdditionalResponse\\\": \\\"...cardIssuerCountryId=840&amp;cardScheme=mc&amp;ccardType=mc&amp;fundingSource=CREDIT&amp;isCardCommercial=false&amp;issuerCountry=US&amp;paymentMethod=mc&amp;paymentMethodVariant=mccredit...&amp;posAuthAmountCurrency=USD&amp;posAuthAmountValue=62600&amp;posOriginalAmountValue=62000&amp;posadditionalamounts.originalAmountCurrency=USD&amp;posadditionalamounts.originalAmountValue=62000...shopperCountry=US...&amp;surchargeAmount=600...\\\",\\n                \\\"Result\\\": \\\"Success\\\"\\n            },\\n            \\\"SaleData\\\": {...}\\n            }\\n        }\\n    }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2>See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/development-resources\/surcharge-compliance\"\n                        target=\"_self\"\n                        >\n                    Surcharge compliance guide\n                <\/a><\/li><li><a href=\"\/platforms\/in-person-payments\/surcharge\/configuration\"\n                        target=\"_self\"\n                        >\n                    Configuration-based surcharge\n                <\/a><\/li><li><a href=\"\/point-of-sale\/card-acquisition\"\n                        target=\"_self\"\n                        >\n                    Card acquisition\n                <\/a><\/li><li><a href=\"\/point-of-sale\/automating-terminal-management\/configure-terminals-api\"\n                        target=\"_self\"\n                        >\n                    Use API calls to configure terminals\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/platforms\/in-person-payments\/surcharge\/dynamic","articleFields":{"description":"Provide the surcharge amount in your Terminal API request.","parameters":{"directoryPath":"\/platforms","ippPath":"\/platforms\/in-person-payments","model":"platform","channel":"pos"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/platforms\/in-person-payments\/surcharge\/dynamic","title":"Dynamic surcharge","content":"If you want to be in full control of surcharges, you can specify the surcharge amount in your in-person payment request. We refer to this as dynamic surcharge. To calculate the surcharge amount, you can use a third-party service or create your own calculation logic. If you accept ecommerce as well as point-of-sale payments, you can use the same calculation logic for both sales channels, taking into account all applicable compliance requirements.\nDepending on your use case, you can combine dynamic surcharge with configuration-based surcharge.\nRequirements\nIn addition to the general requirements for in-person payments with an Adyen for Platforms integration and the general surcharge requirements, take into account the following information.\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nDynamic surcharge is supported with a Terminal API integration with payment terminals on terminal software version 1.118 or later.\n\n\nAPI credentials\nTo configure showing the surcharge confirmation screen, you must have an API credential with an API key and the following roles: Management API\u2014Terminal settings read Management API\u2014Terminal settings read and write If you have a Terminal API integration with cloud-based communications, you can use the existing API key that you use for Terminal API requests.\n\n\nWebhooks\nIt is recommended to subscribe to Standard webhooks and enable receiving the surcharge amount in AUTHORISATION webhook messages.\n\n\nLimitations\nRequests to live Management API endpoints related to terminal settings are subject to rate limits.\n\n\nSetup steps\nBefore you start: Enable receiving the issuer country\/region in API responses and webhook messages. Ask our Support Team to enable single tap.\n\n\n\nHow it works\nTo use dynamic surcharge:\n\n\nDesign the customer experience. We recommend the following:\n\n\nTo inform customers about the changed amount after the surcharge is calculated, configure showing the surcharge confirmation screen. If you hide this screen, regulations require you to provide another form of surcharge disclosure.\n\n\nUse the single tap flow. This means that for contactless payments, customers do not need to tap again when they confirm they accept the surcharge. Contact our Support Team to enable single tap.\n\n\n\n\nTo get the details that are needed to calculate the surcharge amount, you make a card acquisition request. These details include, for example, the transaction amount and currency, card brand, funding source, and issuing country of the card.\nNote the following:\n\nIn Australia the surcharge compliance requirements are simple enough that you can consider skipping card acquisition.\n\nAlso note that Mobile solutions currently do not support card acquisition.\n\n\n\n\n\nOn the payment terminal, a payment screen appears and  your user's customer  taps, inserts, or swipes their card.\n\n\nWhen you receive the card acquisition response, you pass the details for the surcharge calculation to your own surcharge calculation logic or to the third-party surcharge calculation service.\n\n\nWhen you get the calculated surcharge amount from your own system or the third party, you make a payment request with the surcharge amount  and the split instructions  in the SaleToAcquirerData. The payment request must also refer to the card acquisition.\n\n\nThe surcharge confirmation screen appears. This enables  your user's customer  to accept the surcharge, or cancel the transaction.\n\nIn a Mobile solution or if you configured to skip this Adyen-provided confirmation screen, you must provide another form of disclosure.\n\n\n\nIf  your user's customer  accepts the surcharge, the payment is processed and the payment response shows the surcharge amount in the TotalFeesAmount field.\n\n\nShow the confirmation screen\nAdyen provides a surcharge confirmation screen that appears on the payment terminal to let the customer review and accept the surcharge, or cancel the transaction. You can configure this screen to be skipped. But if you do, you must provide another form of disclosure.\nTo configure showing or hiding the surcharge confirmation screen:\n\n\nOptionally, check the current setting for the surcharge confirmation screen by making a GET request to the \/terminalSettings endpoint for the  company account,  merchant account,  store or  terminal. Check the surcharge.askConfirmation parameter.\n\n\nMake a PATCH request to the \/terminalSettings endpoint for the  company account,  merchant account,  store or  terminal.\nIn the request body, specify a  surcharge object with the following parameter:\n\n\n\nParameter\nData&nbsp;type\nDescription\n\n\n\n\n askConfirmation\nBoolean\nIndicates whether to show (true) or hide (false) the surcharge confirmation screen on the payment terminal.\n\n\n\n\n\n\n\n\nNote that the response returns the setting for the surcharge confirmation screen as well as all other terminal settings at the level where you made the request.\n\n\n1. Make a card acquisition request\nTo calculate the surcharge amount, you need to know certain details. For example, if the customer is using a credit or debit card, and where the card was issued.\nWe recommend getting these details through a card acquisition request. The response provides the details of the card that the customer presents to the payment terminal.\n\n\nMake a Terminal API card acquisition request, specifying:\n\n\nThe standard \n  SaleToPOIRequest.MessageHeader\n object, with MessageClass set to Service and MessageCategory set to CardAcquisition.\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\nProtocolVersion\n\n3.0\n\n\nMessageClass\n\nService\n\n\nMessageCategory\n\nCardAcquisition\n\n\nMessageType\n\nRequest\n\n\nServiceID\n\nYour unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (POIID) being used.\n\n\nSaleID\n\nYour unique ID for the POS system component to send this request from.\n\n\nPOIID\n\nThe unique ID of the terminal to send this request to. Format: [device model]-[serial number].\n\n\n\n\n\n\n\nThe  CardAcquisitionRequest object with:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\nSaleData.SaleTransactionID\n\nAn object with: TransactionID: Your reference to identify a payment. We recommend using a unique value per payment. TimeStamp: The date and time of the request in UTC format.\n\n\nCardAcquisitionTransaction\n\nAn object with: TotalAmount: The amount due for the goods or services that the customer wants to purchase.\n\n\n\n\n\nThe examples show a card acquisition when the customer wants to purchase USD&nbsp;620.00 worth of goods or services.\n\n\n\nWhen the card acquisition succeeds, the response contains a message of  CARD_ACQ_COMPLETED in the AdditionalResponse.\n\n\n\n\n\nFrom the  CardAcquisitionResponse, get the details that are needed for the surcharge calculation. Also get the POITransactionID details, which you will need to specify later in your payment request.\n\n\n\nParameter\nUsage\n\n\n\n\nPOIData.POITransactionID\nKeep the TimeStamp and TransactionID, because you need these card acquisition details in your payment request.\n\n\nPaymentInstrumentData.CardData\nIncludes details you may need for the surcharge calculation: CardCountryCode: The three-digit code of the issuer country\/region. PaymentBrand: The type of payment card. \n\n\nResponse.AdditionalResponse\nIncludes details you may need for the surcharge calculation.\n\n\n\nAs an example, the AdditionalResponse from the CardAcquisitionResponse above includes the following details that can be useful for the surcharge calculation:\n\n\n\nParameter + value\nDescription\n\n\n\n\ncardIssuerCountryId=840\nThe three-digit code of the issuer country\/region.\n\n\ncardScheme=mc\nThe card scheme.\n\n\ncardType=mc\nThe card type.\n\n\nfundingSource=CREDIT\nThe funding source used for the transaction, such as a credit, debit, prepaid, or charge card. In other words: where the customer's money comes from.\n\n\nisCardCommercial=false\nIndicates if this is a commercial card or a consumer card. When true, it is a commercial card. When false, it is a consumer card.\n\n\nissuerCountry=US\nThe two-letter code of the issuer country\/region.\n\n\npaymentMethod=mc\nThe payment method on the brand or scheme level.\n\n\npaymentMethodVariant=mccredit\nThe payment method on the product level.\n\n\nposAuthAmountCurrency=USD\nThe three-letter code of the transaction currency.\n\n\nposAuthAmountValue=62000\nThe transaction amount in minor units.\n\n\nposOriginalAmountValue=62000\nThe transaction amount before surcharge, gratuity, adjustments, and such (if any).\n\n\nshopperCountry=US\nThe two-letter code of the customer's country\/region.\n\n\n\n\nIf the AdditionalResponse doesn't include the expected details, check if you enabled receiving those details. Refer to Receive identifiers.\n\n\n\nPass the relevant details to your own surcharge calculation system or to your third-party surcharge calculation service.\n\n\n2. Add a surcharge and book it to your user\nWhen you have received the calculated surcharge amount from your own system or the third-party surcharge calculation service, make a Terminal API payment request with the following information in the SaleToAcquirerData:\n\nThe surcharge amount, specified using the surchargeFee field.\nSplit instructions for the payment, including how to split the surcharge.\n\n\n\nWhen you gather the split instructions for the payment, add a split item for the surcharge, and add the calculated surcharge fee.\n\n\nIncrease the split.nrOfItems by one, to accommodate the surcharge split item you are adding.\n\n\nIn the split item for the surcharge, specify:\n\n\n\nKey\nDescription\n\n\n\n\nsplit.item[ITEM_NUMBER].type\nThe type of split. Set this to Surcharge.\n\n\nsplit.item[ITEM_NUMBER].account\nThe account that will receive the surcharge. This is the balanceAccountID of one of your user's balance accounts.You cannot split the surcharge between multiple balance accounts.\n\n\nsplit.item[ITEM_NUMBER].reference\nYour reference for the surcharge, reflected in the Balance Platform Accounting Report.\n\n\nsplit.item[ITEM_NUMBER].description\nYour description of the surcharge, reflected in the Balance Platform Accounting Report.\n\n\n\n\n\nAdd a surchargeFee parameter with the calculated surcharge amount as the value. Note that this parameter is not a split parameter, and that you must not use minor units for the surcharge amount.\n\n\n\n\nFormat the split data and surcharge amount in one of the following ways:\n\nOption 1: as a string of form-encoded key-value pairs (using &amp; as a separator).\nOption 2: as a JSON object converted to a Base64-encoded string.\n\nAs an example, we use a payment of USD&nbsp;626.00 that is split into:\n\nUSD 600.00 to be booked to your user's first balance account as the sale amount.\nUSD 20.00 to be booked to your liable account as your platform's commission.\nThe payment fee to be booked to your user's first balance account. This will be deducted from the sale amount.\nUSD 6.00 to be booked to your user's first balance account as the surcharge.\n\nThe split.nrOfItems is 4 and the split.totalAmount is 62000 because the amounts for the payment fee and the surcharge should not be added to the original amount.\n\n\n    \n        \n        \n    \n\n\n\n\nMake a Terminal API payment request, specifying:\n\n\nThe standard \n  SaleToPOIRequest.MessageHeader\n object, with MessageClass set to Service and MessageCategory set to Payment.\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\nProtocolVersion\n\n3.0\n\n\nMessageClass\n\nService\n\n\nMessageCategory\n\nPayment\n\n\nMessageType\n\nRequest\n\n\nServiceID\n\nYour unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (POIID) being used.\n\n\nSaleID\n\nYour unique ID for the POS system component to send this request from.\n\n\nPOIID\n\nThe unique ID of the terminal to send this request to. Format: [device model]-[serial number].\n\n\n\n\n\n\n\nThe  PaymentRequest object with:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\nSaleData.SaleTransactionID\n\nAn object with: TransactionID: Your reference to identify a payment. We recommend using a unique value per payment. TimeStamp: The date and time of the request in UTC format.\n\n\nSaleData.SaleToAcquirerData\n\nThe formatted string specifying the surcharge.\n\n\nPaymentTransaction.AmountsReq\n\nAn object with: Currency: The transaction currency.RequestedAmount: The transaction amount due for the goods or services, without surcharge, gratuity, or any other adjustment.\n\n\nPaymentData.CardAcquisitionReference\n\nAn object referring to the card acquisition: TimeStamp: The time stamp returned in the POIData.POITransactionID of the card acquisition response. TransactionID: The transaction ID returned in the POIData.POITransactionID of the card acquisition response.\n\n\n\n\n\n\n\n\n\n\nIn the  PaymentResponse note the following:\n\nPOIData.POITransactionID.TransactionID: The transaction identifier in the format tenderReference.pspReference. Use the PSP reference to keep track of the payment.\nPaymentResult.AmountsResp:\n\nTotalFeesAmount: The surcharge amount.\nAuthorizedAmount: The total authorized amount, consisting of the original amount plus the surcharge amount.\n\n\nResponse.AdditionalResponse:\n\nposAuthAmountValue: The total authorized amount in minor units, consisting of the original amount plus the surcharge amount.\n\nsurchargeAmount: The surcharge amount in minor units.\n\n\n\n\n\n\n\n\n\n\nSee also\n\n\n                    Surcharge compliance guide\n                \n                    Configuration-based surcharge\n                \n                    Card acquisition\n                \n                    Use API calls to configure terminals\n                \n","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Platforms","lvl2":"Process in-person payments","lvl3":"Surcharge","lvl4":"Dynamic surcharge"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/platforms","lvl2":"https:\/\/docs.adyen.com\/pt\/platforms\/in-person-payments","lvl3":"https:\/\/docs.adyen.com\/pt\/platforms\/in-person-payments\/surcharge","lvl4":"\/pt\/platforms\/in-person-payments\/surcharge\/dynamic"},"levels":5,"category":"Platforms","category_color":"green","tags":["Dynamic","surcharge"]}}
