📃
Ninja Lender Api (en)
  • About
  • Life cycle
  • Hierarchy
  • Segments
  • Loan types
  • Loan templates
  • Import
    • Import
    • Mortage template
    • Customer loan template
  • API methods
    • Authorization
    • Get template body
    • Create application
    • Application loading
    • Applications list
    • Bet
    • Widthraw bet
    • Application purchase
    • Issuance
    • Resending
  • Handbooks
    • Refuse reason
    • Loan purpose
    • Organization types
    • Requisites
Powered by GitBook
On this page

Was this helpful?

  1. API methods

Application purchase

Purchase application from market

  • The application must be on the market stage.

method: POST

url: https://ninjalender.online/client/loan/resend

Headers:

header key

header content

Content-Type:

application/json;

Authorization:

Bearer AToken;

Where AToken is the token that was received during authorization.

After purchasing the application, its data can be sent to your webhook for the prompt acceptance of the application to work. To activate this feature you need to contact us and provide a webhook`s url.

Request body:

Key

Type

Required

Description

params

JSON.object

+

Request parameters

params:

Key

Type

Required

Description

id

int

+

id of loan

response:

Key

Type

Description

code

int

Response code

message

string

Message

data

JSON.array

Response data

data.id

int

id of deal

Request example:

{
  "params": {
    "id": 562
  }
}

Response example:

[
  {
    "code": 0,
    "message": "ok",
    "data": {
      "id": 1236
    }
  }
]

List of errors:

Key

Message

-99

System error! Try again later or contact us

-98

Expired token

-2000001

Invalid token

-2040401

Params is required

-2040402

Loan id must not be blank

-2040403

Loan not found

-2040404

Cant create deal. Loan stage must be OPEN_SELL

PreviousWidthraw betNextIssuance

Last updated 5 years ago

Was this helpful?