Actions13
Income → Edit Deductions
AI-generatedSummary
Update deduction lines for a specified income record by its ID, providing various deduction details and custom fields.
Inputs
- Income Type Token (required) — Token identifying the income type to edit
- Username (required) — Username of the person performing the deduction edit
- Income ID (required) — Numeric ID of the income record to update
- Update Fields — Fields with deduction details to update, including 'Custom Deduction Lines' (mapping for deduction lines) and 'Fee Record Date' (the fee record date in DD/MM/YYYY format)
- Encoded Table Fields — One or multiple encoded table data sets (base64) representing deduction-related tables, each with a table name and its encoded data
- Custom Fields — Custom key-value pairs specific to the income type, allowing additional deduction-related data to be updated
Output shape
a single record representing the API response after editing deductions
The output is the processed API response object. On failure, an error is thrown with the API message. Returned data includes updated deduction details corresponding to the specified income ID.
Examples
Example 1: Edit deductions for an existing income record to update custom deduction lines and fee record date, including any custom or encoded table data.
Provide incomeTypeToken, username, id of the income to edit, various updateFields (like custom_deduction_lines, fee_record_date), optionally encodedTables and customFields with additional data.