Sometimes when we are posting some values to Netsuite through their API, the API is triggered twice because
we may posting the params to the response as the same response from NetSuite.
Avoid printing the params in the response.
Try this
if($res['status']==200){
$response = array(
'status' => 200,
'message' => 'Submitted Successfully',
);
}
instead of :
if($res['status']==200){
$response = array(
'status' => 200,
'message' => 'Submitted Successfully',
'params' => curl_exec($curl)
);
}