Delete
[POST] .../v1/promoprogramstock/delete
Removes warehouse assignments from a promotion. Remove stock assignments from one loyalty promotion program. The request body is an array of one to 250 records; every record must contain program_id and stock_id and all rows in the batch must target the same program_id. The method requires the promotion-stock delete permission, marks matching active links as deleted and returns row_affected. Errors such as a missing or empty array body, batch-size violations, invalid ids, mixed program_id values, denied access, disabled retail promotion tariff, missing active links or storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| program_id | Int64 | Required | Promotion ID. |
| stock_id | Int64 | Required | Stock ID. |
Request Example
[
{
"program_id": 1,
"stock_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
}
}