$record_id = 4080213000022405377;
$moduleIns = ZCRMRestClient::getInstance()->getModuleInstance("Sales_Orders"); //to get the instance of the module
$records = array();
$record = ZCRMRecord::getInstance("Sales_Orders", $record_id); //To get ZCRMRecord instance
$record->setFieldValue("Sales_Order_Owner", "{4080213000021862885}"); //This function use to set FieldApiName
$record->setFieldValue("Subject", "TOAST"); //This function use to set FieldApiName - Premium
array_push($records, $record); // pushing the record to the array.
$responseIn = $moduleIns->updateRecords($records);
var_dump($responseIn);
if ($responseIn) {
$responseIn->getData();
foreach ($records as $key => $value) {
if ($value instanceof ZCRMRecord) { // If value is ZCRMRecord object
echo $value->getEntityId(); // to get the record id
// echo $value->getModuleApiName(); // to get the api name of the module
echo $value->getLookupLabel(); // to get the lookup label of the record
echo '<br>';
} else { // If value is not ZCRMRecord object
echo $key . ":" . $value;
echo '<br>';
}
// echo $record_id = $record->getEntityId();
}
}