On this page6 sections
POST/api/products/archive-productProductsPermission: product.archive
Archive Product
Soft-archives a single product and deactivates its variants within the active tenant.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
idstring (uuid)required
id parameter.
Responses
Select a status code to inspect schema.
OK — Product archived successfully.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/products/archive-product
curl -X POST "https://api.invoger.com/api/products/archive-product" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" }'Interactive playground
Response
application/json
{
"success": true,
"message": "Product archived successfully",
"data": {
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"isArchived": true
}
}