PartnerShare
品牌主
营销方式
联盟增长找外部推广者来卖你的产品 推荐营销(老带新计划)让老用户带来新用户
使用案例
AI 工具站教程测评带来订阅转化 IP 代理服务站追踪首单、续费与佣金 电商独立站用分销和内容测评提升转化 指纹浏览器触达跨境和多账号运营人群
推广者 推广市场
导航站
跨境电商导航 AIGC 导航 全球 IP 代理导航 精选产品
价格
资源
博客增长方法、渠道拆解与产品更新 帮助中心接入文档、账户设置与常见问题 最新资讯出海营销动态与行业热点
品牌主
营销方式 联盟增长 推荐营销(老带新计划) 使用案例 AI 工具站 IP 代理服务站 电商独立站 指纹浏览器
推广者 推广市场
导航站
跨境电商导航 AIGC 导航 全球 IP 代理导航 精选产品
价格
资源
博客 帮助中心 最新资讯

选择入口

请选择适合您的身份入口。

管理产品和联盟计划 品牌主 创建产品、设置佣金规则并管理推广转化。 创建品牌主账号→ 发现好产品赚取佣金 推广者 发现高佣产品,一键获取专属推广链接。 免费入驻推广市场→ 发布产品资讯获取曝光 内容发布方 提交产品并发布资讯,获取中文内容曝光。 进入内容发布平台→

预约 1v1 演示

产品顾问将在 1 个工作日内与你约定 30 分钟在线演示,带你搭好第一个推广计划。

提交后我们会尽快与你联系。

想先自己体验?免费注册 →

提交即表示你同意 PartnerShare 为安排产品演示而联系你。

微信扫码联系

使用微信扫描二维码添加企业微信,产品顾问会尽快与你联系。

PartnerShare 企业微信二维码 PartnerShare Telegram 二维码 保存图片到本地 CHAT ON TELEGRAM
✓

申请已提交

我们会尽快联系你,安排演示和接入建议。你也可以先注册账号体验产品。

Skip to content

Getting Started

4
  • How to Launch Your Affiliate Program on PartnerShare
  • How to Create a Referral Program
  • What Is Referral Marketing / “Old-Bring-New” Program
  • What is Affiliate Marketing?
合作伙伴管理 - PartnerShare

Campaign Operations

5
  • Checking Partner Withdrawal Status
  • Withdrawal Methods Supported for Partners
  • Affiliate Management
  • Product Management
  • Campaign Management
支付与交易 - ParterShare

Payments&Transactions

2
  • Auto-Payout
  • Commission Settlement
技术集成 - PartnerShare

Account Management

2
  • Business Certification Prompts
  • Team Management
技术集成 - PartnerShare

Technical Integration

5
  • Embedding PartnerShare into Your Product
  • Conversion Event Postback
  • Click-Tracking SDK Integration
  • API Authentication & Signature Mechanism
  • PartnerShare Product-Authorized Login Integration Guide
常见问题 - PartnerShare

Frequently Asked Questions

2
  • Withdrawal FAQ
  • Legacy Help Center Entrance
快速入门 - PartnerShare

Changelog

2
  • Changelog – 2026.03.05
  • Changelog – 2026.05.15
View Categories
  • 帮助中心
  • Technical Integration
  • Embedding PartnerShare into Your Product

Embedding PartnerShare into Your Product

Embedded Referral Center

Use the server-side login endpoint to generate a promoter-center access token for the current user, then embed PartnerShare via an iframe in your product’s dashboard. Users never leave your system and never need to sign up or log in again — they can view referral links, invite data, rewards, and withdrawal info directly.

Key concepts: server-side token generation, automatic promoter signup/login, frontend only renders the iframe, ideal for backend/dashboard embedding

1. When to use this

If you want to add a “Referral Center,” “Invite & Earn,” or “Affiliate Program” module directly inside your own product’s dashboard — letting users complete all promotion-related actions without leaving your system — this embedded approach is more natural and keeps a consistent brand experience compared to redirecting to an external site.

Reduce redirect drop-off: Users stay inside your product to complete promotion actions, keeping the flow continuous with a lower barrier to entry.

