sync tpa correction : GWM

This commit is contained in:
Gowtham M 2025-12-24 18:49:48 +05:30
parent 40cb975f63
commit 75b2c052fd

View File

@ -484,7 +484,7 @@ class MediAssistApiController extends BaseController
} }
} }
public function ClaimDetail($claimId = 585) // 585 this id for test public function ClaimDetail($claimId = null) // 585 this id for test
{ {
helper('api'); helper('api');
@ -545,7 +545,7 @@ class MediAssistApiController extends BaseController
} }
// dd($body);
// $body = [ // $body = [
// "policyNo" => "97000063250400000031", // "policyNo" => "97000063250400000031",
@ -560,7 +560,7 @@ class MediAssistApiController extends BaseController
// CALL API // CALL API
$response = call_third_party_api($url, $method, $headers, $body); $response = call_third_party_api($url, $method, $headers, $body);
// dd($response);
if ($response['status'] != true || empty($response['data']['claimsData'][0])) { if ($response['status'] != true || empty($response['data']['claimsData'][0])) {
log_message('error', 'CLAIM STATUS FAILED | for ticket ID: ' . $claimId.' | response: '.json_encode($response)); log_message('error', 'CLAIM STATUS FAILED | for ticket ID: ' . $claimId.' | response: '.json_encode($response));