API เพิ่มพอยท์
Add point
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
$ch = curl_init();
$url = 'https://global.nextpoint.me/next-global/nextpoint/api/customer/point-plus';
$body = array(
'phone' => '<phone_number_of_customer>',
'price' => '<number_of_point>', );
$headers = array(
'publicKey: <your_publickey>',
'secretKey: <your_secretkey>',
'token: <your_token>' );
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_POSTFIELDS,
json_encode($body));$response = curl_exec($ch);
url_close($ch);
echo $responseName
Value
Name
Type
Description
Last updated