> 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: getOnlineOrderPreview(planId: string, options: GetOnlineOrderPreviewOptions) # Method package: wixPricingPlansV2 # Method menu location: wixPricingPlansV2 --> orders --> getOnlineOrderPreview # Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-v2/orders/get-online-order-preview.md # Method Description: Returns an `order` object that represents a potential online order for a site member. You can use this method to show a site member a preview of an online order before [creating](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/pricing-plans/orders/create-online-order.md) it. This method must be called using the site member identity ([SDK](https://dev.wix.com/docs/sdk/articles/get-started/about-identities.md#site-member) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities.md#site-member)). Therefore, [Wix apps](https://dev.wix.com/docs/build-apps.md) can't currently call this method using REST. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## getOnlineOrderPreview example ```javascript import { orders } from 'wix-pricing-plans.v2'; async function getOnlineOrderPreview(planId, options) { try { const result = await orders.getOnlineOrderPreview(planId, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## getOnlineOrderPreview example for exporting from backend code ```javascript import { orders } from 'wix-pricing-plans.v2'; import { webMethod, Permissions } from 'wix-web-module'; export const getOnlineOrderPreview = webMethod( Permissions.Anyone, async (planId, options) => { try { const result = await orders.getOnlineOrderPreview(planId, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---