Authenticate
การเรียกใช้งาน Pointspot API จำเป็นต้องมี business_token สำหรับธุรกิจของคุณก่อนเสมอ
เพื่อใช้สำหรับการยืนยันการเข้าใช้งานตามแพ็คเกจที่ได้สมัครไว้ การเรียกใช้ PointSpot API เป็นการเรียกใช้งานผ่าน
HTTPS Request สามารถนำไปพัฒนาใช้งานได้กับทุกภาษา สามารถขอ business_token ได้จากเมนู API Credential จากธุรกิจของคุณ
ข้อควรระวัง โปรดเก็บ business_token อย่างปลอดภัย ไม่ควรพัฒนาการเชื่อมต่อบน Client Side
ข้อควรระวัง โปรดเก็บ business_token อย่างปลอดภัย ไม่ควรพัฒนาการเชื่อมต่อบน Client Side
HTTPS GET Request
GET /api/business/this HTTP/1.1
Host: globalapi.pointspot.co
Authorization: Bearer {{business_token}}
HTTPS POST Request
POST /api/business/this/point HTTP/1.1
Host: globalapi.pointspot.co
Authorization: Bearer {{business_token}}
Content-Type: application/json
Content-Length: {{content_length}}
{
"type" : "send",
"receiver" : "{{mobile_number_or_pointspot_id}}",
"amount": 888,
"remark" : "ซื้อสินค้า 888 บาท"
}