commercetools icon

commercetools

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

Actions671

Customer Group → Delete CustomerGroup by ID

AI-generated

Summary

Delete a Customer Group by its ID and version in the commercetools project.

Inputs

  • Customer Group ID (required) — The unique identifier of the Customer Group to delete.
  • Version (required) — The current version number of the Customer Group used for concurrency control.

Output shape

a single JSON object representing the deleted Customer Group response from the API or an error object.

The operation requires the Customer Group ID and version number as inputs. It sends a DELETE request to the commercetools API including the version as a query parameter for optimistic concurrency. If successful, it returns the API response JSON for the deleted Customer Group. Errors are returned if deletion fails or parameters are invalid.

Examples

Example 1: Delete Customer Group with ID 'abc123' and version 3

Set 'Customer Group ID' to 'abc123' and 'Version' to 3, then execute the operation.

Links

Discussion