Ninja Lender v2 - API (EN)
  • General description
  • Application Life Cycle
  • Sale of applications
  • Purchase of applications
  • Authorization
  • Seller
    • Getting the list of templates
    • Getting template
    • Getting Handbook "Loan Purpose"
    • Getting Handbook "refuse reason"
    • Application upload
    • Getting the stage (status) of the application
    • Notifications
  • Buyer
    • Issue Registration
Powered by GitBook
On this page

Was this helpful?

  1. Buyer

Issue Registration

Registration of issuance of a purchased application

Method: POST

Url: https://test.ninjalender.online/loan/issue-by-loan

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

sum

numeric

+

issuance sum

Response:

Key

Type

Description

code

int

Response code

message

string

Response message

Request example:

{
    "params":{
        "id": 53,
        "sum": "2000"
    }   
}

Response example:

Success:

{
    "code": 0,
    "message": "ok",
    "log_key": 796
}

Error:

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

Error list:

Ключ

Сообщение

-96

invalid key

-97

invalid token

-98

expired token

-99

system error

-100

access denied

-1020301

Params is required

-1020302

Id is blank

-1020303

Loan not found

-1020304

Already issoued

-1020305

Sum is blank

PreviousNotifications

Last updated 2 years ago

Was this helpful?