HiddifySales Partner

Partner documentation

How to use the partner cabinet, API, and BOT-T shop integration. Share this link with your partner.

Selling through a BOT-T shop?
Step-by-step guide: connect the product, load keys into the stock, and when your balance is charged.

BOT-T guide

Contents

  1. What you need to start
  2. Partner cabinet
  3. Key names in Hiddify
  4. REST API
  5. BOT-T integration: step-by-step guide
  6. Go-live checklist
  7. FAQ before you connect the API
  8. No developer? They will wire the API for you

1. What you need to start

Cabinet login and password Issued by an admin. Login: /partner
API key (pk_…) Shown once when created. Keep it secret.
Account balance Shared with the account wallet: top up in the user cabinet or Telegram bot; an admin can also credit it. Partner price is charged from it.

Missing something? Contact the HiddifySales admin.

Open cabinet Login page

2. Partner cabinet

In the cabinet you monitor balance, key issuances, client-facing names, and API settings.

Partner balance is the same as the linked user’s account wallet. Top up in the /partner Balance section with the same methods as regular clients (card, FPS, crypto, etc.), or via the account cabinet / Telegram bot. An admin can also credit manually.

3. Key names in Hiddify

By default Hiddify may show something like “vp26….site default” or the system RushVPN title. You can set your own brand and template so new keys are labeled for your shop or bot.

Settings: cabinet /partner → Key names. Applies to new issuances (API and BOT-T stock). Old links are not renamed.

Template placeholders

Token What is inserted
{brand}Your brand from settings
{country}Server country (Germany, Netherlands…)
{country_code}Country code (DE, NL…)
{server}Server name in the panel
{id}Subscription id
{order}external_order_id from the request (falls back to subscription id)
{note}client_note from the request (falls back to brand)
{tariff}Tariff name

Examples

We set the title on the Hiddify panel user and append #title to subscription_url. Most clients show that name. Sometimes the panel hostname still appears — that is a raw-panel-URL import quirk, not your template.

For a one-off name on a single issuance, pass profile_name in POST /keys (up to 80 characters). It overrides the cabinet template for that key only:

{
  "package": "tariff",
  "tariff_id": 12,
  "profile_name": "VIP Client DE",
  "external_order_id": "order-1001"
}

4. REST API

Use the REST API for your own bot or to stock BOT-T warehouse lines.

Base URL: https://v2raysales.site/api/v1/partner

Auth: X-API-KEY: pk_... or Authorization: Bearer pk_...

Endpoints

Method Path Purpose
GET/tariffsTariff catalog with your discounted price
GET/serversServers and countries (id, country_code)
GET/balanceShared wallet (same as user account) and quotas
POST/keysIssue a trial or paid key (country, optional profile_name)
GET/keys/{id}Get issuance by id
GET/keys/by-order?external_order_id=...Find by external_order_id
GET/keys/{id}/transfer-targetsServers this key can move to
POST/keys/{id}/transferChange key location (server_id or country_code)
POST/keys/{id}/extendrenew a key by the tariff term (same link, partner_price is charged)

POST /keys: optional profile_name — one-off client title. Without it, the Key names cabinet template is used. Response field: profile_title.

Change location (same as retail account clients)

An active issued key can move to another Hiddify server at no charge: expiry and remaining traffic are kept. The old link stops working — give the client the new subscription_url from the response. Partner balance is not charged.

GET https://v2raysales.site/api/v1/partner/keys/123/transfer-targets
X-API-KEY: pk_YOUR_TOKEN

POST https://v2raysales.site/api/v1/partner/keys/123/transfer
X-API-KEY: pk_YOUR_TOKEN
Content-Type: application/json

{
  "country_code": "DE"
}

Pass server_id or country_code (same as issue). Available targets: GET /keys/{id}/transfer-targets. Errors: not_active, same_server, server_not_found, transfer_failed.

Stock for BOT-T (billing=on_sale)

Create a key without charging immediately and paste subscription_url into a BOT-T unique product line.

POST https://v2raysales.site/api/v1/partner/keys
X-API-KEY: pk_YOUR_TOKEN
Content-Type: application/json

{
  "package": "tariff",
  "tariff_id": 12,
  "billing": "on_sale",
  "external_order_id": "stock-1",
  "profile_name": "MyBrand Germany"
}

billing=immediate — charge now (your bot). billing=on_sale — charge after BOT-T payment. profile_name — optional Hiddify title for that stock line.

REST errors

errorHTTP
unauthorized401
forbidden403
insufficient_balance402
quota_exceeded429
validation_error422
provisioning_failed503

