Getting the stage (status) of the application

Receiving the current stage of the loaded application

method: POST

url: https://test.ninjalender.online/loan/get-stage

Headers:

header_key

content

Content-Type:

application/json;

Authorization

Bearer {{Token}}

Where {{Token}} - token obtained during authorization

Request body:

Key

Type

Required

Description

params

JSON.object

+

Request parameters

Params:

Key

Type

Required

Description

id

numeric

+

id of application

Response:

Key

Type

Description

code

int

Response code

message

string

Response message

data

JSON.object

Response data

data:

Key

Type

Description

id

int

Application id

stage

string

Application stage

confirm_link

string

Optional parameter. If the application is at the "Awaiting confirmation by the borrower" stage, there will be a link to redirect the borrower in his personal account on the Ninja Lender platform

Stage description:

Stage id
Description
1

Awaiting confirmation by the borrower

2

Application in progress of distribution

3

The application did not interest any of the buyers and withdraw from system.

4

ЗApplication sold

5

The application has been sold, and information on issuance has been received on it (from the buyer)

6

The borrower refused the application

7

The borrower did not confirm the application within a week

Request example:

{
    "params":{
        "id": 121
    }
}

Response example:

Success:

{
    "code": 0,
    "message": "ok",
    "data": {
        "id": 121,
        "stage": 4
    },
    "log_key": 4949
}

Error:

{
    "code": -1,
    "message": "error",
    "log_key": 748,
    "errors":[
        {
            "code": -1020401,
            "message": "Params is required"
        }
    ]
}

Error list:

Ключ

Сообщение

-96

invalid key

-97

invalid token

-98

expired token

-99

system error

-100

access denied

-1020401

Params is required

-1020402

Id is blank

-1020403

Loan not found

Last updated