Delete a product
Deletes the product with its child collections and returns 204. Cannot be undone. Call `GET {productId}/check-delete` first to find out whether the delete is allowed. Requires `Permissions.Product.Delete`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerint32response?unknownapplication/octet-streamcurl -X DELETE 'https://<your-instance>/api/products/0' \ -H 'Authorization: Bearer <access-token>'nullGet a product GET
Returns one product by `productId`. Use `details` to pick which sub-collections (barcodes, units, variants, …) are loaded; omit it for the header only, which is much cheaper. Requires `Permissions.Product.View`.
Update a product PUT
Updates the product and the child collections present in the body, then returns the stored product with everything loaded. Collections the body leaves out are untouched. Requires `Permissions.Product.Update`.