Help Center โปรแกรมพันธมิตรและการติดตามการแนะนำแอป

โปรแกรมพันธมิตรและการติดตามการแนะนำแอป

SMSBAT มีโครงสร้างพื้นฐานการแนะนำโดยเฉพาะ ที่ช่วยให้นักพัฒนา พันธมิตรเอเจนซี และผู้ให้บริการซอฟต์แวร์สร้างรายได้จากการผสานรวม แอป CRM และโซลูชัน SaaS ของตน


1. ภาพรวมการสร้างรายได้สำหรับพันธมิตร

เมื่อแอปพลิเคชันของคุณ (เช่น ปลั๊กอิน Shopify โมดูล WooCommerce แอป Bitrix24 ส่วนขยาย Planfix หรือซอฟต์แวร์ที่พัฒนาเอง) ส่งข้อความผ่าน SMSBAT แพลตฟอร์มจะติดตามและบันทึกปริมาณข้อความที่ส่งทั้งหมดที่เชื่อมโยงกับ referralGuid เฉพาะของคุณ

รายได้ของพันธมิตรทำงานอย่างไร:

  1. Endpoint การแนะนำเฉพาะ: แอปพลิเคชันของพันธมิตรทุกตัวจะได้รับ referralGuid เฉพาะ
  2. การติดตามปริมาณอัตโนมัติ: ข้อความขาออกทั้งหมด (SMS, Viber, RCS) ที่ส่งผ่าน /bat/{referralGuid}/messagelist จะถูกนับเป็นเครดิตให้บัญชีพันธมิตรของคุณ
  3. การแบ่งรายได้ / คอมมิชชัน: คุณได้รับค่าคอมมิชชันเป็นเปอร์เซ็นต์จากทุกข้อความที่ลูกค้าส่งโดยใช้การผสานรวมของคุณ

2. การผสานรวมทางเทคนิค (API Endpoint)

แอปพลิเคชันของพันธมิตรส่งข้อความโดยระบุ referralGuid ในเส้นทาง URL ของ API Endpoint รองรับทั้ง HTTP Basic Authentication และ API Key Authentication (X-Authorization-Key)

Endpoint

POST https://restapi.smsbat.com/bat/{referralGuid}/messagelist

ตัวอย่างตัวเลือกที่ 1: HTTP Basic Authentication

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.