DCC rate API
Get a Dynamic Currency Conversion (DCC) rate for a transaction.
Get a DCC rate
Request examples
Use the following requests to get a DCC rate for a transaction.
{
"merchant": "MERCHANT-001",
"site": "SITE-001",
"exchangeRateProvider": "Elavon",
"cardholderCurrencyCode": "EUR",
"securityLevel": {
"encryptedPayload": "[encryptedPayload]"
},
"transactionMethod": {
"entryMode": "Instore",
"intent": "Authorisation"
},
"pointOfInteraction": {
"entryType": "ChipAndPin",
"merchantPointOfSaleId": "POS-001"
},
"amounts": {
"localCurrencyCode": "USD",
"localTransaction": 100
}
}
Parameter | Description |
---|---|
| Your unique merchant identifier, as assigned by PXP. |
| Your unique site identifier, as assigned by PXP. |
| The exchange rate provider to use for the DCC rate calculation.
|
| The cardholder's currency code, in ISO 4217 format. |
| Details about the security level of the transaction. This object contains either an encrypted payload for P2PE or primary account number for non-P2PE. |
| The encrypted payload, required for P2PE transactions. |
| Details about the transaction method. |
| The entry mode of the transaction.
|
| The intent of the transaction.
|
| Details about the point of interaction. This object is optional for |
| The type of entry used to capture the card details.
|
| The unique identifier for the merchant point of sale. |
| Details about the transaction amount. |
| The local currency code, in ISO 4217 format. |
| The transaction amount in the local currency. |
Response examples
If your request is successful, you'll receive a 200
response.
{
"state": "Available",
"amounts": {
"local": {
"transaction": 100,
"currencyCode": "USD"
},
"cardholder": {
"transaction": 85.5,
"currencyCode": "EUR"
}
},
"exchangeRate": {
"rate": 0.855,
"exponent": 3,
"markUpPercentage": 3.5,
"commissionRate": 0.025,
"margin": 2.1
},
"messaging": {
"markUpMessage": "Competitive exchange rate with 3.5% markup",
"disclaimer": "Exchange rate includes markup and may vary"
},
"providerResponse": {
"provider": "Elavon",
"referenceId": "REF123456789",
"terminalId": "TERM001"
}
}
{
"state": "Available",
"amounts": {
"local": {
"transaction": 100,
"currencyCode": "USD"
},
"cardholder": {
"transaction": 84.75,
"currencyCode": "EUR"
}
},
"exchangeRate": {
"rate": 0.8475,
"exponent": 4,
"markUpPercentage": 4,
"commissionRate": 0.03,
"margin": 2.5
},
"messaging": {
"markUpMessage": "GlobalBlue exchange rate with 4.0% markup",
"disclaimer": "Rate provided by GlobalBlue and subject to change"
},
"providerResponse": {
"provider": "GlobalBlue",
"merchantId": "GB987654321",
"terminalId": "TERM001",
"acquirerId": "AQ3333"
}
}
{
"state": "Available",
"amounts": {
"local": {
"transaction": 100,
"currencyCode": "USD"
},
"cardholder": {
"transaction": 86.2,
"currencyCode": "EUR"
}
},
"exchangeRate": {
"rate": 0.862,
"exponent": 3,
"markUpPercentage": 3.2,
"commissionRate": 0.022,
"margin": 1.8
},
"messaging": {
"markUpMessage": "Fexco competitive rate with 3.2% markup",
"disclaimer": "Fexco rate subject to market conditions"
},
"providerResponse": {
"provider": "Fexco",
"merchantId": "FX987654321",
"acquirerId": "AQ3333"
}
}
{
"state": "NotAvailable",
"amounts": {
"local": {
"transaction": 100,
"currencyCode": "USD"
},
"cardholder": {
"transaction": 0,
"currencyCode": "EUR"
}
},
"exchangeRate": {
"rate": 0,
"exponent": 0,
"markUpPercentage": 0,
"commissionRate": 0,
"margin": 0
},
"messaging": {
"markUpMessage": "",
"disclaimer": "DCC service not available for this transaction"
},
"providerResponse": {
"provider": "Elavon",
"referenceId": "",
"merchantId": "",
"terminalId": ""
}
}
Updated 6 days ago