Before the White Label can use the CMS API, a service user must be created. In order to start the process, the White Label must;
- Decide where, in the Account Structure, the service user should be placed
- Fill in CMS API REQUEST form and have it signed by Authorized signatures.
- Send the completed form to ServiceCenter@saxobank.com.
Saxo Bank will then configure the service user on the appropriate level and return with;
- Username of the Service User
- Username of the Test Service User
- X509 Client Certificate
- Password for the above certificate.
The White Label is now ready to install certificate and login to the CMS API.
When authenticating against the CMS API, the CMS Enterprise Service must be called on a server, where a valid X509 Client Certificate is installed.
When Saxo Bank has processed the Authorised CMS User form, the White Label will receive two e-mails: One with the X509 client certificate (pfx file) attached and the second with the certificate password. The certificate is installed as follows:
- Transfer the certificate to your web server.
- Double click on certificate
- Click "Next" in Welcome screen
- Click "Next" in File Import screen
- Type, in the screen, the password that was received in the second email.
- Choose certificate store and click "Next" in certificate store screen
- Click "Finish"
The certificate is now ready to use.
Saxo provides the Windows Console application, HashPassword.exe for hashing passwords with the SHA265 algorithm. The application can be retrieved as follows:
- Click https://enterprise.saxobank.com/enterprise/setup/HashPassword.zip
- Confirm certificate in confirm certificate pop-up box
- Download and save HashPassword.zip file
- Extract HashPassword.zip file
To hash the password, please do the following:
- Open a Command Prompt
- Browse to folder where HashPassword.exe is located
- Hash the password using the following syntax: HashPassword password1 password2 etc
Now hashing 1 command line arguments:
Hashing sAxOwhiteLabelpaSs : 'n/eHSOq/5XSgUyDivdHVwAxgxhBso2Vc0E6xCAFakiY='
C# Code example 1: How to hash a password The hashed password can now be used for the login request.
CMS Live login requests
The following sections describe in detail all the operations which the CMS Live Login Service exposes. Each section has a table with parameters and an example request. The example request only contains the crucial part of the request and not the headers. When the example lists a parameter as optional, it means that it can be omitted and the message still be technical valid. It does not necessarily mean that the request is valid if that parameter is omitted. One of the reasons for this is, that a parameter might be optional on create, but mandatory on update or vice versa.