Changing the Write-off Status

Maxim

Maxim

Last updated on Oct 8, 2026

Changes the write-off status. The status determines whether the materials and products are deducted from stock.

v1/writeoffs/update_status.php

Parameters

Field Type Required Description
writeoff_id int Yes Write-off ID
status int Yes New status: 0 — Plan, 1 — Written off

Example request

{
    "writeoff_id": 19291,
    "status": 1
}

Example response

{
    "success": true
}

Errors

Error Reason
No writeoff_id in input A required field is missing (instead of writeoff_id, the field's name)
Invalid status value. Must be one of: 0, 1 Invalid status code
Write-off not found or access denied Write-off not found or deleted