https://select.WM.com/wcc/info?op=rates&instId=<inst Id>&infoPW=<password>Hence, if your installation ID is 1234 and your info password is "abcd", the URL is:
https://select.WM.com/wcc/info?op=rates&instId=1234&infoPW=abcdThe infoPW is set up via the Web-Merchant/WM Administration Server (WAS) and is initially left blank. Hence you can omit the infoPW parameter if you have not specified a password via WAS.
You can specify different values for "op" to obtain different exchange rates files as follows:
op=rates
or op=rates-latest
op=rates-today
op=rates-tomorrow
#Exchange rates for installation 1234 #Fri Oct 01 15:53:51 GMT 1999 DEM_CHF=0.8293301380534893 DEM_NLG=1.1267390120015601 DEM_DEM=1.0 DEM_CAD=0.7811273640705966 rateDateString=1999-10-01 DEM_BEF=20.625463396943164 rateDateMillis=938736000000 allRatesCurrent=true DEM_FRF=3.353854814359919 DEM_GBP=0.3364112383046616This is a standard Java properties file format. The lines prefixed by # are comments and are always present at the top of the file. The date in the comment at the head of the file is the date and time of generation of this file.
All other lines are of the form:
<property name>=<value>The property names for the exchange rates are given as:
<source ISO code>_<destination ISO code>For example:
DEM_GBP=0.3364112383046616means that to convert from Deutschmark to Pounds Sterling you must multiply by the given number. Rates are given for converting from all your settlement currencies to all your acquisition currencies.
Note that the property name=value lines are generated in a random order so you cannot rely on any particular ordering of the items.
The property "rateDateMillis" is the date and time from which the rates are valid (always a midnight GMT), expressed as milliseconds since the start of 1970. This is the standard system date in Java. "rateDateString" expresses this date as "yyyy-mm-dd". The rates are valid for 24 hours (i.e. until the next midnight GMT).
The property "allRatesCurrent" is set to true if the rates are all for the date requested. If some rates are from a previous day then it is set to false. This only happens if you request op=rates or op=rates-latest.
If a rates file cannot be generated then the content-type returned is text/html and starts with the string "Error:". Hence you can check for an error either by testing the content type or parsing the first line of the content. The rest of the content for an error is a human-readable description of the problem.
$Revision: 1.9 $