Authentication
Note
The BASE URL, Endpoint, and Payload JSON key values are case-sensitive. Please use the format which we have given in the documentation.
Get Session¶
-
During user login, the Individual Trader should redirect the Tradion user to
https://weblive.rmoneyindia.net/?appcode=along with the App Code in the URL. -
The user will be asked to log in with their Tradion credentials.
-
After successful login, the user will be redirected to the Redirect URL provided by the Individual Trader
(this can be configured or updated from the Developer Portal), along with:authCode– User Authorization TokenuserId– Tradion User ID
-
The Individual Trader must save the
authCodeanduserId, and use them with theapiSecretto create a checksum. This is the SHA-256 hash of: userId + authCode + apiSecret -
The Individual Trader should then send this checksum to the following URL to obtain a user session:
https://weblive.rmoneyindia.net/open-api/od/v1/vendor/getUserDetails
The returned userSession can then be used to access all further API endpoints.
| Method | APIS |
|---|---|
| Post | https://weblive.rmoneyindia.net/open-api/od/v1/vendor/getUserDetails |
Request Structure
Input parameters
| Field | Type | Description |
|---|---|---|
| checksum | String | SHA-256 hash of: userId + authCode + apiSecret |
Success Response
{
"stat": "Ok",
"clientId": "I10230",
"userSession": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIyam9lOFVScGxZU3FTcDB3RDNVemVBQkgxYkpmOE4wSDRDMGVVSWhXUVAwIn0.eyJleHAiOjE3NTc3Mjc2MjgsImlhdCI6MTc1MjU1MDQ2NCwianRpIjoiMjg1ZTI2NzgtYzYzYi00NmE3LWJjYWEtMTQ0OTExMWY2ZmRkIiwiaXNzIjoiaHR0cHM6Ly9pZGFhcy5hbGljZWJsdWVvbmxpbmUuY29tL2lkYWFzL3JlYWxtcy9BbGljZUJsdWUiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiMjYzM2Y4ZGMtNzI2OS00NGExLWFjYjUtMjc2ZmExYWI0OGJjIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiYWxpY2Uta2IiLCJzaWQiOiI0MjYzMzA0Mi03MTcxLTQ1MjEtOTMwMC04NTBlZjM0MGUyNGIiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDozMDAyIiwiaHR0cDovL2xvY2FsaG9zdDo1MDUwIiwiaHR0cDovL2xvY2FsaG9z"
}
| Field | TYPE | Description |
|---|---|---|
| userId | String | Ok (Login Success) |
| clientId | String | Unique Client Code |
| userSession | String | User Session that can be used to access all further API endpoints |
Error Response
| Field | TYPE | Description |
|---|---|---|
| stat | String | Not_Ok |
| emsg | String | * User does not login. Please login * Your API key Expired.Please update your API key * API key not available.Please generate API key * Internal server error. Please try again later. |