Get Token

Login

You need to login firstly to get the token_id for the following request. Please find LOGIN_DOMAIN, SERVICE_DOMAIN, YOUR_USERNAME and YOUR_PASSWORD sent by E-mail. After login the token_id will be returned and can be used for service request.

Parameters

Login to get the token_id.

Fields Type Required Description
merchant_name String Yes
merchant_pwd String Yes MD5-encrypted, 32 digits, lower case

[!WARNING|label:Important] The password must to be MD5-encrypted

curl https://LOGIN_DOMAIN/api/login.do
-H "Language: en"
-H "Content-Type: x-www-form-urlencoded"
-d '{merchant_name: YOUR_USERNAME, merchant_pwd: YOUR_PASSWORD}'
-X POST

[!TIP|label: LOGIN_DOMAIN] sso-ng.icekredit.ai

Response

The token_id would be returned.

Fields Type Description
response_code String
response_msg String
token_id String Token for request

[!NOTE|label:Notice] The token be valid in 20 minutes from last valid request

Besides the token_id, every response would contain one response_code which shows the request status, and one message for the code description. You can check the details of response code at the following table.

Code Details

Response Code Message Comment
00 success Request successful
02 authentication service error, please contact customer service
10000001 service processing error, please contact customer service
10000429 too frequent requests
10000400 invalid request: {0} {0} is filled with details
10000401 unauthorized
10000404 resource not found
10000415 content-type does not supported: {0} {0} is filled with details
10000405 request method does not supported: {0} {0} is filled with details
200002 invalid username or password
200005 token_id invalid: {0} {0} is filled with details
200006 client IP address has changed
200007 not authorized for relevant data
200008 account is locked, please contact customer service
200009 account has expired, please contact customer service
200020 invalid verification code
200010 authorized service is not available, please contact customer service

results matching ""

    No results matching ""