---
title: "🔒 #26564 Предпросмотр коррекции: премия по выработке за ресурс, сумма коррекции и месяц, в который она ляжет. Заменяет worklogs/calculation."
method: POST
path: "/team/payment/award-part/preview"
tags: ["Team: Payments"]
---

# 🔒 #26564 Предпросмотр коррекции: премия по выработке за ресурс, сумма коррекции и месяц, в который она ляжет. Заменяет worklogs/calculation.

`POST /team/payment/award-part/preview`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/team/payment/award-part/preview`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

#26564 Предпросмотр коррекции: премия по выработке за ресурс, сумма коррекции и месяц, в который она ляжет. Заменяет worklogs/calculation.

**Access:** `authorized` (10 ) · **Scope:** `read`

**Allows:** `user:bonus` (все обязательны; проверка в команде по ресурсу из запроса)

### TypeScript (copy-paste)

**`POST /team/payment/award-part/preview`**

<details open><summary><b>Body</b></summary>

```typescript
export interface TeamPaymentAwardPartPreviewBody {
  userID: string
  resource: {
  worklogID?: string | null
  entityID?: string | null
  entityType?: SystemEntityType | null
  startDk?: number | null
  endDk?: number | null
  roleType?: UserRole_Type | null
}
  percent: number
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type TeamPaymentAwardPartPreviewResponse = IServerResponse<Record<string, any>>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- TeamPaymentAwardPartPreviewBody: JSON body for `team/payment/award-part/preview`
  - `userID` string, uuid, required
  - `resource` object, required
    - `worklogID` string, uuid, nullable
    - `entityID` string, uuid, nullable
    - `entityType` 'project' | 'product' | 'module' | 'component' | 'version' | 'feature' | 'task' | 'bug' | 'meeting': `project` = "project", `product` = "product", `module` = "module", `component` = "component", `version` = "version", `feature` = "feature", `task` = "task", `bug` = "bug", `meeting` = "meeting"
    - `startDk` integer, nullable: Day key (YYYYMMDD or internal day index)
    - `endDk` integer, nullable: Day key (YYYYMMDD or internal day index)
    - `roleType` 10 | 20 | 30 | 40 | 50 | 60 | 70: `management` = 10, `analytics` = 20, `marketing` = 30, `design` = 40, `development` = 50, `qa` = 60, `support` = 70
  - `percent` integer, required

## Response `200`

OK — `IServerResponse<Record<string, any>>`

- object
  - `code` integer, required
  - `data` object, required: Response payload (нет ResponseData / doc.schema)
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: Invalid correction resource
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege user:bonus required
- `406`: TimeResync — расхождение rts с сервером

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
