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

# Partial update payslip

Endpoint for partially updating an existing payslip.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "CurrencyEnum": {
        "description": "An ISO 4217 currency code.\n\n[View the enum reference](currencyenum)",
        "enum": [
          "AED",
          "SAR",
          "USD",
          "EUR",
          "CAD",
          "AFN",
          "ALL",
          "AMD",
          "ARS",
          "AUD",
          "AZN",
          "BAM",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BND",
          "BOB",
          "BRL",
          "BWP",
          "BYN",
          "BZD",
          "CDF",
          "CHF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "GBP",
          "GEL",
          "GHS",
          "GNF",
          "GTQ",
          "HKD",
          "HNL",
          "HRK",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KHR",
          "KMF",
          "KRW",
          "KWD",
          "KZT",
          "LBP",
          "LKR",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MOP",
          "MUR",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SDG",
          "SEK",
          "SGD",
          "SOS",
          "SYP",
          "THB",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "UYU",
          "UZS",
          "VES",
          "VND",
          "XAF",
          "XOF",
          "YER",
          "ZAR",
          "ZMW"
        ],
        "type": "string"
      },
      "LanguageEnum": {
        "description": "The language of a document or response.\n\n[View the enum reference](languageenum)",
        "enum": [
          "en",
          "ar"
        ],
        "type": "string"
      },
      "Patchedapi-v1-payslip": {
        "description": "A payslip recording the pay of an employee.",
        "properties": {
          "amount": {
            "description": "The total amount of the payslip.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "balance": {
            "description": "The remaining balance of the payslip.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "branch": {
            "description": "The branch associated with this payslip.",
            "type": [
              "string",
              "null"
            ]
          },
          "created_ts": {
            "description": "The timestamp in UTC when the payslip was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyEnum"
              }
            ],
            "description": "The currency used for the payslip.\n\n[View the enum reference](currencyenum)"
          },
          "employee": {
            "description": "The employee to whom the payslip belongs.",
            "type": "string"
          },
          "exchange_rate": {
            "description": "The exchange rate to the organization base currency at the time of the document.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "external_id": {
            "default": "",
            "description": "External identifier for the payslip.",
            "maxLength": 255,
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the payslip.",
            "readOnly": true,
            "type": "string"
          },
          "journal": {
            "description": "The public ID of the current journal entry for this document, or null when no journal exists. Pass expand=journal to return the journal object instead of its ID. Use GET /v1/journal-line-items/?journal={journal_id} to retrieve the accounting entries. Related payments, note applications and deferral events have their own journals.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/api-v1-journal"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "language": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LanguageEnum"
              }
            ],
            "description": "The language of the document.\n\n[View the enum reference](languageenum)"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the payslip.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the payslip was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "pay_items": {
            "description": "The list of pay items included in the payslip.",
            "items": {
              "$ref": "#/components/schemas/api-v1-pay-item"
            },
            "type": "array"
          },
          "payslip_date": {
            "description": "The date when the payslip was issued.",
            "format": "date",
            "type": "string"
          },
          "payslip_number": {
            "description": "The unique number assigned to the payslip.",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicPostedDocumentStatusEnum"
              }
            ],
            "default": "DRAFT",
            "description": "The current status of the payslip (draft or posted).\n\n[View the enum reference](publicposteddocumentstatusenum)"
          }
        },
        "type": "object"
      },
      "PublicPostedDocumentStatusEnum": {
        "description": "The posting status of a document.\n\n[View the enum reference](publicposteddocumentstatusenum)",
        "enum": [
          "DRAFT",
          "POSTED"
        ],
        "type": "string"
      },
      "api-v1-journal": {
        "description": "A journal entry in the general ledger.",
        "properties": {
          "created_ts": {
            "description": "The timestamp in UTC when the journal was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyEnum"
              }
            ],
            "description": "The currency used in the journal.\n\n[View the enum reference](currencyenum)"
          },
          "date": {
            "description": "The date of the journal entry.",
            "format": "date",
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the journal.",
            "readOnly": true,
            "type": "string"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the journal.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the journal was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "notes": {
            "description": "Additional notes about the journal entry.",
            "type": "string"
          },
          "reference": {
            "description": "Reference number or code for the journal.",
            "type": "string"
          }
        },
        "required": [
          "created_ts",
          "currency",
          "date",
          "id",
          "legacy_id",
          "modified_ts"
        ],
        "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"
      },
      "api-v1-payslip": {
        "description": "A payslip recording the pay of an employee.",
        "properties": {
          "amount": {
            "description": "The total amount of the payslip.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "balance": {
            "description": "The remaining balance of the payslip.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "branch": {
            "description": "The branch associated with this payslip.",
            "type": [
              "string",
              "null"
            ]
          },
          "created_ts": {
            "description": "The timestamp in UTC when the payslip was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyEnum"
              }
            ],
            "description": "The currency used for the payslip.\n\n[View the enum reference](currencyenum)"
          },
          "employee": {
            "description": "The employee to whom the payslip belongs.",
            "type": "string"
          },
          "exchange_rate": {
            "description": "The exchange rate to the organization base currency at the time of the document.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "external_id": {
            "default": "",
            "description": "External identifier for the payslip.",
            "maxLength": 255,
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the payslip.",
            "readOnly": true,
            "type": "string"
          },
          "journal": {
            "description": "The public ID of the current journal entry for this document, or null when no journal exists. Pass expand=journal to return the journal object instead of its ID. Use GET /v1/journal-line-items/?journal={journal_id} to retrieve the accounting entries. Related payments, note applications and deferral events have their own journals.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/api-v1-journal"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "language": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LanguageEnum"
              }
            ],
            "description": "The language of the document.\n\n[View the enum reference](languageenum)"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the payslip.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the payslip was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "pay_items": {
            "description": "The list of pay items included in the payslip.",
            "items": {
              "$ref": "#/components/schemas/api-v1-pay-item"
            },
            "type": "array"
          },
          "payslip_date": {
            "description": "The date when the payslip was issued.",
            "format": "date",
            "type": "string"
          },
          "payslip_number": {
            "description": "The unique number assigned to the payslip.",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicPostedDocumentStatusEnum"
              }
            ],
            "default": "DRAFT",
            "description": "The current status of the payslip (draft or posted).\n\n[View the enum reference](publicposteddocumentstatusenum)"
          }
        },
        "required": [
          "amount",
          "balance",
          "created_ts",
          "currency",
          "employee",
          "id",
          "journal",
          "legacy_id",
          "modified_ts",
          "pay_items",
          "payslip_date",
          "payslip_number"
        ],
        "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/{id}/": {
      "patch": {
        "description": "Endpoint for partially updating an existing payslip.",
        "operationId": "payslips_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: `branch`, `employee`, `employee.reimbursements_account`, `journal`, `pay_items`, `pay_items.account`, `pay_items.cost_center`. Nested relations are joined with a dot. Pass `journal` to replace the journal ID with its object (ID, date, currency, reference, notes and timestamps). Documents without a journal still return null. Journal line items are retrieved separately with GET /v1/journal-line-items/?journal={journal_id}.",
            "in": "query",
            "name": "expand",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Patchedapi-v1-payslip"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Patchedapi-v1-payslip"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Patchedapi-v1-payslip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/api-v1-payslip"
                }
              }
            },
            "description": "",
            "headers": {
              "X-Wafeq-Idempotent-Replayed": {
                "description": "Indicates whether response was served from cache",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyAuth": []
          }
        ],
        "summary": "Partial update payslip",
        "tags": [
          "Payslips"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Wafeq API Base URL",
      "url": "https://api.wafeq.com/v1"
    }
  ],
  "x-readme": {
    "proxy-enabled": false,
    "samples-languages": [
      "shell",
      "http"
    ]
  }
}
```