POST Login #
This is the access API, and it provides you with the access token which enables you to call and use the other APIs.
The response is the access token and needs to be passed on the request header of all subsequent API calls being made. The token will be expired after 2 hours.
Request URL #
https://api-sandbox.smartcurrencyexchange.com/v4/Client/Login
Field | In | Type | Description | Mandatory / Optional |
username | Body | string | Email address used for registration | Mandatory |
password | Body | string | Password used to enter the system | Mandatory |
Request Sample #
{
"username": "[email protected]",
"password": "******"
}
Response Sample #
{
"status": "OK",
"message": "",
"singleObject": " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJNYWluQ29
udGFjdElEIjoiaUpWVFd6MkpnSlNNUTM4UkxZOSs0UT09IiwiQ29udGFjdElEIjoi
aUpWVFd6MkpnSlNNUTM4UkxZOSs0UT09IiwiUGVybXMiOiJ7IFwiQ2hpbGRQZXJtc
1wiIDogeyBcIlRyYWRpbmdBUElcIiA6IHsgXCJWYWx1ZVwiIDogNDAwLCBcIkNoaW
xkUGVybXNcIiA6IHsgfSB9LCBcIkFkbWluQVBJXCIgOiB7IFwiQ2hpbGRQZXJtc1w
iIDogeyB9IH0gfSB9IiwiVGFncyI6InsgfSIsIm5iZiI6MTY1NTIwNTQ1OCwiZXhw
IjoxNjU1MjA5MDU4LCJpYXQiOjE2NTUyMDU0NTh9.rkjt8kqHGGD_Kp9v308qC3NR
LQCncx1SuzSrc_B2S80",
"objectCollection": []
}
Response codes #
HTTP Status | Description | Message |
200 | Success | |
400 | Incorrect credentials | Invalid login credentials |