Add details about a Dynamic Currency Conversion (DCC) rate to your request.
To include DCC data, add the following snippet to the body of your transaction request.
{
"dccData": {
"rateSelectedIndicator": "Selected",
"amounts": {
"local": {
"transaction": 2.50,
"currencyCode": "GBP"
},
"cardholder": {
"transaction": 2.90,
"currencyCode": "EUR"
}
},
"exchangeRate": 1.193665,
"providerData": {
"provider": "Elavon",
"referenceId": "25092610071199",
"terminalId": "210011226201"
},
"markupRate": 3.92,
"disclaimer": "This is an example disclaimer"
}
}| Parameter | Description |
|---|---|
dccDataobject | Details about the Dynamic Currency Conversion (DCC). |
dccData.rateSelectedIndicatorstring (enum) required | Whether a DCC rate was selected for the transaction. Possible values:
NotAvailable |
dccData.amountsobject required | Details about the transaction amount in the local currency and the cardholder's currency. |
dccData.amounts.localstring required | Details about the transaction amount in the local currency. |
dccData.amounts.local.transactionnumber required | The transaction amount in the local currency. |
dccData.amounts.local.currencyCodestring required | The currency code in ISO 4217 format. |
dccData.amounts.cardholderobject required | Details about the transaction amount in the cardholder's currency. |
dccData.amounts.cardholder.transactionnumber required | The transaction amount in the cardholder's currency. |
dccData.amounts.cardholder.currencyCodestring required | The currency code in ISO 4217 format. |
dccData.exchangeRatenumber required | The exchange rate used for the DCC. |
dccData.providerDataobject required | Details about the DCC provider. |
dccData.providerData.providerstring required | The name of the DCC provider. |
dccData.providerData.referenceIdstring required | The reference ID provided by the DCC provider. This is required if your provider is Elavon, otherwise it's ignored. |
dccData.providerData.merchantIdstring required | The merchant ID assigned by the DCC provider. This is required if your provider is Elavon, otherwise it's ignored. |
dccData.providerData.terminalIdstring required | The terminal ID assigned by the DCC provider. This is required if your provider is Elavon, otherwise it's ignored. |
dccData.providerData.markupTextIndicatorinteger required | The mark-up text indicator for the DCC provider. |
dccData.markupRatenumber or null | The mark-up rate. |
dccData.disclaimerstring or null | The disclaimer text. |
If your request is successful, you'll receive a 200 response containing a dccResult object.
{
"dccResult": {
"rateSelectedIndicator": "Selected",
"amounts": {
"local": {
"transaction": 100.00,
"currencyCode": "USD"
},
"cardHolder": {
"transaction": 85.50,
"currencyCode": "EUR"
}
},
"markUpRate": {
"message": "A 3.5% markup has been applied over the base exchange rate.",
"percentage": 3.5,
"language": "en"
},
"commissionPercent": 2.1,
"exchangeRate": {
"rate": 1.44,
"source": "European Central Bank",
"sourceDate": "2020-04-02T14:29:15.8626809+01:00"
},
"providerData": {
"name": "Elavon Merchant Services",
"referenceId": "3213123213",
"terminalId": "TID67777",
},
"dccDisclosure": {
"message": "You are offered to pay in EUR. This includes a 3.5% commission above the base rate of 0.9245 provided by Elavon.",
"language": "en"
}
}
}| Parameter | Description |
|---|---|
dccResultobject | Details about the DCC result, including the rate selected indicator, amounts, mark-up rate, commission percentage, exchange rate, provider data, and DCC disclosure. |
dccResult.rateSelectedIndicatorstring (enum) | The selected rate for the DCC transaction. Possible values:
|
dccData.amounts.localstring required | Details about the transaction amount in the local currency. |
dccData.amounts.local.transactionnumber required | The transaction amount in the local currency. |
dccData.amounts.local.currencyCodestring required | The currency code, in ISO 4217 format. |
dccData.amounts.cardholderobject required | Details about the transaction amount in the cardholder's currency. |
dccData.amounts.cardholder.transactionnumber required | The transaction amount in the cardholder's currency. |
dccData.amounts.cardholder.currencyCodestring required | The currency code, in ISO 4217 format. |
dccResult.markUpRateobject | Details about the mark-up rate for the DCC transaction. |
dccResult.markUpRate.messagestring (≤ 255 characters) | The message about the mark-up rate for the DCC transaction. |
dccResult.markUpRate.percentagenumber | The percentage of the mark-up rate for the DCC transaction. |
dccResult.markUpRate.languagestring (≤ 2 characters) | The language of the message. |
dccResult.commissionPercentnumber | The commission percentage for the DCC transaction. |
dccResult.exchangeRateobject | Details about the exchange rate for the DCC transaction. |
dccResult.exchangeRate.ratenumber | The rate of the exchange rate for the DCC transaction. |
dccResult.exchangeRate.sourcestring (≤ 100 characters) | The source of the exchange rate for the DCC transaction. |
dccResult.exchangeRate.sourceDatestring (≤ 50 characters) | The date of the exchange rate for the DCC transaction. |
dccResult.providerobject | Details about the DCC provider. |
dccResult.providerData.namestring (≤ 100 characters) | The name of the DCC provider. |
dccResult.providerData.referenceIdstring (≤ 80 characters) | The reference ID provided by the DCC provider. |
dccResult.providerData.terminalIdstring (≤ 30 characters) | The terminal ID assigned by the DCC provider. |
dccResult.dccDisclosureobject | Details about the DCC disclosure. |
dccResult.dccDisclosure.messagestring (≤ 255 characters) | The message of the DCC disclosure for the DCC transaction. |
dccResult.dccDisclosure.languagestring (2 characters) | The language of the message. |