This recipe demonstrates how to add checkout and cart pages to a Wix site when the Stores app is installed but pages are missing.
When Wix Stores is installed on a site, it should automatically create cart and checkout pages. However, in some cases these pages may be missing. This recipe provides a way to add them programmatically.
Endpoint: POST https://www.wix.com/_api/add-pages-to-site/install
Request:
Response: 200 with {"pagesAdded": ["<widgetId>", ...]} when the call completes within the gateway timeout. On sites with many installed apps the call usually does not complete in time — see the notes below.
Answer as troubleshooting, not as a failed install:
| What happened | What to do | Why |
|---|---|---|
504 Gateway Timeout after ~30 seconds | Wait 1–2 minutes, then verify that the cart/checkout pages exist and checkout works | The gateway timed out while the server-side install may still be running |
| Pages now exist | Do not call the endpoint again | The repair completed despite the timeout |
| Pages are still missing after waiting | Call the endpoint once more, then verify again | A second call is only warranted after the first run had time to finish |
Do not describe an immediate retry as harmless or normally idempotent. The endpoint only adds missing pages, but each call still starts a full scan/add/republish pass, so retrying before the first pass finishes can create overlapping work and another publish.
504 Gateway Timeout (sometimes wrapped as Internal Server Error with errorCode: -100) while the installation keeps running server-side and usually completes.www.wix.com (for example, the Wix MCP CallWixSiteAPI tool). Sandboxed code-execution tools (such as ExecuteWixAPI) block this host and fail with 403 Forbidden: requests to www.wix.com not allowed.Use this recipe when:
After adding pages:
Last updated: 30 July 2026