# Open account pages with params

Base JS calls:

```javascript
Ecwid.openPage('account');

Ecwid.openPage('account/subscription');sd
```

List of additional parameters for the `'account'` call:

* `'returnurl'` - Optional parameter for redirecting users to a specific URL after successful login.

Code example:

```javascript
Ecwid.openPage('account', {'returnurl': 'https://www.ecwid.com/demo/Surfboards-c20671017'});
```

List of additional parameters for the `'account/subscription'` call:

* `'id'` - Subscription ID used to redirect customers to a specific subscription page. Required parameter.

Code example:

```javascript
Ecwid.openPage('account/subscription', {'id': 1006502});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ecwid.com/storefronts/open-page-on-the-storefront/open-account-pages-with-params.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
