Class ByProjectKeyDiscountCodesKeyByKeyDelete

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyDiscountCodesKeyByKeyDelete>, DataerasureTrait<ByProjectKeyDiscountCodesKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyDiscountCodesKeyByKeyDelete>, ErrorableTrait<ByProjectKeyDiscountCodesKeyByKeyDelete>, ExpandableTrait<ByProjectKeyDiscountCodesKeyByKeyDelete>, VersionedTrait<ByProjectKeyDiscountCodesKeyByKeyDelete>, 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()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()