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 ID

AI-generated

Summary

Check whether a Business Unit exists by its ID using a HEAD request to the commercetools API.

Inputs

  • Business Unit ID (required) — The unique ID of the Business Unit to check for existence.

Output shape

a single JSON object indicating existence with properties 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the checked API endpoint).

Returns { exists: true, statusCode: 200, url: string } if found; returns { exists: false, statusCode: 404, url: string } if not found. Throws an error for other HTTP status codes.

Links

Discussion