Delete Products
Soft deletes the specified products. Differs from a full deletion in that: - Deleted products can be restored by calling the undelete endpoint. - Deleted products can be retrieved via a get request with the includeDeleted flag set to true.
| Verb | DELETE |
|---|---|
| Endpoint | {base-url}/products |
| Max Page Size | N/A |
Request Body
{
"requestFilter": {
"productIds": [4079]
}
}
Filters Honored
- RequestFilter
- productIds
Note
All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.
Returns
On Success
A 204 No Content.
On Error
| HTTP Code | Error Code | Definition |
|---|---|---|
| 403 | DATA_ACCESS_VIOLATION | One or more of the specified product IDs belong to an organization you do not have access to. |
| 404 | MISSING_RECORD | One or more of the specified product IDs does not exist. |