---
updatedAt: 2026-10-12T15:05:31.000Z
agentTools:
  projectIndex: https://wafeq.readme.io/llms.txt
---

# Partial update pay item

Endpoint for partially updating an existing pay item.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Patchedapi-v1-pay-item": {
        "description": "A pay item of a payslip, such as a salary component or deduction.",
        "properties": {
          "account": {
            "description": "The account associated with this pay item.",
            "type": "string"
          },
          "amount": {
            "description": "The unit amount for the pay item.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": "number"
          },
          "cost_center": {
            "description": "The cost center associated with this pay item.",
            "type": [
              "string",
              "null"
            ]
          },
          "created_ts": {
            "description": "The timestamp in UTC when the pay item was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "description": {
            "description": "The line item description for the pay item.",
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the pay item.",
            "readOnly": true,
            "type": "string"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the pay item.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the pay item was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "api-v1-pay-item": {
        "description": "A pay item of a payslip, such as a salary component or deduction.",
        "properties": {
          "account": {
            "description": "The account associated with this pay item.",
            "type": "string"
          },
          "amount": {
            "description": "The unit amount for the pay item.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": "number"
          },
          "cost_center": {
            "description": "The cost center associated with this pay item.",
            "type": [
              "string",
              "null"
            ]
          },
          "created_ts": {
            "description": "The timestamp in UTC when the pay item was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "description": {
            "description": "The line item description for the pay item.",
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the pay item.",
            "readOnly": true,
            "type": "string"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the pay item.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the pay item was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          }
        },
        "required": [
          "account",
          "amount",
          "created_ts",
          "description",
          "id",
          "legacy_id",
          "modified_ts"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "APIKeyAuth": {
        "description": "__An API key that will be supplied in  `Authorization` header.__\n\nExample:\n`Api-Key vVLOU1BB.aKz8GWaAGz0w1fO997aCMskNfS0ZpwjS`",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey",
        "x-default": "Api-Key replace_with_your_api_key"
      }
    }
  },
  "info": {
    "title": "Wafeq Public API",
    "version": "v1"
  },
  "openapi": "3.1.1",
  "paths": {
    "/payslips/{payslip_id}/pay-items/{id}/": {
      "patch": {
        "description": "Endpoint for partially updating an existing pay item.",
        "operationId": "payslips_pay_items_partial_update",
        "parameters": [
          {
            "description": "Client-provided UUID to uniquely identify a request",
            "in": "header",
            "name": "X-Wafeq-Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated related objects to return in full instead of as IDs. Accepted values: `account`, `account.parent`, `cost_center`. Nested relations are joined with a dot.",
            "in": "query",
            "name": "expand",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "payslip_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Patchedapi-v1-pay-item"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Patchedapi-v1-pay-item"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Patchedapi-v1-pay-item"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/api-v1-pay-item"
                }
              }
            },
            "description": "",
            "headers": {
              "X-Wafeq-Idempotent-Replayed": {
                "description": "Indicates whether response was served from cache",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyAuth": []
          }
        ],
        "summary": "Partial update pay item",
        "tags": [
          "Pay Items"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Wafeq API Base URL",
      "url": "https://api.wafeq.com/v1"
    }
  ],
  "x-readme": {
    "proxy-enabled": false,
    "samples-languages": [
      "shell",
      "http"
    ]
  }
}
```