Class ByProjectKeyDiscountCodesKeyByKeyPost

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyDiscountCodesKeyByKeyPost>, Deprecatable200Trait<ByProjectKeyDiscountCodesKeyByKeyPost>, ErrorableTrait<ByProjectKeyDiscountCodesKeyByKeyPost>, ExpandableTrait<ByProjectKeyDiscountCodesKeyByKeyPost>, ClientRequestCommand<DiscountCode>, CreateHttpRequestCommand, HttpRequestCommand<DiscountCode>, RequestCommand<DiscountCode>

Deprecated OAuth 2.0 Scope: manage_orders:{projectKey}



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.discount_code.DiscountCode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .discountCodes()
            .withKey("{key}")
            .post(null)
            .execute()