Constructors

Properties

Methods

Constructors

Properties

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

Methods

  • Creates an Order from a Quote. 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>