Lock FX Exchange Rate (GQL)

Note: All the Multi-Currency API's have the endpoint: /graphql

Secures a specific exchange rate for a limited duration to facilitate a buy or sell transaction.

Upon success, it returns an fxLockId and an expiration timestamp (fxLockExpiryAt). This ID can be provided during the execution phase to ensure the transaction uses the locked rate, protecting the user from rate fluctuations during the flow.

Body Params

Following are the details on the GraphQL fields :

ParameterDescriptionMandatoryData TypeExample
accountIdMulti Currency Wrapper Account IdYesInteger1
actionCan be BUY or SELLYesStringBUY
amountAmount to be convertedYesString10
currencyTarget foreign currency codeYesStringEUR
Headers
string
required
Defaults to z01j3e71zd6zkq908vyf5861a8

The ID of your banking instance visible in the MBANQ Console.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json