Class ByProjectKeyStandalonePricesPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyStandalonePricesPost>, ErrorableTrait<ByProjectKeyStandalonePricesPost>, ExpandableTrait<ByProjectKeyStandalonePricesPost>, ClientRequestCommand<StandalonePrice>, CreateHttpRequestCommand, HttpRequestCommand<StandalonePrice>, RequestCommand<StandalonePrice>

Creating a Standalone Price produces the StandalonePriceCreated Message.

  • If the Standalone Price has the same price scope as an existing Standalone Price, a DuplicateStandalonePriceScope error is returned.
  • If the Standalone Price has overlapping validity periods within the same price scope, a OverlappingStandalonePriceValidity error is returned. A Price without validity period does not conflict with a Price defined for a time period.


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.standalone_price.StandalonePrice>> result = apiRoot
            .withProjectKey("{projectKey}")
            .standalonePrices()
            .post(null)
            .execute()