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 Key

AI-generated

Summary

Check if an Associate Business Unit exists in commercetools by its unique key using a HEAD HTTP request.

Inputs

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

Output shape

a single JSON object indicating existence with fields: 'exists' (boolean), 'statusCode' (integer), and 'url' (string) representing the request URL.

The operation sends a HEAD request to the commercetools API endpoint for the specified business unit key. If the business unit exists, it returns { exists: true, statusCode: 200, url }. If not found, it returns { exists: false, statusCode: 404, url }. Other HTTP errors will cause the node to error.

Links

Discussion