Skip to main content

Login

Endpoint
POST /api/Account/Login

Once you have received your partner Id, you need to send the Id in the body to authenticate.

Body
{
"PatnerId":"Gvs8Gg7GBDxPloU9929s0oBGB0zxOf4TG+T7+Gig/0w8=",
"DeviceType":"Android"
}
Example Response
{
{
"Message": "Logged in successfully",
"DevMessage": "Logged in successfully",
"Content": [
{
"Token": {
"access_token": "seSzMVounqzQtDwEIGpLKd2vtuifN57SLli6aXj-l2ojA_gTTizWn9i_WWbd2etRQDyiZ-Y11QkZWup3dtyP9L9Vjg9mSPjjAWFlvIzkUWRGLIOKuTgKKNxDfHRbrOVQnDgXiwwM6tsKihSQlMDnquzCHYNyD_56jqDCHMTovO_W1VAuvdzuOhklNHTCnBaqlqweckpwXrgEfGlcTAALoSSitICYJLCa-_gIGlal0OtRGJZ8Zi1n99lCFD7fFUWxw1mQTJd2kOK3jzK-LKlqYUoWBtxxlWAz6BpeXgQO85wyZ9okkDy65GtATLkE6ZGiTzDpXeUYuWYhsyoz2Mr5IPubiU7LN9JxL7gSbyxXmmTuodXCj-4P789l4skvapogfrEkrK40I-tgxccyecQyr_kMGuFKc_zWRZsk2qibeDDW6xrHBHw2HByfcb3ahAEGuiNyOeHTCGQqyVRCB4OUjkZ9ou22p5_JCuQ0xKoCsxEyREycUgAQPbW3XaJJjSnegKnFdXY2-dfJQxhG7Rbv5yO5iCBEuB5ZaKEOWbjRJSjblCdmXq-DnqNp7Fu2ae3r_nna_twxJwQOe87aNU5ckg",
"token_type": "bearer",
"expires_in": 86399,
"refresh_token": "e39dd345b62442af9f0edb554d9a1fd5"
}
},
{
"User": {
"userID": 924,
"TelephoneNo": "03332525250",
"UserName": "ride",
"Password": "",
"EmailAddress": "bookings@ride.com",
"isVerified": true,
"CreationDate": "13/01/2022 00:00:00",
"LastLoginDate": "17/01/2022 10:06:41",
"VerificationCode": "12345",
"isActive": true,
"CompanyID": 15,
"SocialId": "",
"SocialName": "",
"PayStripeId": "",
"FCM_Token": "",
"DeviceType": "Android",
"APIKey": "",
"OperatorId": "1129",
"OperatorName": "thirdparty@abccars",
"Channel": "thirdparty@abcwoodcars",
"ChannelId": "22"
}
},
{
"CompanyInfo": {
"CompanyId": 15,
"CompanyName": "ABC Cars",
"Description": "ABC is a leading minicab provider with wide coverage. Guaranteed on time advance booking and fast response for asap request",
"Address": "21 Newsome Road",
"City": "HUDDERSFIELD",
"Country": "United Kingdom",
"PostCode": "HD1 3FB",
"PhoneNumber": "01484453061",
"Email": "admin@abc.co.uk",
"Website": "www.abc.com",
"Lat": "53.6409903187696",
"Long": "-1.7890190194224",
"CabSnapperShouldLog": "1"
}
}
]
}
}

Token are used with each request as a Bearer Token.

Token expires after few mins.

After logging in, you will receive a token along with refresh token in the response json.