> 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: resumeOrder(orderId: string, options: Options) # Method package: wixPricingPlansBackend # Method menu location: wixPricingPlansBackend --> Orders --> resumeOrder # Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/orders/resume-order.md # Method Description: Resumes a paused pricing plan order. The `resumeOrder()` function returns a Promise that resolves when a paused order is successfully resumed. For orders with recurring payments, `resumeOrder()` also restarts the payment schedule. Resuming an order causes the following changes: + The order status changes to `"ACTIVE"`. + The `pausePeriods` array is updated. + The `endDate` for the order is adjusted to include the pause period. + The `earliestEndDate` is adjusted to include the pause period. This property is reserved for future use. The [`onOrderResumed()`](wix-pricing-plans-backend/events/onOrderResumed) and [`onOrderUpdated()`](wix-pricing-plans-backend/events/onOrderUpdated) event handlers run when an order is resumed. > **Note**: Only site visitors with the **Manage Pricing Plans** and **Manage Subscriptions** [permissions](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Froles-and-permissions/roles) > can resume orders. You can override the permissions by setting the function's `suppressAuth` > option to `true`. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Resume a paused order ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { orders } from 'wix-pricing-plans-backend'; // Sample orderId value: '19b28b41-1ef2-42dc-afaa-9dc1854d0191' export const myResumeOrderFunction = webMethod(Permissions.Anyone, async (orderId) => { try { const order = await orders.resumeOrder(orderId); return order; } catch (error) { console.error(error); } }); // Returns a promise that resolves to void ``` ## Resume a paused order, bypassing permission checks ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { orders } from 'wix-pricing-plans-backend'; /* Sample orderId value: '895fd8d9-f732-444f-a82b-19f7e55e9617' * * Sample options object: * { * suppressAuth : true * } */ export const myResumeOrderWithOptionsFunction = webMethod(Permissions.Anyone, async (orderId, options) => { try { const order = await orders.resumeOrder(orderId, options); return order; } catch (error) { console.error(error); } }); // Returns a promise that resolves to void ``` ---