Getting an error when calling sendPriceQuoteToCustomer as shown in
https://dev.wix.com/docs/velo/api-reference/wix-billing-backend/price-quotes/send-price-quote
export const
sendPriceQuoteToCustomer = webMethod(
Permissions.Anyone,
(id, subject, body) => {
const emailInfo = {
subject: subject,
body: body,
};
return priceQuotes.getPriceQuote(id).then((result) => {
return priceQuotes.sendPriceQuote(result.id, emailInfo);
});
},
);
Product:
Wix Editor
What are you trying to achieve:
Trying to use code to create and send quotes rather than using dashboard.
What have you already tried:
I can create the quotes using priceQuotes.createPriceQuote and they appear on the quotes page.
It returns the quote id and version.
calling priceQuotes.sendPriceQuote with the quote id, then delivers an error message
“Member is not related to price quote for instance…”
If I send it from the Price Quotes dashboard, it goes ok.
Any ideas?