Last Updated: 22 July 2024 | Change Log

Foreign Exchange (FX)

Our FX API allows you to:

  • retrieve an FX rate pairing
  • create an FX quote
  • retrieve an FX quote
  • add a markup to an FX rate
  • lock future FX rates

Capabilities

FX rates

Retrieve an FX rate for a particular payment method. In one call, our FX Rates API allows you to retrieve:

  • a single currency pairing (e.g GBP to EUR)
  • one currency against all currencies you are entitled to (e.g. GBP to EUR, GBP to USD, GBP to CAD, etc.)
  • all currencies against all other currencies you are entitled to

FX quotes

Forward FX rates

Set your headers

Setting your headers is an important part of an API request. The headers represent the meta-data associated with your API request.

Authorization: {your_credentials}
Accept: application/vnd.worldpay.foreignexchange-v1+json
Content-Type: application/vnd.worldpay.foreignexchange-v1+json
HeaderDescription
AuthorizationWe use the Authorization header to identify and authenticate you within Access Worldpay. You must use the Authorization header for any request you send, unless you are using client certificate authentication over TLS. If you must use this, read our reference guide on Authenticating with SSL/TLS.
Content-TypeWe require the Content-Type header if the request you're sending includes a request body, and if the HTTP method is a POST or a PUT.
AcceptWe use the Accept header to identify which version of the resource you are using. You must use the Accept header if the HTTP method is a GET.

If you're using both the Content-Type and Accept headers, they must match.

Note

Replace {your_credentials} with your base64-encoded Basic Auth username and password. To get your Access Worldpay credentials contact your Implementation Manager.

DNS Whitelisting

Whitelist the following URLs:

  • https://try.access.worldpay.com/
  • https://access.worldpay.com/

Please ensure you use DNS whitelisting not explicit IP whitelisting.

Note

When you make a request within Access Worldpay, you should always cache the response returned.

Next Steps


Account Payout customers:

Multi-Currency Pricing customers: