---
title: "POST /api/v1/advances/_search"
method: POST
path: "/api/v1/advances/_search"
tags: ["Advances"]
---

# POST /api/v1/advances/_search

`POST /api/v1/advances/_search`

## Query parameters

- `PageNumber` integer
- `PageSize` integer

## Headers

- `publicKey` string
- `privateKey` string

## Request body

- GetAdvanceRequestDto
  - `status` string[], nullable
  - `isPaid` boolean, nullable
  - `users` string[], nullable
  - `startDate` string, date, nullable
  - `endDate` string, date, nullable
  - `minValue` number, double, nullable
  - `maxValue` number, double, nullable
  - `units` string[], nullable
  - `costCenter` string[], nullable
  - `order` 0 | 1
  - `orderBy` 0 | 1

## Response `200`

OK

- GetAdvanceResponseDtoPaginatedResponseDto
  - `data` GetAdvanceResponseDto[], nullable
    - `id` string, uuid
    - `date` string, date-time
    - `description` string, nullable
    - `user` UserDto
      - `userKey` string, uuid
      - `userName` string, nullable
      - `document` string, nullable
      - `registration` string, nullable
    - `costCenter` CostCenterDto
      - `key` string, uuid
      - `name` string, nullable
      - `code` string, nullable
    - `unit` UnitDto
      - `key` string, uuid
      - `name` string, nullable
    - `status` StatusDto
      - `label` string, nullable
      - `name` string, nullable
    - `paymentType` PaymentTypeDto
      - `label` string, nullable
      - `name` string, nullable
    - `tags` TagDto[], nullable
      - `name` string, nullable
      - `color` string, nullable
    - `statusLog` StatusLogDto[], nullable
      - `date` string, date-time
      - `status` StatusDto
        - `label` string, nullable
        - `name` string, nullable
      - `comment` string, nullable
      - `userName` string, nullable
      - `reasonDescription` string, nullable
    - `value` number, double
    - `valueApproved` number, double
    - `attachment` string, nullable
    - `notes` string, nullable
    - `isPaid` boolean
    - `currency` string, nullable
    - `currencyConversionRate` number, double
  - `metadata` PaginationMetadata
    - `pageNumber` integer
    - `pageSize` integer
    - `totalCount` integer
    - `totalPages` integer
    - `hasPreviousPage` boolean
    - `hasNextPage` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.dev/stuo/apis/external-api.md) · [All operations](https://skmtc.dev/stuo/apis/external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stuo/external-api/revisions/55217bb301d0/schema)
