bee-products-delete
Version: 2.0.3
Overview
Use the Bee Website Builder Open API to move one or more products to the recycle bin.
Supports batch deletion of product IDs under a specified language. Deleted products are moved to the recycle bin and can be restored there if deleted by mistake.
Input Parameters
api_key (string, Required)
API authentication key used to identify the caller and control interface access permissions.
- Get it from: https://open.tradew.com
- Used for API permission validation
language (string, Required)
Enabled site language.
⚠️ Must be selected manually from the list returned by
bee-languages-get. AI inference or automatic generation is not allowed.
id_list (array of integers, Required)
Product ID list, up to 100 items. Matching products will be moved to the recycle bin.
Output Structure
Top-Level Structure
| Field | Type | Description |
|---|---|---|
| status | boolean | Request status |
| msg | string | Response message |
| data | object/null | Returned data |
data
| Field | Type | Description |
|---|---|---|
success |
array | Successfully recycled items |
fail |
array | Failed deletion items |
data.success[]
| Field | Type | Description |
|---|---|---|
id |
integer | Product ID |
msg |
string | Success message |
data.fail[]
| Field | Type | Description |
|---|---|---|
id |
integer | Product ID |
msg |
string | Failure message |
Dependencies
| Parameter | Dependency skill | Field source | Mode |
|---|---|---|---|
| language | bee-languages-get | list[].language | select |
Usage Example
{
"api_key": "your-api-key",
"language": "en",
"id_list": [
18468028,
18467384,
18466967
]
}
Notes
- This delete action moves products to the recycle bin instead of permanently removing them.
- If a product is deleted by mistake, it can be restored from the recycle bin.
Response Example
{
"status": true,
"msg": "Deleted successfully",
"data": {
"success": [
{
"id": 18468028,
"msg": "Deleted"
}
],
"fail": [
{
"id": 18467384,
"msg": "Data not found"
}
]
}
}
