Team: Payments
🔒 #26532 Штраф или бонус - часть премии месяца (#26797 переданного, иначе текущего). #26564 Коррекция - процент от премии по выработке за ресурс.
#26532 Штраф или бонус - часть премии месяца (#26797 переданного, иначе текущего). #26564 Коррекция - процент от премии по выработке за ресурс.
Access: authorized (10 ) · Scope: write
Allows: user:bonus, company:payments (все обязательны; проверка в команде по ресурсу из запроса)
TypeScript (copy-paste)
POST /team/payment/award-part/create
<details open><summary><b>Body</b></summary>export interface TeamPaymentAwardPartCreateBody {
userID: string
type: PaymentAwardPart_MANUAL_TYPES
amount?: number | null
title?: string | null
/** Day key (YYYYMMDD or internal day index) */
monthDK?: number | null
resource?: {
worklogID?: string | null
entityID?: string | null
entityType?: SystemEntityType | null
startDk?: number | null
endDk?: number | null
roleType?: UserRole_Type | null
} | null
percent?: number | null
note?: string | null
}
</details>
<details open><summary><b>Response</b></summary>
export type TeamPaymentAwardPartCreateResponse = IServerResponse<Record<string, any>>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
post/team/payment/award-part/create
Request
- Base URL: http://localhost
- URL: http://localhost/team/payment/award-part/create
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Headers
devIDstring uuid required
UUID устройства клиента
tzstring required
Example:Europe/Moscow
Таймзона клиента (IANA или offset)
appstring required
Example:kosmodrom-web
Имя клиентского приложения
appVerstring required
Example:1.0.0
Версия клиента
rKeystring
Уникальный ключ запроса для логов/саппорта
Request body
Response
OK — IServerResponse<Record<string, any>>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.