Maxim

Maxim

Last updated on Oct 8, 2026

Updates a supplier. Only the fields you pass are changed, the rest stay as they were.

v1/suppliers/edit.php

Parameters

Field Type Required Description
supplier_id int Yes Supplier ID
name string No Name
email string No Email
phone string No Phone
address string No Address
agreement string No Agreement
manager_name string No Manager
manager_post string No Manager's position
notes string No Notes

To clear a field, pass an empty string. Passing null leaves the field unchanged, as if it were not sent.

Example request

{
    "supplier_id": 45,
    "email": "wholesale@woodtrade.com",
    "notes": "Delivery on Tuesdays"
}

Example response

{
    "success": true
}

Errors

Error Reason
No supplier_id in input supplier_id is missing
Supplier not found or access denied Supplier not found or deleted
Name must not be empty An empty name was passed
Name must be a string name passed as an array or object