Skip to content

useB2bQuoteManagement

useB2bQuoteManagement ​

Category:
B2B

Composable to manage quotes in the B2BQuote module.

With this composable you can:

  • Get list of quotes
  • Get quote details
  • Create and delete a storefront draft version of the quote
  • Decline quote, with or without a line item comment
  • Request change of the quote
  • Change shipping method
  • Change payment method
  • Create order from quote
  • Request quote

Types ​

ts
export function useB2bQuoteManagement(): UseB2bQuoteManagement

source code

ts
export type DeclineQuoteParams = {
  /** Message content */
  comment: string;
  /** Identifier of the quote line item that owns the new comment */
  lineItemId: string;
  /**
   * Draft version identifier of the quote currently shown in storefront,
   * as returned by `createDraftQuoteVersion`. This is not the `versionId`
   * property of the quote entity.
   */
  versionId: string;
};

source code

ts
export type ChangePaymentShippingMethodParams = {
  quoteId: string;
  paymentMethodId?: string;
  shippingMethodId?: string;
};

source code

Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)