sendPriceQuote( )


Sends a price quote preview link to a customer via email.

The sendPriceQuote() function returns a Promise that resolves when the price quote with the specified ID and version is sent to the customer listed on the price quote.

Use the emailOptions parameter to specify the subject and body of the email sent to the customer.

Method Declaration
Copy
function sendPriceQuote(id: IdAndVersion, emailInfo: EmailInfo): Promise<void>;
Method Parameters
idIdAndVersionRequired

ID and version of the price quote to send.


emailInfoEmailInfoRequired

Information used when sending the email.

JavaScript
import { Permissions, webMethod } from "wix-web-module"; import { priceQuotes } from "wix-billing-backend"; export const sendPriceQuote = webMethod( Permissions.Anyone, (id, version, subject, body) => { const idAndVersion = { id: id, version: version, }; const emailInfo = { subject: subject, body: body, }; return priceQuotes.sendPriceQuote(idAndVersion, emailInfo); }, );
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?