This is an API reference for the DCC (Dynamic Currency Conversion) rate service.
DCC rate service API (1.0.0)
Bodyapplication/jsonrequired
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 security level of the transaction.
Details about the transaction method.
Details about the point of interaction. This object is optional for Ecom transactions.
Currency code in ISO 4217 format.
Example: "USD"
The transaction amount in the local currency.
Example: 100
- Production environmenthttps://api-services.pxp.io/api/v1/dcc/rate
- Sandbox environmenthttps://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-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"
}
}'Response
application/json
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" } }