[POST] .../v1/promoprogram/delete
Deletes promotion. Use this destructive method to delete a loyalty promotion program when it is no longer used by retail cards or related loyalty workflows. The method requires id, checks the promotion delete permission, marks the program and its settings as deleted, writes the action log and returns row_affected. Deletion is rejected when active retail cards are linked to the program, when the retail promotion tariff does not allow loyalty programs or when the target record is already missing. Business errors such as a missing request body, invalid id, denied access, linked-card restriction, disabled tariff option, missing record or persistent errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Promotion ID. |
Request Example
{
"id": 1
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}