Free Enroll

Upon successful response you will get access token and refresh token

GET https://castleindia.in/emart/public /api/login

Headers

NameTypeDescription

Accept

String

application/json

Request Body

NameTypeDescription

password

String

enter user password

email

String

enter user email addres

{
  ```json
"token_type": "Bearer",
    "expires_in": 864000,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIyIiwianRpIjoiMTA1NDM3M2Y0ZjIxNzBmMjE1NzdiMTBhMDg2NzA0M2U4MmU2OGRiNDMyMGEwNzRlODRiMTA2ZGU4OWM0NTVkM2U0NGVlMDAzODUzMzdkMjciLCJpYXQiOjE2NzE1MzIzODkuMjk2NjM4OTY1NjA2Njg5NDUzMTI1LCJuYmYiOjE2NzE1MzIzODkuMjk2NjQzMDE4NzIyNTM0MTc5Njg3NSwiZXhwIjoxNjcyMzk2Mzg5LjI4NzgyMDEwMDc4NDMwMTc1NzgxMjUsInN1YiI6IjEiLCJzY29wZXMiOlsiKiJdfQ.MHy_vP1LH5DnBL8aC4oybJu474mnUcEYaJaaVjx7HY5YGNCXKEFHppETU-9nK7tTk-i9q8dd_qTbhfpj7Cui1zpnn_CHiIPY7IEwMAK29auVlwwCUA8qEn-Wj-emowtyEelstMseq3f8IeAlsxZzyADgU-wVFc3Znprljrz2AF5TRwQus1XjFzj60Wv6xvr1c7BWvHuPML9kgxKr4ecuVwvtqAexD8NLn50fDgoV92cFc1dkQAKpSd8Z2canKd0HjplUw85DlJVyJedY5LXgOP0KJeHPl6HqkrnMZcF6utaOvPV3DUYFbM0ezYRBeSMiDQkNUwUTp585mTsQPGyvq0mZkJQO-YBdy_OSfONP-S3-9JJW3dEQYmXnQfz1Z7u0zPibBwizu1oUoKD8MXDkNFu6sj5vKnsgBnytDdIHSkqNJft3fPUzq5PYYZil1GCiAvN9vJKRW_T0NvSmHq-d3unaKn3XbeyCTYjn7UrNOUtZ4_3pRbOaKn0m-AATuUHW3ae-dJDCrmq3mHR2r73kARPZXzNEwSxPmdIc0W_nse6iVJMRzRugevrAEeO3vbqrM3Txslk69bbdVBj2Ytng242NzDAFMufU9YSDLSVggAFnWTeSEuWF1_dwFGPmUpNE_op4cah9p0VzoYidu35HuxMPO_sx5JLoXetJRN23e5g",
    "refresh_token": "def502009d3fd0250d60709804387ea2196e374f3cfb64a55ca4dcce59845793c412555a358fb012aeda0f821a03bde985a08f67f40e6e8e89753dbad7fdd7aa5b00c39f1e4d45c22dc2eef5d62e76ed0ea89317dd5e804ff1b181dc3ed1bb0c970b4ec7f192b28a619b2cdbe8da1553a8258ab9fbc57d3abf11cdd6c242f290b0f3c2be4a03515abd3203d0b43cf9cbfc6f8161c70f72ec31bd31e7ae2673772e6c9aba1eaac525c876c09b170f5f325f0eb8bee994e7e28ad7d4e46f8686ef9ca191edce6e530a2a3718ad1408fae7934a9547f51f7dd9779bc98d261eafb1c7c84176a014ce37b50b4c93581006e1a4fc95378e3ad258a31b0bd390e83c47eb98cfe2475d04d41749f1a24d1e5184210138dd69a45fe718e819de327bf7bf1182c2fa95fe871fef1609f26be4ca4a14baa854aa598194977d59cc4ac9f35843d2d2bf0efbd71ab2ab4a67066b742efa0757ea6acc9f491d174ae96cb233f0953ecce8"
```
}

IF response fail

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>

<head>
	<title>500 Internal Server Error</title>
</head>

<body>
	<h1>Internal Server Error</h1>
	<p>The server encountered an internal error or
		misconfiguration and was unable to complete
		your request.</p>
	<p>Please contact the server administrator at
		<a href="/cdn-cgi/l/email-protection" class="__cf_email__"
			data-cfemail="9becfef9f6fae8effee9dbfef8f7fae8e8b5f6fefff2faf8f2efe2b5f8f4b5f2f5">[email&#160;protected]</a>
		to inform them of the time this error occurred,
		and the actions you performed just before this error.</p>
	<p>More information about this error may be available
		in the server error log.</p>
	<p>Additionally, a 500 Internal Server Error
		error was encountered while trying to use an ErrorDocument to handle the request.</p>
	<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>
</body>

</html>

Last updated