合作伙伴计划与应用推荐追踪
SMSBAT 提供专用的推荐基础设施,使开发者、代理合作伙伴和软件供应商能够通过其集成、CRM 应用和 SaaS 解决方案实现收益。
1. 合作伙伴变现概述
当您的应用(例如 Shopify 插件、WooCommerce 模块、Bitrix24 应用、Planfix 扩展或自定义软件)通过 SMSBAT 发送消息时,平台会追踪并记录与您唯一的 referralGuid 关联的所有消息发送量。
合作伙伴收益如何计算:
- 唯一推荐端点:每个合作伙伴应用都会获得唯一的
referralGuid。 - 自动发送量追踪:通过
/bat/{referralGuid}/messagelist发送的所有出站消息(SMS、Viber、RCS)都会计入您的合作伙伴账户。 - 收益分成/佣金:使用您的集成的客户每发送一条消息,您都可获得一定比例的佣金。
2. 技术集成(API 端点)
合作伙伴应用通过在 API URL 路径中传入其 referralGuid 来发送消息。该端点同时支持 HTTP 基本认证和 API 密钥认证(X-Authorization-Key)。
端点
POST https://restapi.smsbat.com/bat/{referralGuid}/messagelist
方式 1:HTTP 基本认证示例
curl -i -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Basic base64(login:password)" \
-d '{
"messages": [
{
"from": "Shopillect",
"to": "380936670003",
"type": "sms",
"text": "Your order confirmation from Shopillect",
"ttl": "120"
}
]
}' \
"https://restapi.smsbat.com/bat/34e19d34-abef-4acd-8c94-bd38c0a543fd/messagelist"
方式 2:API 密钥请求头示例
curl -i -X POST \
-H "Content-Type: application/json" \
-H "X-Authorization-Key: your-api-key" \
-d '{
"messages": [
{
"from": "Shopillect",
"to": "380936670003",
"type": "sms",
"text": "Your order confirmation from Shopillect",
"ttl": "120"
}
]
}' \
"https://restapi.smsbat.com/bat/34e19d34-abef-4acd-8c94-bd38c0a543fd/messagelist"
---
## 3. Request Parameters
| Parameter | Type | Description |
|---|---|---|
| `{referralGuid}` | `string (guid)` | Path parameter holding your partner application referral GUID |
| `messages` | `array` | List of message payloads |
| `from` | `string` | Sender Alpha Name |
| `to` | `string` | Recipient phone number in E.164 format |
| `type` | `string` | Message type (`sms`, `viber_promo`, `viber_trans`, `rcs`, `flashcall`) |
| `text` | `string` | Message body text |
| `ttl` | `string/int` | Time-to-live in seconds |
---
## 4. How to Join the Partner Program
1. Register a partner account at SMSBAT.
2. Generate or request your unique **`referralGuid`** for your integration.
3. Configure your application's API requests to use `https://restapi.smsbat.com/bat/{referralGuid}/messagelist`.
4. Monitor message traffic, volume analytics, and your referral commission payouts inside the SMSBAT Partner Dashboard.