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

Last updated