$ch = curl_init();
$url = 'https://global.nextpoint.me/next-global/nextpoint/api/customer';
$body = array( 'phone' => '<phone_number_of_customer>' );
$headers = array(
'publicKey: <your_publicKey>',
'secretKey: <your_secretKey>'
'token: <your_token>' );
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_POST,true );
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 $response;