📃
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

Get template body

Getting the body of the template

method: POST

url: https://ninjalender.online/client/requisite-template/get-body

Headers:

header key

header content

Content-Type:

application/json;

Authorization:

Bearer AToken;

Where AToken is the token that was received during authorization.

Request body:

Key

Type

Required

Description

params

JSON.object

+

Request parameters

params:

Key

Type

Required

Description

template_id

int

+

id of template

response:

Key

Type

Description

code

int

Response code

message

string

Message

data

JSON.array

Response data

data.body

JSON.array

The body of the template itself. In which the array key is the name of the attribute, the value is an array of parameters of the attribute

Request example:

{
  "params": {
    "id": "1"
  }
}

Response example:

[
  {
    "code": 0,
    "message": "ok",
    "data": {
      "body": {
        "borrower_personal_code": {
          "id": "1",
          "kind": 2,
          "type": 0,
          "label": "borrower_personal_code",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_first_name": {
          "id": "2",
          "kind": 0,
          "type": 0,
          "label": "borrower_first_name",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_last_name": {
          "id": "3",
          "kind": 0,
          "type": 0,
          "label": "borrower_last_name",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_phone": {
          "id": "4",
          "kind": 0,
          "type": 0,
          "label": "borrower_phone",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_email": {
          "id": "5",
          "kind": 0,
          "type": 0,
          "label": "borrower_email",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_address": {
          "id": "6",
          "kind": 0,
          "type": 0,
          "label": "borrower_address",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_monthly_income_amount": {
          "id": "7",
          "kind": 2,
          "type": 1,
          "label": "borrower_monthly_income_amount",
          "nullable": false,
          "variants": null,
          "description": null
        },
        "borrower_monthly_income_source": {
          "id": "8",
          "kind": 0,
          "type": 1,
          "label": "borrower_monthly_income_source",
          "nullable": false,
          "variants": null,
          "description": null
        }
      }
    }
  }
]

List of errors:

Key

Message

-99

System error! Try again later or contact us

-98

Expired token

-2000001

Invalid token

-2020101

Params is required

-2020102

id must not be blank

-2020103

Template get body is restricted

-2020104

Template not found

PreviousAuthorizationNextCreate application

Last updated 5 years ago

Was this helpful?