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

# Update pay item

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

## Request

- Base URL: `https://api.wafeq.com/v1`
- URL: `https://api.wafeq.com/v1/payslips/{payslip_id}/pay-items/{id}/`
- Auth: API key in header `Authorization`

Endpoint for updating an existing pay item.

## Path parameters

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

## Query parameters

- `expand` string

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- ApiV1PayItem: A pay item of a payslip, such as a salary component or deduction.
  - `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

## Response `200`

- ApiV1PayItem: A pay item of a payslip, such as a salary component or deduction.
  - `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

## Changes

- **2026-11-03** `b8f5e10134b4`: 1 info
  - added the new optional `query` request parameter `expand`

[Operation history](https://skmtc.dev/wafeq/apis/wafeq-public-api/changes/payslips/:payslip_id/pay-items/:id/put.md)

---

[API](https://skmtc.dev/wafeq/apis/wafeq-public-api.md) - [All operations](https://skmtc.dev/wafeq/apis/wafeq-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wafeq/apis/wafeq-public-api/revisions/b8f5e10134b4?raw)
