Authentication URL: (Method:GET)
Type
|
Url
|
Headers
|
SandBox
|
https://gstsandbox.charteredinfo.com/ewaybillapi/dec/v1.03/auth?action=ACCESSTOKEN
|
1. aspid
2. password
3. gstin
4. username
5. ewbpwd
|
Production
|
https://einvapi.charteredinfo.com/v1.03/dec/auth?action=ACCESSTOKEN
|
1. aspid
2. password
3. gstin
4. username
5. ewbpwd
|
Add 360 mins to system DateTime and save as TokenExp along with AuthToken. Before giving every API Call, check
IF (SystemDateTime > TokenExp)
Give call to authenticate api, Save new AuthToken and TokenExp; then proceed with API Call.
ELSE
Proceed with API Call using existing AuthToken.