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

  • When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyQuotes Permission.

    Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.

    Specific Error Codes:

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

    Parameters

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

    Returns ApiRequest<Order>