Getting Handbook "refuse reason"

Method: POST

Url: https://test.ninjalender.online/refuse-reason/list

Headers:

header_key

content

Content-Type:

application/json;

Authorization

Bearer {{Token}}

Ninja-Lang

locale to witch we will translate titles (pl_PL, en_GB)

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 refuse reason

label

string

name of refuse reason

title

string

title of refuse reason

Request example:

{
	
}

Response example:

Success:

{
    "code": 0,
    "message": "ok",
    "data": [
        {
            "id": 1,
            "label": "purpose_first",
            "title": "Purpose first"
        },
        {
            "id": 2,
            "label": "purpose_second",
            "title": "Purpose second"
        }
    ],
    "log_key": 750
}

Error:

{
    "code": -1,
    "message": "error",
    "log_key": 752,
    "errors":[
        {
            "code": -97,
            "message": "invalid token"
        }
    ]
}

Error list:

Key

Message

-96

invalid key

-97

invalid token

-98

expired token

-99

system error

-100

access denied

Last updated