Class ByProjectKeyDiscountCodesByIDDelete

All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyDiscountCodesByIDDelete,DiscountCode>, ConflictingTrait<ByProjectKeyDiscountCodesByIDDelete>, DataerasureTrait<ByProjectKeyDiscountCodesByIDDelete>, Deprecatable200Trait<ByProjectKeyDiscountCodesByIDDelete>, ErrorableTrait<ByProjectKeyDiscountCodesByIDDelete>, ExpandableTrait<ByProjectKeyDiscountCodesByIDDelete>, VersionedTrait<ByProjectKeyDiscountCodesByIDDelete>, ClientRequestCommand<DiscountCode>, CreateHttpRequestCommand, HttpRequestCommand<DiscountCode>, RequestCommand<DiscountCode>

Deleting a Discount Code produces the DiscountCodeDeleted Message.

Deprecated OAuth 2.0 Scope: manage_orders:{projectKey}



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.discount_code.DiscountCode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .discountCodes()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()