commercetools icon

commercetools

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

Actions671

Business Unit → Check if BusinessUnit exists by Key

AI-generated

Summary

Check if a Business Unit exists in commercetools by sending a HEAD request to the Business Unit identified by the provided key.

Inputs

  • Business Unit Key (required) — The unique key identifying the Business Unit to check for existence.

Output shape

a single JSON object containing 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the requested API endpoint).

The operation returns 'exists' as true if the Business Unit is found (HTTP 200), or false if not found (HTTP 404). Other HTTP errors will throw an error and fail the node unless 'Continue On Fail' is enabled.

Links

Discussion