commercetools icon

commercetools

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

Actions671

Product → Check if Product exists by Key

AI-generated

Summary

Check whether a product exists in commercetools by its unique Product Key using a HEAD request.

Inputs

  • Product Key (required) — The unique key of the product to check existence for.

Output shape

a single JSON object indicating existence status

Returns an object with fields 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the request URL). It returns exists=true with statusCode=200 if the product exists; exists=false with statusCode=404 if not. Errors other than 404 cause the node to throw an error.

Examples

Example 1: Check if a product with key 'my-unique-product' exists.

Set 'Product Key' to 'my-unique-product'. The node will respond with existence status.

Links

Discussion