パートナープログラムとアプリ紹介トラッキング
SMSBAT は、開発者、代理店パートナー、ソフトウェアベンダーが連携、CRM アプリ、SaaS ソリューションで収益化できる、専用の紹介インフラを提供しています。
1. パートナー収益化の概要
お客様のアプリケーション (Shopify プラグイン、WooCommerce モジュール、Bitrix24 アプリ、Planfix 拡張機能、独自のソフトウェアなど) が SMSBAT 経由でメッセージを送信すると、プラットフォームは、お客様固有の referralGuid に紐づくすべてのメッセージ送信量を追跡して記録します。
パートナー収益の仕組み:
- 固有の紹介エンドポイント: すべてのパートナーアプリケーションに、固有の
referralGuidが発行されます。 - 自動的な送信量の追跡:
/bat/{referralGuid}/messagelistを通じて送信されたすべての送信メッセージ (SMS、Viber、RCS) は、お客様のパートナーアカウントに計上されます。 - 収益分配 / コミッション: お客様の連携を使用しているクライアントが送信したメッセージごとに、一定割合のコミッションを獲得できます。
2. 技術的な連携 (API エンドポイント)
パートナーアプリケーションは、API の URL パスに referralGuid を含めてメッセージを送信します。このエンドポイントは、HTTP Basic 認証と API キー認証 (X-Authorization-Key) の両方をサポートしています。
エンドポイント
POST https://restapi.smsbat.com/bat/{referralGuid}/messagelist
オプション 1: HTTP Basic 認証の例
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.