> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: updatePriceQuote(id: IdAndVersion, priceQuoteInfo: PriceQuoteInfo, fieldMask: Array) # Method package: wixBillingBackend # Method menu location: wixBillingBackend --> PriceQuotes --> updatePriceQuote # Method Link: https://dev.wix.com/docs/velo/apis/wix-billing-backend/price-quotes/update-price-quote.md # Method Description: Updates an existing price quote. The `updatePriceQuote()` function returns a Promise that resolves to the updated price quote's ID and version when the price quote is updated. If the existing price quote contains information that is not included in the updated price quote, that information is lost. For example, if a price quote contains metadata information, but when updating the quote no metadata information is sent, the updated quote will not have any metadata. > **Note:** The customer listed on the price quote must be an existing site contact or member. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Update an existing price quote ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { priceQuotes } from 'wix-billing-backend'; export const updatePriceQuote = webMethod(Permissions.Anyone, (id) => { return priceQuotes.getPriceQuote(id) .then((result) => { //make some changes result.title = "Updated Title"; let updateFields = { "title": result.title, "customer": result.customer, "currency": result.currency, "lineItems": result.lineItems, "discount": result.discount, "paymentTerms": result.paymentTerms, "metadata": result.metadata, "dates": result.dates }; return priceQuotes.updatePriceQuote(result.id, updateFields); }); }); ``` ---