Typescript SDK Type Docs
    Preparing search index...

    Class ByProjectKeyMeOrdersQuotesRequestBuilder

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

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

    Methods

    post

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

      Creates an Order from a Quote for the authenticated Customer. To create B2B Orders, the Customer must have the CreateMyOrdersFromMyQuotes Permission.

      The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
      
      Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
      
      Specific Error Codes:
      
      - [OutOfStock](ctp:api:type:OutOfStockError)
      - [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
      - [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
      - [AssociateMissingPermission](ctp:api:type:AssociateMissingPermissionError)
      

      Parameters

      Returns ApiRequest<Order>