Class ByProjectKeyDiscountCodesPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyDiscountCodesPost>, ErrorableTrait<ByProjectKeyDiscountCodesPost>, ExpandableTrait<ByProjectKeyDiscountCodesPost>, ClientRequestCommand<DiscountCode>, CreateHttpRequestCommand, HttpRequestCommand<DiscountCode>, RequestCommand<DiscountCode>

Creating a Discount Code produces the DiscountCodeCreated Message.

Deprecated OAuth 2.0 Scope: manage_orders:{projectKey}



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