5. BOT-T integration: step-by-step guide

BOT-T sells keys from its own stock: the buyer gets a ready link from a stock line. Our part is to give you keys for the stock, check a key before payment and charge the partner price after payment. No programming required.

Stock is not refilled automaticallyYou create keys in the cabinet and paste them into the BOT-T stock. When the stock runs out, create a new batch.
Charged only on saleWhile a key sits in the stock, your balance is not charged. After payment in BOT-T the partner price is charged.
Term starts at purchaseThe buyer gets the full tariff term from the purchase date, even if the key was in stock for a while.

Setup step by step

  1. Get access and top up

    Contact support — we create your partner account, cabinet login and an API key pk_… (shown once, keep it). Top up in the cabinet → "Balance".

    https://v2raysales.site/partner

  2. Create a product in BOT-T

    In your BOT-T shop create a product of type "Unique product". You set the retail price. One product = one tariff (e.g. "VPN for 30 days"): do not mix keys of different tariffs in one stock.

  3. Connect the API in the product card

    Open the product → API section and paste two links. Replace pk_YOUR_TOKEN with the full API key you received when joining (the cabinet "API" page shows only its beginning).

    Pre-payment check
    https://v2raysales.site/api/v1/partner/bot-t/check?api_key=pk_YOUR_TOKEN

    Post-payment notify
    https://v2raysales.site/api/v1/partner/bot-t/notify?api_key=pk_YOUR_TOKEN

    The key is passed in the URL because BOT-T cannot send custom headers. Do not publish these links.

  4. Create keys for the stock

    In the cabinet open "Key issuances" and click "Create BOT-T stock keys":

    • choose the tariff — the same as the BOT-T product;
    • set the quantity (up to 10 at a time, repeat for more);
    • leave the server country on Auto if you like;
    • click "Create" — a window with links opens, click "Copy".
  5. Paste links into the stock

    Paste them into the unique product stock in BOT-T. One link = one line = one buyer:

    https://vpN.example/…/sub/…
    https://vpN.example/…/sub/…
    https://vpN.example/…/sub/…
  6. Test with a purchase

    Buy the product in your bot. You get a link from the stock; in the cabinet the key becomes "sold" and the partner price is charged. Open the link in Hiddify / Happ / v2rayTun — the VPN works.

  7. Watch stock and balance

    When few lines are left, create a new batch. If the links window was closed, select issuances in the table and choose "Download links (.txt)".

Important

  • Keep at least one key price on the balance. BOT-T checks the key with us before payment: if the balance is short, the line is skipped and the order fails.
  • Do not stock more than one tariff term ahead: a key left in stock longer than the tariff term expires and BOT-T skips it.
  • Do not sell or share stock links outside BOT-T — a key is charged only when bought through BOT-T.
  • BOT-T gives at most 20 lines per order.

BOT-T FAQ

Will the stock refill automatically when I buy keys via the API?
No. Create keys in the cabinet (or via the API) and paste them into the BOT-T stock. There is no automatic BOT-T stock refill.

When am I charged?
Only when a buyer pays for the order in BOT-T. Creating stock keys is free.

What if my balance runs out?
BOT-T cannot hand out a key and the order is not created. Top up — sales continue with the same stock.

Where do I get the pk_… API key?
The administrator issues it when you join. If it is lost, contact support for a new one (then update the links in BOT-T).

For developers: how BOT-T webhooks work

BOT-T shop does not use your REST catalog; it uses two webhooks on a unique product card.

Stock keys can also be created via the API — POST /keys with billing=on_sale. The subscription_url in the response is the stock line.

POST https://v2raysales.site/api/v1/partner/keys
X-API-KEY: pk_YOUR_TOKEN
Content-Type: application/json

{"package": "tariff", "tariff_id": 12, "billing": "on_sale", "external_order_id": "stock-1"}

Check response

HTTP 200 and JSON only:

{"success": true}
{"success": false}

true — line goes to the order; false — next line. Non-JSON / non-200 — order is not created. Limit: up to 20 lines per order.

After payment (status=1)

The buyer already got the link from BOT-T stock. We accept form-urlencoded (id, status, user[telegram_id], product[data]) and respond with any 2xx.

Up to 3 retries are handled idempotently by BOT-T order id.

6. Go-live checklist

7. FAQ before you connect the API

The questions bot owners usually ask. Read this first, then message the admin only if something specific is still unclear.

Partner prices

