---
title: "Partial update pay item"
method: PATCH
path: "/payslips/{payslip_id}/pay-items/{id}/"
tags: ["Pay Items"]
---

# Partial update pay item

`PATCH /payslips/{payslip_id}/pay-items/{id}/`

Endpoint for partially updating an existing pay item.

## Path parameters

- `payslip_id` string, required
- `id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- PatchedPayItem — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
  - `account` string — The account associated with this pay item.
  - `amount` number, double — The unit amount for the pay item.
  - `cost_center` string, nullable — The cost center associated with this pay item.
  - `created_ts` string, date-time — The timestamp in UTC when the pay item was created
  - `description` string — The line item description for the pay item.
  - `id` string — The unique identifier of the pay item.
  - `legacy_id` string — [Deprecated] The legacy identifier of the pay item.
  - `modified_ts` string, date-time — The timestamp in UTC when the pay item was last modified

## Response `200`

- PayItem — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
  - `account` string, required — The account associated with this pay item.
  - `amount` number, double, required — The unit amount for the pay item.
  - `cost_center` string, nullable — The cost center associated with this pay item.
  - `created_ts` string, date-time, required — The timestamp in UTC when the pay item was created
  - `description` string, required — The line item description for the pay item.
  - `id` string, required — The unique identifier of the pay item.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the pay item.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the pay item was last modified

---

[API](https://skmtc.net/wafeq/apis/wafeq-public-api.md) · [All operations](https://skmtc.net/wafeq/apis/wafeq-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wafeq/wafeq-public-api/revisions/36816b4fce7f/schema)
