commercetools icon

commercetools

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

Actions671

Associate Business Unit → Check if BusinessUnit exists by ID

AI-generated

Summary

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

Inputs

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

Output shape

a JSON object indicating existence with fields 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the checked endpoint URL)

Returns exists=true and statusCode=200 if the business unit is found; exists=false and statusCode=404 if not found. Throws an error for other HTTP errors.

Examples

Example 1: Check if a specific Associate Business Unit exists

Set 'Associate Business Unit ID' to the target ID; the node returns existence status without retrieving the full entity.

Links

Discussion