> For the complete documentation index, see [llms.txt](https://docs.txn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.txn.io/hosted-pages.md).

# Hosted pages

Txn provides hosted pages for invoices, channels, and payment links. The URL for each hosted page is returned in the `hostedPageUrl` parameter in API responses.

## **Example: Invoice Hosted Page**

{% code overflow="wrap" %}

```
https://sandbox.txn.io/redirect?item_id=1e331bac-ca3a-4480-9c66-ae2536f04b81&request_type=item_hosted_page
```

{% endcode %}

## **Customizing the Hosted Page Appearance**

You can use the following URL parameters to control the appearance of the hosted page:

1. **`showQrCode`**
   * Set to `true` to show the QR code by default, so end-users don’t need to click to expand it
   * Without it, users must click a button to view the QR code
2. **`hideLangSwitcher`**
   * Set to `true` to hide the language switcher
   * Without it, the language switcher is always visible
3. **`lang`** (`en`, `pt`, `fr`, `tr`, `es`, `jp`, `ar`, `cn`, `vn`, `ms`, `hi`, `ur`)
   * Specifies the language of the hosted page
   * By default, the platform detects the end-user's browser locale and applies the appropriate translation. If the locale isn't supported, English is used
   * `en` - English
   * `pt` - Portuguese
   * `fr` - French
   * `tr` - Turkish
   * `es` - Spanish
   * `jp` - Japanese (`ja` is also accepted)
   * `ar` - Arabic
   * `cn` - Chinese, Simplified (`zh` is also accepted)
   * `vn` - Vietnamese (`vi` is also accepted)
   * `ms` - Malay (Bahasa Melayu)
   * `hi` - Hindi
   * `ur` - Urdu

### **Example: Customized Hosted Page**

{% code overflow="wrap" %}

```
https://sandbox.txn.io/redirect?item_id=1e331bac-ca3a-4480-9c66-ae2536f04b81&request_type=item_hosted_page&showQrCode=true&hideLangSwitcher=true&lang=en
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.txn.io/hosted-pages.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
