Cancellation basis

list

request
GET /api/v2/general/cancellation-basises/list HTTP/1.1
Parameter Description

name

String to search by name. EX: ?name=test

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "Брак",
    "deleted" : false
  }, {
    "name" : "Возврат поставщику",
    "deleted" : false
  }, {
    "name" : "Выгрузка товара",
    "deleted" : false
  }, {
    "name" : "Корректировка начального остатка",
    "deleted" : false
  }, {
    "name" : "Оптовая продажа",
    "deleted" : false
  }, {
    "name" : "Ошибка при поставке",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 6,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 6,
  "empty" : false
}
Table 570. response description
Path Type Description

name

String

cancellation basis name

deleted

Boolean

is cancellation basis deleted?

create

request
POST /api/v2/general/cancellation-basises HTTP/1.1

{
  "name" : "Test",
  "deleted" : false
}
Table 571. request description
Path Type Description Constraints

name

String

cancellation basis name

Must not be blank.
Size must be between 0 and 50 inclusive

deleted

Boolean

is cancellation basis deleted?

Must not be null

response
{
  "name" : "Test",
  "deleted" : false
}
Table 572. response description
Path Type Description

name

String

cancellation basis name

deleted

Boolean

is cancellation basis deleted?

get

request
GET /api/v2/general/cancellation-basises?name=Test HTTP/1.1
Table 573. request description
Parameter Description

name

cancellation basis name

response
{
  "name" : "Test",
  "deleted" : false
}
Table 574. response description
Path Type Description

name

String

cancellation basis name

deleted

Boolean

is cancellation basis deleted?

update

request
PUT /api/v2/general/cancellation-basises?name=Test HTTP/1.1

{
  "name" : "Test",
  "deleted" : false
}
Table 575. request description
Path Type Description Constraints

name

String

cancellation basis name

Must not be blank.
Size must be between 0 and 50 inclusive

deleted

Boolean

is cancellation basis deleted?

Must not be null

Parameter Description

name

cancellation basis name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/general/cancellation-basises?name=Test HTTP/1.1
Table 576. request description
Parameter Description

name

cancellation basis name

response
HTTP/1.1 200 OK