[POST] .../v1/partner/delete
Deletes partner. Deletion available, if partner marked for deletion deleted_mark = true, for marking on deletion used method DeleteMark. Use this destructive method to soft-delete a partner after it was marked with Partner/DeleteMark. The method sets the internal deleted flag, writes an action log record, invalidates partner cache, sends the PartnerDeleted webhook and returns row_affected. The request body is required, id must identify an existing partner and deleted_mark must already be true; call Partner/DeleteMark first when the partner is not marked yet. The current request user must have partner delete permission. Missing body, invalid id, denied access, partner not marked for deletion, missing rows, transaction failures and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Partner ID. |
Request Example
{
"id": 15
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}