Delete

[POST] .../v1/promoprogramstock/delete

Deletes assignments promotion to warehouse. Use this destructive batch method to 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. Business 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 persistence failures 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
  }
}