1. QR รับแต้มท้ายใบเสร็จ
PointUpCRM Public API
  • ภาพรวมระบบ API
  • Authentication
  • QR รับแต้มท้ายใบเสร็จ
    • สร้าง QR Code ท้ายใบเสร็จ
      POST
    • สร้างยอดซื้อจาก POS
      POST
  1. QR รับแต้มท้ายใบเสร็จ

สร้างยอดซื้อจาก POS

Developing
POST
/api/integrations/v1/earn

Request

Header Params

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 'X-CRMPlus-Api-Key: {{apiKey}}' \
--header 'Content-Type: application/json' \
--data '{
  "phone": "1233333333",
  "externalRef": "POS-INV-0001",
  "purchaseAmountTHB": 500,
  "storeCode": "BRN01",
  "note": null,
  "occurredAt": null
}'
Response Response Example
{
    "ok": true,
    "duplicate": false,
    "memberId": "db995f3c-96c4-41bf-9411-4ae637b27a49",
    "ledgerId": "c2dfe0b3-36fe-4a6f-82aa-1aa258b5565e",
    "submissionId": "54de66ab-52aa-4206-94f3-098112577a2c",
    "externalRef": "POS-INV-0001",
    "purchaseAmountTHB": 500,
    "earnedUnits": 1,
    "balance": 11,
    "loyaltyMode": "Points",
    "unitLabel": "points",
    "ruleName": "ss"
}
Modified at 2026-06-20 03:40:43
Previous
สร้าง QR Code ท้ายใบเสร็จ
Built with