Authorization
method: POST
url: https://ninjalender.online/client/auth
Headers:
header key
header content
Content-Type:
application/json;
Request body:
Key
Type
Required
Description
login
text
+
User login
password
text
+
User password
segment
int
-
id of segment
Depending on the specified segment, when authorizing via the API, you will have access only to that part of the trading space of which this segment corresponds. BUT! When a application is loaded into the system, the selected segment does not matter as the reconciliation of the segment of the loaded loan comes from the loan type. Which in turn is attached to the template.
If the segment is not explicitly specified, the system will select the first segment from the list of segments.
response:
Key
Type
Description
code
int
Response code
message
string
Message
data
JSON.object
Response data
data.access_token
string
Token
The resulting token should be added to the headers in all subsequent requests.
Request example:
Response example:
List of errors:
Key
Message
-99
System error! Try again later or contact us
-2010103
login must not be blank
-2010104
Incorrect password
-2010105
segment not found
-2010108
Incorrect login
-2010109
Inactive user
-2010110
Password does not match
Last updated
Was this helpful?