Overview /
Stock & supply /
Delete a supplier
Delete a supplier
delete
https://api.flactrum.com/v1/suppliers/{supplier}
A supplier with purchase orders cannot be deleted; deactivate it instead.
| Required scope | suppliers.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| supplier * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/suppliers/01m43mzkw81sf36ayjgbhxrxnz' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/suppliers/01m43mzm57evtc4z7yww22rxrw' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This supplier has 1 purchase order(s) and cannot be deleted. Set is_active to false instead.",
"details": {
"purchase_order_count": 1
}
}
}