Reference การดำเนินงาน

API & การเชื่อมต่อ

The API & การเชื่อมต่อ ส่วน contains tools for programmatic integration of 7stamp with your external systems — CRM, POS, ERP, analytics, messenger bots.

อ่านเร็ว

อัปเดตแล้ว: 25 พฤษภาคม 2569

14. API & การเชื่อมต่อ

0601 Apikey

The API & การเชื่อมต่อ ส่วน contains tools for programmatic integration of 7stamp with your external systems — CRM, POS, ERP, analytics, messenger bots.

API Keys

The main page of the ส่วน is the API key list. Columns:

  • Name — key name (usually matches the linked พนักงาน name).
  • Login — the พนักงาน login the key is tied to.
  • API Key — the key itself (starts with 7loc_sc_..., hidden by default, copyable with one click).
  • StatusActive.
  • 🔄 — regenerate the key.
  • 🗑️ — delete the key.

Creating an API key

0602 Apikey

Tap + ADD API KEY — the Generate API Key popup opens:

  • พนักงาน สแกนner — dropdown to pick the พนักงาน Login the key will be bound to (one พนักงาน can have one key).
  • Buttons CANCEL / GENERATE.

After GENERATE the key is created and appears in the list. Copy it immediately — the full key may not be shown again.

What you can do via the API

  • Issue a การ์ด to a ลูกค้า by email/phone.
  • Add a แสตมป์ to a specific ลูกค้า.
  • Issue a voucher (templated or custom, with Redeem Code).
  • Redeem a voucher (if you work via your own POS).
  • อ่าน state of the การ์ด, progress, history.
  • Subscribe to Webhooks to receive events in real time.

Webhooks

Webhooks send การ์ด events to an external system. การสนับสนุนed (see the event glossary):

  • การ์ด_issued, การ์ด_saved, การ์ด_opened.
  • แสตมป์_added.
  • goal_reached, รางวัล_issued.
  • voucher_issued, voucher_redeemed, voucher_expired.
  • lottery_played (with the result).
  • birthday_reached.
  • inactivity_trigger.
  • แคมเปญ_sent.

Webhook payload example

{
 "event": "voucher_redeemed",
 "timestamp": "2026-05-11T12:34:56Z",
 "ธุรกิจ_id": "b_123",
 "location_id": "loc_45",
 "ลูกค้า": {
 "id": "c_789",
 "วอลเล็ต_pass_id": "wp_abc",
 "language": "en"
 },
 "การ์ด": { "id": "การ์ด_001", "goal_index": 2 },
 "voucher": {
 "id": "v_555",
 "type": "voucher",
 "redeem_code": "FREECOFFEE",
 "redeem_code_formats": ["text", "qr", "barcode"],
 "status": "redeemed",
 "redeemed_via": "พนักงาน_scanner"
 }
}

Ready-made POS integrations

  • Poster — ready-made integration, connects in a few clicks.
  • Serve — ready-made integration.
  • Other tills — made on request. Free if technically feasible (i.e., your till exposes an เปิด API or Webhooks).

Messenger broadcasts via 7loc.com

For WhatsApp, Telegram, Viber broadcasts, the 7loc.com integration is connected. Once active, the “messengers” channel becomes available in แคมเปญ ถัดไป to PUSH and Email.

ไม่-code scenarios: Zapier and Make

7stamp API + Webhooks work with Zapier and Make (Integromat), letting you build scenarios without coding:

  • “When voucher_redeemed — add a tag in Mailchimp”.
  • “When goal_reached — send a notification to Slack”.
  • “When birthday_reached — สร้าง a task in CRM”.

คำแนะนำแบบภาพ

Use the screen sets below as a visual companion to the บทความ. เปิด any image to inspect it at full size.

API keys і integration settings

2
Список API keys із чинними інтеграційними credentials
Створення нового API key для наступного інтеграційного сценарію

อ่านส่วนนี้ก่อน

ขั้นตอนถัดไป

คู่มือ
เริ่มต้นใช้งาน 12 พฤษภาคม 2569

คู่มือผู้ใช้ 7stamp

แต่ละส่วนจากคู่มือเดิมถูกแปลงเป็นบทความคลังความรู้ของตัวเอง และหน้านี้ทำหน้าที่เป็นแผนที่ของชุดคำแนะนำทั้งหมด

อัปเดตแล้ว: 12 พฤษภาคม 2569

เปิดบทความ
Reference
การดำเนินงาน 12 พฤษภาคม 2569

Zero Integration with Redeem Codes

This reference explains what Zero Integration means in practice, when to use it, and what operational trade-offs teams should expect.

อัปเดตแล้ว: 12 พฤษภาคม 2569

เปิดบทความ