Constructors

Properties

Methods

Constructors

Properties

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

Methods

  • 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>