v1/FX/Quote

 

API parameters
Required

 

Name In Type Description
Bearer Token Authorization string Authentication token.
SellCurrency Json Data string Three letter Currency Code you want to sell.
BuyCurrency Json Data string Three letter Currency Code you want to buy.
Amount Json Data Decimal Amount you want to exchange.
FixedSide Json Data string Which side of the payment you want to fix.

 

Optional

 

Name In Type Description
CustomerId Parameter string CustomerId.

 

Request

 

{
     "SellCurrency": "GBP",    
     "BuyCurrency": "EUR",
     "Amount": "1000",
     "FixedSide": "SELL"
}

 

Response

 

{
     "QuoteId": "4C5671FD-D4A9-488D-B67A",
     "SellCurrency": "GBP",
     "BuyCurrency": "EUR",
     "Amount": "1000",
     "FixedSide": "SELL",
     "QuoteRate": "1.234994",
     "ExpiryDate": "12-08-2020 11:38:30"
     "ValueDate": "12-08-2020"
}

 

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 Sell currency required Sell currency required
400 Buy currency required Buy currency required
404 Invalid sell currency Invalid sell currency
404 Invalid buy currency Invalid buy currency
400 Amount required Amount required
404 Amount should be greater then Zero Amount should be greater then Zero
404 Amount should be in numeric only Amount should be in numeric only
400 Fixed side required Fixed side required
404 Invalid fixed side Invalid fixed side
404 Invalid customerid Invalid customerid