# How to Use Selling Platform

> For AI tools: this is the Markdown copy of https://xproxy.io/document/how-use-selling-platform. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Sell proxies from the Business plan: make ports, set quotas and rotation rules, and send them to customers.

The Selling Platform lets you sell your proxies. For each proxy you decide how long it lasts, how much data it gets, who can use it and what the customer may do.

**You need:** the Business plan, and a way for customers to reach your box: [your router](https://xproxy.io/document/how-public-access-xproxy) or [a VPS](https://xproxy.io/document/vps-forwarding-to-use-difference-place). Set a dashboard login first.

In short

**What you sell**

One proxy for one customer, or several ports on one modem. Each port has its own login, expiry and limits.

**You stay in control**

Set data quotas, a speed limit, allowed websites and rotation rules. When the time or the quota is over, the port closes.

**Customers help themselves**

Every proxy has a token. With it, the customer can rotate the IP or check the info, without asking you.

## Make and send your first proxies

**Step 1: Open Generate**

In your panel, open **Selling Platform** in the left menu. You see all your shared proxies.

Click **Generate** to make new ones. Later, the **Data Usage** column shows what each proxy has used.

![Selling Platform page: the menu item, the Generate button and the Data Usage column of the proxy list](https://media1.xproxy.io/docs/anywhere/sell-1-open.webp)

> Set your defaults once under **Selling Platform → Generate Template → Default Limits &amp; Rules**. Every new Generate form then starts with your values.

**Step 2: Choose the modems**

The Generate form has 4 tabs. This is the first one, **[1] Selection Devices**.

1. Choose the method. **Single Destination** makes one proxy on one modem. **Proxy Group** makes one proxy that works over several modems.
2. Pick the modems. Double-click a modem to move it to the right.
3. Set the **Number of Ports**: how many proxies to make for each modem. Use 1 for one customer. Use more to share a modem.

Lower down you can add a **Memo** and **Tags**, for example the customer's name.

![Generate Shared Proxy, tab 1 Selection Devices: the generate method, the lists of devices and the number of ports](https://media1.xproxy.io/docs/anywhere/sell-2-devices.webp)

**Step 3: Choose the type of proxy**

Open **[2] Port Configuration**.

1. **Port Type**: HTTP and SOCKS5 together, HTTP only, SOCKS5 only, VLESS (REALITY) or Shadowsocks.
2. **Proxy IP Type**: IPv4, IPv6, or two IPs with a fallback.
3. Port numbers: **Randomize**, or **Range**, which counts up from a start port. A range is easier to manage.
4. **Expired At**: the day the port closes by itself. Use **Quick set** for "1 month from now".

Lower down: **TCP/IP OS Profile**, **Connection Limit** and **Custom DNS**.

![Generate Shared Proxy, tab 2 Port Configuration: port type, proxy IP type, port numbers and the expiry date](https://media1.xproxy.io/docs/anywhere/sell-3-ports.webp)

> **TCP/IP OS Profile** makes each proxy look like Windows, macOS or a phone to websites. See [TCP OS spoofing](https://xproxy.io/document/tcp-os-spoofing).

**Step 4: Decide who can use it**

Open **[3] Port Policy**.

1. **IP Authentication**: only these customer IPs can connect.
2. **User Authentication**: a username and password. Tick **Auto generate** to let XProxy make them. Tick **Different user for each port** to give every port its own login.
3. **Restriction Whitelist / Blacklist Websites**: allow only some sites, or block some. For example `*.example.com`.

![Generate Shared Proxy, tab 3 Port Policy: IP authentication, user authentication, and website whitelist and blacklist](https://media1.xproxy.io/docs/anywhere/sell-4-policy.webp)

> Always set a user or an IP. A proxy without one can be used by anyone who finds the port.

**Step 5: Set the limits**

Scroll down on the same tab. Limits let you sell by size or by speed.

- **Upload, Download and Up/Down Quota**: **Unlimited** or a number of **MB**. Choose when it resets: daily, weekly, monthly or at the end of the quota.
- **Bandwidth Limit**: a speed limit in Mbps.
- **Connections rate limit**: for example 200 new connections every 60 seconds.

There is also an **Idle Timeout** (30 seconds by default).

![Generate Shared Proxy, tab 3 Port Policy, scrolled down: the quotas, the bandwidth limit and the connections rate limit](https://media1.xproxy.io/docs/anywhere/sell-4-quota.webp)

> When a customer uses up the quota, the proxy closes. See [quotas](#quotas) below.

**Step 6: Set the rotation rules, then Generate**

Open **[4] Rotation Settings**. This is what the customer may do with their token.

1. **Allow rotate via API?** and the **minimum time** between two rotations.
2. **Allow set interval rotation via API?** and the **minimum interval** the customer may choose.
3. **Set interval rotation time**: rotate automatically every N seconds. 0 means off.

Click **Generate**. Your new proxies appear in the list.

![Generate Shared Proxy, tab 4 Rotation Settings: rotate via API, interval rotation via API, the interval, and the Generate button](https://media1.xproxy.io/docs/anywhere/sell-5-rotation.webp)

> Proxy Group proxies do not rotate through the API.

**Step 7: Set your address and template**

Open **Selling Platform → Generate Template**. On **General Settings**:

1. **Based Domain/IP server for proxy**: the address customers connect to. Use your domain or a [Dynamic DNS](https://xproxy.io/document/dynamic-dns-setup) name. Empty? The box IP is used.
2. **Based Domain/IP url for web**: the base of the rotation and info links.
3. **Format Preferences**: the date and proxy format.
4. Click **Save Settings**.

![Generate Template page, General Settings: the base domain for proxies, the base URL for links, the format preferences and Save Settings](https://media1.xproxy.io/docs/anywhere/sell-6-template.webp)

> Put several domains in the list. The one marked **Default** is used first.

**Step 8: Shape the message to customers**

Open the **Template Builder** tab. It decides what the customer receives.

1. Start from a preset: SOCKS5 format, HTTP format, IP:PORT:USER:PASS or a table.
2. Edit the text for each proxy. Click a tag to add it, for example the domain, the port, the user or the rotation link.
3. Check the result in **Live Preview**.

You can also change the text at the top and the bottom of the message.

![Template Builder: the presets, the text for each proxy, the variable tags and the live preview](https://media1.xproxy.io/docs/anywhere/sell-7-builder.webp)

**Step 9: Send the proxies to your customer**

1. In the list, tick the proxies of one customer.
2. Open **Batch** and click **Copy Info**. The message in your template is copied.
3. Paste it into your chat or email.

Passing a proxy to a new customer? Click **Reset Token** so the old customer's links stop working.

![Selling Platform list with the Batch menu open: Copy Info and Reset Token](https://media1.xproxy.io/docs/anywhere/sell-8-copy.webp)

**Step 10: Watch the usage**

Open a proxy with the arrow. The list shows download and upload counters and the quota.

The details show the TCP/IP OS, the DNS, the connection limit, the rotation rules and the API token. Click the small pencil next to a value to change it.

Other tools in the **Batch** menu: **Edit Settings**, **Update Tags**, **Reset Data** and **Delete Proxies**. **Renew** extends the expiry date.

![One shared proxy opened in the list: its data usage and its technical configuration, rotation details and API token](https://media1.xproxy.io/docs/anywhere/sell-9-row.webp)

**What's next?**

Give customers their links: see the [customer links](#client-api) below. Want a name instead of an IP? See [Dynamic DNS](https://xproxy.io/document/dynamic-dns-setup).

## Customer links (token API)

Each proxy has its own token. Give the customer the links they need. Use your box address or your domain in place of `your-proxy-host`. The `${rotation_link}` and `${info_link}` tags in your template fill them in for you.

| What the customer does | Link | Good to know |
| --- | --- | --- |
| Rotate the IP | `http://your-proxy-host/selling/rotate?token=TOKEN` | Only if rotate via API is on. It waits the minimum time between two rotations. |
| Get the proxy info | `http://your-proxy-host/selling/info?token=TOKEN` | Read-only. |
| Change the login | `http://your-proxy-host/selling/change_user?token=TOKEN&user=NEWUSER&pass=NEWPASS` | Username and password: 3 to 15 letters or digits. |
| Change the allowed IPs | `http://your-proxy-host/selling/change_whitelist?token=TOKEN&ips=IP1,IP2` | Leave ips empty to remove all. |
| Change the auto-rotation time | `http://your-proxy-host/selling/change_interval_rotation?token=TOKEN&seconds=60` | seconds=0 turns it off. Only if interval rotation via API is on. |

```
curl "http://your-proxy-host/selling/rotate?token=TOKEN"
```

Using VPS forwarding? Switch on **Selling ports** in the Services step, so these links and ports are reachable through the VPS.

## Quotas

Quotas let you sell by data. The proxy closes by itself when the customer has used the allowance.

| Setting | What it means |
| --- | --- |
| Daily, Weekly, Monthly | A rolling 24 hours, 7 days or 30 days. It counts from the day the proxy was made or last renewed, not from midnight. |
| End of quota | One total for the whole life of the proxy. When it is used up, the proxy closes and shows as expired. |
| Upload, Download, Up/Down | Count one direction, or both together. |
| Reset Data | Sets the counters back to zero. |
| Reset Token | Gives the proxy a new token. Tokens never change on their own, not even when a proxy expires. |

## Something not working?

| You see | What to do |
| --- | --- |
| No **Selling Platform** in the menu, or it will not open | It needs the Business plan. See [Manage your subscription](https://xproxy.io/document/how-upgrade-subscription). |
| "Please select device/modem to generate shared proxy" | In tab **[1] Selection Devices**, move at least one modem to the right. |
| A customer cannot connect | Check that the box is reachable from the internet: [router](https://xproxy.io/document/how-public-access-xproxy) or [VPS](https://xproxy.io/document/vps-forwarding-to-use-difference-place). Check the expiry date and the quota too. |
| The rotate link says "Feature does not allowed" | Turn on **Allow rotate via API** for that proxy. Proxy Group proxies cannot rotate through the API. |
| The rotate link says "Please waiting for next" | The minimum time between two rotations has not passed yet. Wait for the seconds it shows. |
| The change-login link fails | The username and password need 3 to 15 letters or digits, with no special characters. |

---

Source: https://xproxy.io/document/how-use-selling-platform
