Delete a supplier
DELETE
/suppliers/{id}
Soft-deletes the supplier and removes its link from every product that carried it, in one transaction, matching the behaviour of the admin app.
-
Removing the link is a change to each affected product, so its
versionbumps and it reappears in the caller’s next delta-sync poll. -
A purchase order that named this supplier keeps its
supplier_id. That reference is not nulled, and is left pointing at the deleted row. -
404 NOT_FOUND: the id is foreign, unknown, or already deleted.
Requires scope: catalog:write
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Delete a supplier
Media typeapplication/json
No content.
object
Examplegenerated
{}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}