Class ByProjectKeyStagedQuotesPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyStagedQuotesPost>, ErrorableTrait<ByProjectKeyStagedQuotesPost>, ExpandableTrait<ByProjectKeyStagedQuotesPost>, ClientRequestCommand<StagedQuote>, CreateHttpRequestCommand, HttpRequestCommand<StagedQuote>, RequestCommand<StagedQuote>

Creates a StagedQuote in the Project.

  • InvalidOperation is returned in several cases, including the following:
    • The referenced Shipping Method is not active.
    • The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
    • The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.staged_quote.StagedQuote>> result = apiRoot
            .withProjectKey("{projectKey}")
            .stagedQuotes()
            .post(null)
            .execute()