Retrieve an FX rate for a particular payment method.
Security
basicAuth
For Multi-Currency Pricing customers, the entity is an MCP Account Identifier (PartyID- Merchant Company ID, Unique ID given to you during the onboarding process.) for which rates should be retrieved.
For Account Payout customers, the entity is a six-digit reference given to you by your Worldpay Implementation Manager during the onboarding process.
Example:entity=100001
- Test (Try) - Account Payouts customers onlyhttps://try.access.worldpay.com/foreignExchange/rates
- Livehttps://access.worldpay.com/foreignExchange/rates
curl -i -X GET \
-u '<username>:<password>' \
'https://try.access.worldpay.com/foreignExchange/rates?intent=PAYOUT&entity=100001&sourceCurrency=USD&targetCurrency=EUR' \
-H 'Accept: application/vnd.worldpay.foreignexchange-v1+json' \
-H 'WP-CorrelationId: 15cd16b2-7b82-41cb-9b11-21be9dacad88'Response
{ "rates": [ { "rateId": "R12345678", "intent": "PAYOUT", "sourceCurrency": "EUR", "targetCurrency": "GBP", "bidRate": 1.23456789, "askRate": 1.23456789, "entity": 100001, "issuedDate": "2025-01-01T12:00:00.000Z", "validFrom": "2025-01-10T12:00:00.000Z", "validTo": "2025-01-10T12:00:00.000Z" } ] }