Class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead,JsonNode>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead>, ClientRequestCommand<JsonNode>, CreateHttpRequestCommand, HttpRequestCommand<JsonNode>, RequestCommand<JsonNode>

Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.



   CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .cartDiscounts()
            .withId("{ID}")
            .head()
            .execute()