Retrieve the Dynamic Currency Conversion (DCC) rate for a transaction from various providers.
Your unique merchant identifier, as assigned by PXP.
Example:"MERCHANT-1"
Your unique site identifier, as assigned by PXP.
Example:"SITE-1"
The exchange rate provider to use for the DCC rate calculation.
Enum:"Elavon""Fexco"
Example:"Elavon"
Details about the point of interaction. This object is optional for Ecom transactions.
- Production environmenthttps://api-services.pxp.io/api/v1/dcc/rate
- Sandbox environmenthttps://api-services.test.pxp.io/api/v1/dcc/rate
- Elavon
- Fexco
curl -i -X POST \
https://api-services.pxp.io/api/v1/dcc/rate \
-H 'Content-Type: application/json' \
-d '{
"merchant": "MERCHANT-001",
"site": "SITE-001",
"exchangeRateProvider": "Elavon",
"securityLevel": {
"primaryAccountNumber": "{primaryAccountNumber}"
},
"transactionMethod": {
"entryMode": "Instore",
"intent": "Authorisation"
},
"pointOfInteraction": {
"entryType": "ChipAndPin",
"merchantPointOfSaleId": "POS-001"
},
"amounts": {
"localTransaction": 100,
"localCurrencyCode": "USD",
"cardHolderCurrencyCode": "EUR"
}
}'Success
The state of the DCC rate request.
Enum:"Available""NotAvailable""CardEligible""CardNotEligible""Error"
Response
- ElavonProviderResponse
- FexcoProviderResponse
- Elavon
- Fexco
- Not available
Example response from Elavon provider
{ "state": "Available", "amounts": { "local": { … }, "cardholder": { … } }, "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" } }