Tariff Days Traffic Devices Storefront Partner
1 день 1 5 GB 2 50 ₽ 35 ₽
1 месяц (старт) 30 100 GB 5 149 ₽ 104.3 ₽
1 месяц 30 unlimited 10 249 ₽ 174.3 ₽
3 месяца 90 unlimited 10 499 ₽ 349.3 ₽
6 месяцев 180 unlimited 10 899 ₽ 629.3 ₽
12 месяцев 365 unlimited 10 1 499 ₽ 1 049.3 ₽

Current prices at the standard 30% discount. Your exact price is in GET /tariffs and in the cabinet.

What is the partner price?

30% off the storefront price (a different rate only by separate agreement). There is no minimum package: you pay per issued key. Live prices are in the Partner prices table above; GET /tariffs returns the same (list_price and your partner_price).

How do I join? Do I need a large deposit?

Message the admin that you need partner access. We attach the partner role to your account, open /partner, and issue a pk_… key. No large deposit. Top-up starts at 50 RUB, same as a regular customer. No balance — no paid keys. Balance on the wallet — keys issue. That is the whole model.

Can I get a test key without topping up?

For a personal network test: register in our sales Telegram bot — welcome trial keys are issued there (usually an EU location). After partner access is on, the API trial is free: POST /keys with package=trial_1d (price 0). There is no free starter pack of many keys.

Which tariffs can I issue via API? Unlimited traffic? Device limits?

Any tariff currently sold on the site. GET /tariffs: duration, traffic (empty traffic_gb means unlimited), partner_price. Device limits match the public plan card. If it is not in the API catalog, you cannot issue it.

Can I issue “Russia → Europe” keys via API?

No. That is not a partner product: there is no such tariff in the API and none is planned. Do not promise that plan to your users.

How do I renew a client key? Does the link stay the same?

Yes, the link stays the same. POST /keys/{id}/extend extends an issued key by the tariff term (the same tariff by default, or pass tariff_id). If the key is still active, the term is added to the current expiry; if it has expired, it counts from the moment of renewal. partner_price is charged from your balance. Pass renewal_id (for example, the payment id in your bot): a retry with the same renewal_id is not charged twice. We do not charge the client's card automatically: your bot takes the payment and then calls extend.

Can I read remaining traffic and key status via API?

Issuance status, expires_at, and the subscription URL — yes: GET /keys/{id} or GET /keys/by-order. There is no live “N GB left” counter in the partner API today. If your bot needs it, ask — we can add it.

How do I top up the partner balance?

Same as a regular user: Balance in /partner, the site account, or the Telegram bot. Minimum 50 RUB. Same methods as on the site (card, FPS, crypto, etc.). Partner wallet and the linked user wallet are one balance.

Can I set a custom subscription name in the client’s Hiddify app?

Yes. In /partner → Key names set your brand and template (e.g. LostTV {country}). New issuances show that title instead of “vp….site default” / RushVPN. For a one-off name on a single key, pass profile_name in POST /keys. Already issued keys are not renamed.

Can I change country/server for an already issued key?

Yes, same as retail clients: GET /keys/{id}/transfer-targets and POST /keys/{id}/transfer with server_id or country_code. Free; expiry and remaining traffic are kept. The old subscription_url stops working — send the client the new one from the response. Balance is not charged.

Can someone wire the API for me?

Yes. Docs and the cabinet are ours. If you have no developer, hire the BizDevOps integration helper for the bot, BOT-T, payments, and VPS. Quote before work; you contract them directly. They are not HiddifySales key support.

Can I sell under my own brand (for example, “PREMIUM VPN by ZK”)?

Yes, white-label is allowed. The name, prices, bot and shop are yours; you do not have to show the RushVPN or HiddifySales names to clients. The subscription name in the client app is set in /partner → Key names. We do not ship a separate app under your brand: clients connect with Hiddify, Happ, v2rayNG and other VPN clients. You support your own buyers; network and key questions come to us.

Can I fully automate issuing and renewals in a Telegram bot?

Yes. Typical flow: the bot takes payment → POST /keys with external_order_id → sends the client subscription_url. Renewal: POST /keys/{id}/extend, the client keeps the same link. Status and expiry: GET /keys/{id}. If you do not want to code, connect a BOT-T shop with the ready-made guide or order the integration from BizDevOps.

Which devices are supported?

Android, iPhone and iPad, Windows, macOS, Linux and Android TV. A key is a subscription link: it opens in Hiddify (all platforms), Happ, v2rayNG, NekoBox, Streisand and other clients that support subscriptions. How many devices can connect at once depends on the tariff: see device_limit in GET /tariffs and the Devices column in the price table.