Class ByProjectKeyDiscountCodesKeyByKeyPostString

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyDiscountCodesKeyByKeyPostString>, Deprecatable200Trait<ByProjectKeyDiscountCodesKeyByKeyPostString>, ErrorableTrait<ByProjectKeyDiscountCodesKeyByKeyPostString>, ExpandableTrait<ByProjectKeyDiscountCodesKeyByKeyPostString>, 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("")
            .execute()