API เพิ่มพอยท์
Add point
PUT
/
https://global.nextpoint.me/next-global/nextpoint/api/customer/point-plus
curl --location
-H "publicKey: <your_publickey> "
-H "secretKey: <your_secretkey> "
-H "token: <your_token> "
--data '{
"phone":"<phone_number_of_customer>" ,
"price":"<number_of_point>"}'
--request PUT https://global.nextpoint.me/next-global/nextpoint/api/customer/point-plus
Headers
Name
Value
publicKey
สามารถคัดลอกได้ที่หน้า เปิดใช้งาน API
secretKey
สามารถคัดลอกได้ที่หน้า เปิดใช้งาน API
token
Bearer <token>
สามารถขอได้จาก API Connect
Body
Name
Type
Description
phone
string
เบอร์โทรศัพท์ของลูกค้า
price
number
จำนวนพอยท์ที่ต้องการเพิ่ม
Response
{
"statusCode" : 200 ,
"status" : "OK" ,
"message" : "put point successfully" ,
}
Last updated