Typescript SDK Type Docs
    Preparing search index...

    Class ByProjectKeyOrdersQuotesRequestBuilder

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    args: {
        baseUri?: string;
        executeRequest: executeRequest;
        pathArgs: { projectKey: string };
    }

    Methods

    post

    • post(
          methodArgs: {
              body: OrderFromQuoteDraft;
              headers?: { [key: string]: string | string[] };
          },
      ): ApiRequest<Order>

      Creates an Order from a Quote. The referenced Quote must have the Pending state and must be valid (not past the validTo date); otherwise, an InvalidOperation error is returned.

      Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
      
      Specific Error Codes:
      
      - [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
      - [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
      - [InvalidOperation](ctp:api:type:InvalidOperationError)
      - [OutOfStock](ctp:api:type:OutOfStockError)
      

      Parameters

      Returns ApiRequest<Order>