Authorization

method: POST

url: https://ninjalender.online/client/auth

Headers:

Request body:

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:

The resulting token should be added to the headers in all subsequent requests.

Request example:

{
  "login": "test",
  "password": "25d55ad282aa400af464c76d713c07ad",
  "segment": "1"
}

Response example:

[
  {
    "code": 0,
    "message": "ok",
    "data": {
      "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e12pYXQiOjE1MzA5NTM3OTYsImp0aSI6IjVjOTkyMGU2N2Y0MzVmYTNjYTI4ZTg4ZDBkYTQ4ZWExIiwiaXNzIjoiZGV2My5uaW5qYWxlbmRlci5vbmxpbmUiLCJuYmYiOjE1MzA5NTM3OTYsImV4cCI6MTUzMTA0MDE5NiwiZGF0YSI6eyJhcHBsaWNhdGlvbl9pZCI6IjIiLCJ1c2VyX2lkIjoiMjUiLCJvcmdhbml6YXRpb25faWQiOiIxOSIsImFwcGxpY2F0aW9uX3R5cGUiOjB9fQ.ZUuAJFXP1Xmb4XNIV6E0CgOOxYE75V1pJbkc2hE2yy0"
    }
  }
]

List of errors:

Last updated