v1/FX/CreateConversion

 

API parameters
Required

 

Name In Type Description
Bearer Token Authorization string Authentication token.
QuoteId Json Data string ID of Quote to be used as the basis for the Conversion.

 

Optional

 

Name In Type Description
CustomerId Parameter string CustomerId.

 

Request

 

{
     "QuoteId": "4C5671FD-D4A9-488D-B67A"    
                                    
}

 

Response

 

{
     "ConversionId": "517A3607-1A11-4F5E-BCAA",
     "SellCurrency": "GBP",
     "BuyCurrency": "EUR",
     "SellAmount": "1000.000000",
     "BuyAmount": "1234.994000",
     "ClientRate": "1.234994",
     "CreatedDate": "12-08-2020 11:38",
     "ValueDate": "12-08-2020",
     "Status": "Closed"
}

 

Error Codes

 

HTTP Status Code Description
401 Invalid credentials Invalid credentials
102 Invalid currency Currency should we ISO format
400 Invalid JSON body Invalid JSON body
400 Quoteid required Quoteid required
404 Invalid Quoteid Invalid Quoteid
404 Quote has been expired Quote has been expired
404 Quote already used Quote already used
404 Amount should be greater or equal to 5 (sell currency) Amount should be greater or equal to 5 (sell currency)
404 your FX trading limit is 250000 (please contact your relationship manager request to increase) your FX trading limit is 250000 (please contact your relationship manager request to increase)
404 Amount should be less then or equal to account balance Amount should be less then or equal to account balance
404 Amount should be less then or equal to trading limit Amount should be less then or equal to trading limit
404 Invalid customerid Invalid customerid