Getting Handbook "Loan Purpose"
Method: POST
Url: https://test.ninjalender.online/loan-purpose/list
Headers:
header_key
content
Content-Type:
application/json;
Authorization
Bearer {{Token}}
Where {{Token}} - token obtained during authorization
Request body:
Key
Type
Required
Description
Response:
Key
Type
Description
code
int
Response code
message
string
Response message
data
JSON.object
Response data
Data:
Key
Type
Description
id
int
Id of loan purpose
label
string
name of loan purpose
title
string
title of loan purpose
Request example:
1
{
2
3
}
Copied!
Response example:
Success:
1
[
2
{
3
"code": 0,
4
"message": "ok",
5
"data": [
6
{
7
"id": 1,
8
"label": "purpose_first",
9
"title": "Purpose first"
10
},
11
{
12
"id": 2,
13
"label": "purpose_second",
14
"title": "Purpose second"
15
}
16
],
17
"log_key": "750"
18
}
19
]
Copied!
Error:
1
[
2
{
3
"code": -97,
4
"message": "invalid token",
5
"log_key": "752"
6
}
7
]
Copied!
Error list:
Key
Message
-96
invalid key
-97
invalid token
-98
expired token
-99
system error
-100
access denied
Last modified 1mo ago
Copy link