Application upload
Method: POST
Url: https://test.ninjalender.online/loan/create
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
amount
numeric
+
application amount
price_min
numeric
+
application minimal price
term
numeric
+
term of application indicated in seconds
refuse_reason
int
+
Id of refuse reson
purpose
int
+
id of loan purpose
template
int
+
id of template
requisites
json.object
+
Requisites of the application. keys are copied from the template body, the values are filled in according to the properties of the requisites
Response:
Key
Type
Description
code
int
Response code
message
string
Response message
data
json
Response data
data.id
int
id of created application
data.url
string
URL for borrower forwarding
log_key
int
Id of log for current request
Request example:
1
{
2
"params":{
3
"template": 9,
4
"amount": 100,
5
"term": 64000,
6
"price_min": 10,
7
"refuse_reason": 1,
8
"purpose": 1,
9
"requisites": {
10
"one":"1",
11
"two": "2",
12
"thre": "3",
13
"four": "7"
14
}
15
}
16
}
Copied!
Response example:
Success:
1
[
2
{
3
"code": 0,
4
"message": "ok",
5
"data": {
6
"id": 72,
7
"url": "https://dev3v2.ninjalender.net/auth/borrower/sign-in?redirect_to=/borrower/loan/&auth_hash=d41d8cd98f00b204e9800998ecf8427e"
8
},
9
"log_key": "781"
10
}
11
]
Copied!
Error:
1
[
2
{
3
"code": -1010101,
4
"message": "Params is required",
5
"log_key": "748"
6
}
7
]
Copied!
Error list:
Ключ
Сообщение
-96
invalid key
-97
invalid token
-98
expired token
-99
system error
-100
access denied
-1010101
Params is required
-1010102
Refuse reason not found
-1010103
Refuse reason is blank
-1010104
Purpose is blank
-1010105
Purpose not found
-1010106
Template is blank
-1010107
Template not found
-1010108
Template unactive
-1010109
Template unmoderated
-1010110
Invalid refuse date
-1010111
Requisite needed
-1010112
Requisite blank
-1010113
Requisite expected date
-1010114
Requisite expected number
-1010115
Requisite expected one of list
-1010116
Requisite expected boolean
-1010117
Requisite not in template
-1010118
Amount ivalid
-1010119
Price min is zero
-1010120
Price min is ivalid
-1010121
Term must be more than 86400
-1010122
Tarm is invalid
-1010123
Amount is blank
-1010124
Price min is blank
-1010125
Term is blank
-1020126
Loan not unique
-1020127
Requisite registered in other borrower
Last modified 1mo ago
Copy link