Last Updated: 22 July 2024 | Change Log

Markup FX API

Multi-Currency Pricing customers only

Add a markup to your FX rate


Get Started

Start using our FX API by setting your headers.

Authorization: {your_credentials}
Accept: application/vnd.worldpay.foreignexchange-v1+json

Request

PUT https://access.worldpay.com/foreignExchange/markup/

Request body

{
    "SourceCurrency": "USD",
    "TargetCurrency": "EUR",
    "Markup": 0.38800000
}

Parameters

Field nameDescriptionData type/FormatM/O/CMin-Max lengthValidation criteria
entityMCP Account Identifier (PartyID- Merchant Company ID, Unique ID given to you during the onboarding process.) for which rates should be retrieved.ANM6Must be six characters.
SourceCurrencyThe transaction currency code. If not supplied, the response contains rates for all source currencies against the target currency.ISO 4217

Valid currency codes.
O0-3Must be upper case.
TargetCurrencyYour funding (settlement) currency code. If not supplied, the response contains rates for all target currencies against the source currency.ISO 4217

Valid currency codes.
O0-3Must be upper case.
MarkupThe additional margin percentage set up on FX rates.NMThe value must be in decimal format

Response

Successful response

You receive an HTTP response code 200 for a successful request.

Error response example

{
    "errorName": "notFound",
    "message": "Not found"
}

Error response codes

ErrorMessageScenario
unauthorizedRequestThe request is unauthorizedUnauthorized request. Your credentials are incorrect.
forbiddenForbiddenNo permission to access.
urlContainsInvalidValueThe URL contains a value or values that are invalidQuery string parameters are invalid.
fieldHasInvalidValueInvalid SourceCurrency valueYou've used and invalid currency code.
fieldHasInvalidValueInvalid TargetCurrency valueYou've used and invalid currency code.
fieldIsMissingMissing Markup valueMarkup field is missing.
notFoundNot foundentity, sourceCurrency or targetCurrency is not found.
internalErrorOccurredSomething went wrongInternal error. Please speak to your Implementation Manager for further information.

Retrieve the markup applied on entity

Request

GET https://access.worldpay.com/foreignExchange/markup/

Example query string

GET https://access.worldpay.com/foreignExchange/markup/foreignExchange/markup/PO4043058348?sourceCurrency=USD&targetCurrency=EUR

Parameters

Field NameDescriptionData Type/FormatMin-Max LengthValidation Criteria
entityMCP Account Identifier (PartyID- Merchant Company ID, Unique ID given to you during the onboarding process.) for which rates should be retrieved.String0-30
sourceCurrencyThe transaction currency code. If not supplied, the response contains rates for all source currencies against the target currency.ISO 4217

Valid currency codes.
0-3Must be upper case.
targetCurrencyYour funding (settlement) currency code. If not supplied, the response contains rates for all target currencies against the source currency.ISO 4217

Valid currency codes.
0-3Must be upper case.

Response

Successful response example

{
        "sourceCurrency": "USD",
        "targetCurrency": "EUR",
        "paymentMethod": "ENDCONSUMERRATES",
        "entity": "PO4043058348",
        "value": 0.38800000
    }

Successful response fields

Field NameDescriptionData Type/Format
sourceCurrencyThe debit currency.ISO 4217

Valid currency codes.
targetCurrencyThe credit currency.ISO 4217

Valid currency codes.
entityMCP Account Identifier (PartyID- Merchant Company ID, Unique ID given to you during the onboarding process.) for which rates should be retrieved.AN
ValueMarkup value setupN

Error response example

{
    "errorName": "notFound",
    "message": "Not found"
}

Error response codes

ErrorMessageScenario
unauthorizedRequestThe request is unauthorizedUnauthorized request. Your credentials are incorrect.
forbiddenForbiddenNo permission to access.
urlContainsInvalidValueThe URL contains a value or values that are invalidQuery string parameters are invalid.
InvalidSourceCurrency valueInvalid SourceCurrency valueYou've used and invalid currency code.
InvalidTargetCurrency valueInvalid TargetCurrency valueYou've used and invalid currency code.
notFoundNot foundentity, sourceCurrency or targetCurrency is not found.
internalErrorOccurredSomething went wrongInternal error. Please speak to your Implementation Manager for further information.

Next steps


Get FX MCP Rates