This is an API reference for the DCC (Dynamic Currency Conversion) rate service.
DCC rate service API (1.0.0)
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.
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.
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, for P2PE transactions.
Details about the transaction method.
Details about the point of interaction. This object is optional for Ecom
transactions.
- Production environment
https://api-services.pxp.io/api/v1/dcc/rate
- Sandbox environment
https://api-services.test.pxp.io/api/v1/dcc/rate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-services.pxp.io/api/v1/dcc/rate \
-H 'Content-Type: application/json' \
-d '{
"merchant": "MERCHANT-1",
"site": "SITE-1",
"exchangeRateProvider": "Elavon",
"cardholderCurrencyCode": "EUR",
"securityLevel": {
"encryptedPayload": "48BCFZFUklGT05F348CBFA0MDDfjwMLMjc1LTA0MC0zNzHfjwYBAN+PBwQbTVL4348ECv//AAAQACXgAA/fjwUIPmP5MQz/poffjwhoreYH9Y6M47xapI7MALlOG7zWO97lD7rVPK5pUVdHUotneMaiaBwE/2EMliZV3ZIiWPi4Xaa3A3wcnEFjAT9SqwwEEVI6XmDQXAbplogQzMQsOsDFmIGXaTPb9sVdTumSsyFAmZwRE="
},
"transactionMethod": {
"entryMode": "Instore",
"intent": "Authorisation"
},
"pointOfInteraction": {
"entryType": "ChipAndPin",
"merchantPointOfSaleId": "POS-1"
},
"amounts": {
"localTransaction": 100,
"localCurrencyCode": "USD"
}
}'
Success
The state of the DCC rate request.
Details about the amounts.
Currency code in ISO 4217 format.
The transaction amount in the local currency.
Currency code in ISO 4217 format.
Details about the exchange rate.
Details about the messaging of the DCC rate request.
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", "merchantId": "MERCH-001", "terminalId": "TERM-001" } }