commercetools icon

commercetools

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

Actions671

Associate Business Unit → Delete BusinessUnit by ID

AI-generated

Summary

Delete an associate business unit identified by its ID and current version number from the commercetools project associated with the authenticated credentials.

Inputs

  • Associate Business Unit ID (required) — The unique identifier of the associate business unit to delete.
  • Version (required) — The current version of the business unit, used for optimistic concurrency control to prevent delete conflicts.

Output shape

a JSON object representing the deleted Business Unit, or an error if the deletion fails.

Requires valid authentication credentials with the project key and region configured. The version parameter must match the current version of the business unit to succeed. Errors are returned as NodeApiError exceptions with HTTP status code details.

Examples

Example 1: Delete a business unit with ID '12345' at version 3.

Set 'Associate Business Unit ID' to '12345' and 'Version' to 3. The node performs an authenticated DELETE request to remove that business unit from commercetools.

Links

Discussion