Constructors

Properties

Methods

Constructors

Properties

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

Type declaration

  • Optional baseUri?: string
  • executeRequest: executeRequest
  • pathArgs: {
        projectKey: string;
    }
    • projectKey: string

Methods

  • Creating an Order produces the OrderCreated Message.

    Specific Error Codes:

    - [OutOfStock](ctp:api:type:OutOfStockError)
    - [PriceChanged](ctp:api:type:PriceChangedError)
    - [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
    - [InvalidOperation](ctp:api:type:InvalidOperationError)
    - [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)

    Parameters

    • methodArgs: {
          body: OrderFromQuoteDraft;
          headers?: {
              [key: string]: string | string[];
          };
      }
      • body: OrderFromQuoteDraft
      • Optional headers?: {
            [key: string]: string | string[];
        }
        • [key: string]: string | string[]

    Returns ApiRequest<Order>