---
title: "Create pay item"
method: POST
path: "/payslips/{payslip_id}/pay-items/"
tags: ["Pay Items"]
---

# Create pay item

`POST /payslips/{payslip_id}/pay-items/`

Endpoint for creating a new pay item.

## Path parameters

- `payslip_id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- 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

## Response `201`

- 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)
