Skip to main content
GET
Get disable

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры запроса

category
number
category__isnull
boolean
client__isnull
boolean
counterparty__isnull
boolean
created_at__date__gte
string<date>
created_at__date__lte
string<date>
created_by
integer
discount__isnull
boolean
group
number
group__isnull
boolean
inventory
integer
inventory__in
integer[]

Несколько значений могут быть разделены запятыми.

inventory__isnull
boolean
method
enum<integer>
  • 0 - удалить
  • 1 - Архив
  • 2 - Списано
Доступные опции:
0,
1,
2
ordering
string

Which field to use when ordering the results.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

payment_account__isnull
boolean
payment_category__isnull
boolean
payment_type__isnull
boolean
rental_point
number
rental_point__isnull
boolean

A search term.

service
integer
service__in
integer[]

Несколько значений могут быть разделены запятыми.

service__isnull
boolean
set
integer
set__in
integer[]

Несколько значений могут быть разделены запятыми.

set__isnull
boolean
time_period__isnull
boolean
warehouse__isnull
boolean

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"