wafeq_payslips_pay_items_create
Create a pay item on a Wafeq payslip by supplying account, amount, and description. Use this to add earnings or deductions to payroll records.
Instructions
๐ก WRITE ยท creates data ยท Pay Items ยท POST /payslips/{payslip_id}/pay-items/
Create pay item
Endpoint for creating a new pay item.
Not idempotent โ calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payslip_id": "<payslip_id>",
"body": "<body>"
},
"name": "wafeq_payslips_pay_items_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | 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 | |
| payslip_id | Yes | ||
| idempotency_key | No | Optional idempotency key (sent as the X-Wafeq-Idempotency-Key header). A UUID v4 is generated automatically when omitted, so an automatic network retry can never duplicate this operation. Pass your own stable value to make a deliberate re-invocation safe as well. |