commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Product → Check if Product exists by ID

AI-generated

Summary

Check the existence of a Product by its ID using a HEAD request to the commercetools API.

Inputs

  • Product ID (required) — The unique identifier of the Product to check existence for.

Output shape

a single JSON object

The output indicates whether the Product exists with a boolean 'exists' property, HTTP status code in 'statusCode', and the requested URL in 'url'. If the Product does not exist, 'exists' is false with statusCode 404. On other errors, the operation throws an error.

Examples

Example 1: Check if a Product with ID '12345' exists.

Set 'Product ID' parameter to '12345' and select operation 'Check if Product exists by ID'. The node returns a JSON object indicating existence.

Links

Discussion