Lower dev cost: Referral links, invite data, reward stats, and withdrawal capability are all handled by PartnerShare — no need to build a full promotion backend yourself.

Unified account experience: Your business users can map directly to a PartnerShare promoter identity, avoiding duplicate signup and separate login.

2. Integration pattern

We recommend a three-part structure: “your frontend initiates access → your server exchanges for a token → PartnerShare renders the promoter-center page.” This keeps the API Secret secure while ensuring the iframe page loads reliably.

Embedded integration flow: #

  1. Your product’s frontend — The user clicks the “Referral Center” entry point, which requests your own server to generate an access token for the current user. (Never touches the API Secret directly.) → Request Token
  2. Your product’s server — Signs with the API Key, timestamp, and API Secret, then calls PartnerShare’s login endpoint to exchange for a promoter token. (Signs and obtains the token server-side.) → Returns Token
  3. PartnerShare iframe — Once the frontend has the token, it renders an iframe showing the referral center, invite data, and reward info directly inside your product’s page. (User stays in your product.)

Never call PartnerShare’s login endpoint directly from the frontend! The API Secret must stay on your server. The frontend should only call your own backend endpoint; your backend calls PartnerShare to get the token, then returns the result to the frontend for iframe rendering.

3. Page preview

The image below shows what an embedded dashboard looks like. The referral center appears as a module inside your product’s dashboard — users can view promotion data, marketing assets, dedicated links, and invite codes directly within your own system.

4. Prerequisites

  • Product creation and basic configuration completed in the PartnerShare dashboard.
  • Referral campaign, reward rules, and promotion URL already configured.
  • The API Key and API Secret for the relevant product already obtained.
  • Your server can securely store the API Secret and make HTTPS requests.

If you’re not yet familiar with the open API’s authentication method, first read API Authentication & Signature Mechanism.

5. Getting a promoter login token

Your server must first call the following endpoint to generate a promoter-center access token for the current business user. If the user doesn’t yet exist in PartnerShare, the system automatically creates a promoter account and adds them to the default referral program; if they already exist, it reuses the existing account and refreshes the login state.

POST https://api-service.partnershare.net/api/open/v1/promoter/login

5.1 Request headers #

HeaderRequiredDescription
X-Api-KeyYesThe API Key PartnerShare assigned to the current product.
X-Api-TimestampYesSecond-precision timestamp, used to prevent replay attacks.
X-Api-SignYesThe SHA256 signature generated with the API Secret per the signing rules.
Content-TypeYesapplication/json recommended.

5.2 Request parameters #

ParameterTypeRequiredDescription
user_idstringYesThe unique user identifier within your own system. PartnerShare uses this field to idempotently create or reuse a promoter account.
emailstringNoUser email. Format is validated when provided; can be used for promoter profile display.
usernamestringNoDisplay name. If empty, the email is used first, otherwise it’s auto-generated from user_id.
langstringNoLanguage code, supports zh, en, zh-hk; defaults to en.
phonestringNoPhone number, can supplement the promoter’s profile.
theme_modestringNoReferral center theme, supports light or dark; defaults to light if not provided.

5.3 Request example #

bash

curl -X POST "https://api-service.partnershare.net/api/open/v1/promoter/login" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: pk_xxxxxxxxxxxxxxxxxxxxx" \
  -H "X-Api-Timestamp: 1776677721" \
  -H "X-Api-Sign: calculated_signature" \
  -d '{
    "user_id": "user_10001",
    "email": "user@example.com",
    "username": "Alex",
    "lang": "zh",
    "theme_mode": "light"
  }'

5.4 Response example #

json

{
  "code": 0,
  "message": "success",
  "data": {
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
    "user_string_id": "ps8xk2m9qa",
    "lang": "zh",
    "theme_mode": "light"
  }
}

5.5 Response fields #

FieldTypeDescription
codeintStatus code; 0 = success, non-zero = failure.
messagestringDescription of the response.
data.tokenstringThe referral-center login token, used to build the iframe URL.
data.user_string_idstringPartnerShare’s internal promoter string ID, useful for troubleshooting and data linking.
data.langstringThe promoter’s current language.
data.theme_modestringThe referral center’s current theme, returns light or dark.

6. Creating the embedded iframe

