1. แต้ม / แสตมป์ & ประวัติ
PointUpCRM Public API
  • ภาพรวมระบบ API
  • Authentication
  • QR รับแต้มท้ายใบเสร็จ
    • สร้าง QR Code ท้ายใบเสร็จ
      POST
    • สร้างยอดซื้อจาก POS
      POST
  • สมาชิก
    • ค้นหาสมาชิกด้วยเบอร์โทร หรือคำค้นทั่วไป
      GET
    • สร้างสมาชิกใหม่ หรืออัปเดตข้อมูลถ้ามีเบอร์นี้อยู่แล้ว
      POST
    • ดูข้อมูลสมาชิกรายคนด้วย member
      GET
  • แต้ม / แสตมป์ & ประวัติ
    • ยอดแต้ม/แสตมป์คงเหลือปัจจุบันของสมาชิก
      GET
    • รายการได้/ใช้แต้มล่าสุดของสมาชิก
      GET
    • ให้แต้มจากยอดขาย
      POST
  1. แต้ม / แสตมป์ & ประวัติ

ให้แต้มจากยอดขาย

Developing
POST
/api/integrations/v1/earn

Request

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/integrations/v1/earn' \
--header 'Content-Type: application/json' \
--data '{
  "phone": "0891234567",
  "externalRef": "POS-00231",
  "purchaseAmountTHB": 350.00,
  "storeCode": "BKK-01",
  "note": "โต๊ะ 4",
  "occurredAt": "2026-09-10T14:20:00Z"
}'
Response Response Example
{
    "ok": true,
    "duplicate": false,
    "memberId": "a1b2c3d4-...",
    "externalRef": "POS-00231",
    "purchaseAmountTHB": 350.00,
    "earnedUnits": 12,
    "balance": 252,
    "loyaltyMode": "Points",
    "unitLabel": "แต้ม",
    "ruleName": "1 บาท = 1 แต้ม"
}
Previous
รายการได้/ใช้แต้มล่าสุดของสมาชิก
Built with