Once your frontend gets the token from your own server, set the iframe’s src to the PartnerShare referral center URL.

https://promoter.partnershare.net/iframe/{token}

html

<iframe
  src="https://promoter.partnershare.net/iframe/{{token}}"
  width="100%"
  height="900"
  frameborder="0"
  allow="clipboard-write"
></iframe>

✓ Recommended approach: Request a fresh token from your server every time the user enters the referral center page, then render the iframe. Don’t hardcode a historical token into the page, and don’t cache the token long-term in frontend storage.

7. Recommended frontend/backend split

Your server is responsible for: #

Storing the API Secret, generating the signature, calling /api/open/v1/promoter/login, and returning the token to your own frontend.

Your frontend is responsible for: #

Requesting your own server’s endpoint when the user enters the referral entry point, and using the returned token to render the PartnerShare iframe.

javascript

// Frontend example: only calls your own server, never PartnerShare directly
async function mountPartnerShareIframe() {
  const res = await fetch("/api/partner-share/iframe-token");
  const data = await res.json();

  document.querySelector("#partnerShareIframe").src =
    `https://promoter.partnershare.net/iframe/${data.token}`;
}

8. FAQ

8.1 Why must the token be obtained server-side? #

Because the token-generation endpoint requires API Key signature authentication, and the API Secret can only be stored server-side. If it’s placed in the frontend, anyone could forge a request to create or log into a promoter account.

8.2 Will the same user’s promoter account be recreated every time they visit the page? #

No. PartnerShare looks up existing promoter accounts under the current product by user_id. The same user_id reuses the same promoter account and updates the necessary profile info.

8.3 What if the iframe page won’t load or shows a login error? #

Call /api/open/v1/promoter/login again to get a new token, and confirm the iframe URL is using the latest returned data.token.

8.4 Why does the API return “no referral campaign exists for this product”? #

This means the current product doesn’t yet have an available referral campaign. First complete the product’s basic configuration, reward rules, and referral campaign setup in the PartnerShare dashboard, and make sure the campaign is active.

8.5 Can I customize the iframe height? #

Yes. We recommend setting the container width to 100% and choosing a height that fits your dashboard layout — common values range from 850px to 980px. For mobile pages, adapt responsively based on your own product’s layout.

9. Integration checklist

  • The frontend never stores or exposes the API Secret.
  • The server generates a fresh timestamp and signature on every request.
  • The same business user always uses a stable user_id.
  • The iframe is rendered with the latest token, and re-fetched if it expires.
Updated on 26/08/2026

Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Conversion Event Postback
大纲
  • Embedded integration flow:
  • 5.1 Request headers
  • 5.2 Request parameters
  • 5.3 Request example
  • 5.4 Response example
  • 5.5 Response fields
  • Your server is responsible for:
  • Your frontend is responsible for:
  • 8.1 Why must the token be obtained server-side?
  • 8.2 Will the same user's promoter account be recreated every time they visit the page?
  • 8.3 What if the iframe page won't load or shows a login error?
  • 8.4 Why does the API return "no referral campaign exists for this product"?
  • 8.5 Can I customize the iframe height?
PartnerShare

帮出海 SaaS 找到推广者、跑起联盟、放大用户推荐。先免费接入,跑出数据再升级。 Find promoters, run affiliate, and turn user referrals into a tracked growth channel. Start free, upgrade after data.

产品 Product

  • 联盟增长Affiliate growth
  • 邀返系统Referral program
  • 推广市场Marketplace
  • 价格Pricing

资源 Resources

  • 博客Blog
  • 帮助中心Help center
  • 最新资讯Latest news

导航站 Directory

  • 跨境电商导航Cross-border Ecommerce Directory
  • AIGC 导航AIGC Directory
  • 全球 IP 代理导航Global IP Proxy Directory
  • 精选产品Featured Products

联系方式 Contact

联系Contact business@partnershare.net
PartnerShare 公众号二维码
in XHS

版权所有© 广州标品科技创新有限公司, SAASBASE PTE. LTD. 丨 粤ICP备2022116046号 © Guangzhou Biaopin Technology Innovation Co., Ltd., SAASBASE PTE. LTD. · ICP 2022116046

服务协议Terms of Service 隐私政策Privacy