Re: VCES correlation ID is always null ?

Solved! Go to solution
salah
Regular Contributor

VCES correlation ID is always null ?

hello.

I am always receiving the following response :

 

[HTTP Status: 400] [{"statusCode":"105","statusDescription":"Invalid request object. Please check.","CorrelationId":null,"responseTimeStamp":"4/4/2024 10:31:49 AM","eligibilityLevel":"0","cardId":"0"}] Error connecting to the API (https://sandbox.api.visa.com/visacardeligibilityservices/v1/cardeligibility/validate)

 

 

my code was like this:

$gmt = gmdate("d/m/Y h:i:s A");
$unique_id = uniqid() ;
//$unique_id = urlencode(bin2hex(openssl_random_pseudo_bytes(10))) ;
echo $unique_id;

$postParameter = array (
'permanentAccountNumber' => "4000000000000007",

'vendorUniqueId' => "14096_TstVDPPgm1",
'requestTimeStamp'=> $gmt,
'correlationId' => "qazwsxedc123",
'extendedData' => "");



//print_r($postParameter);

$postParameter1 = http_build_query($postParameter);

//print_r($postParameter1);

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);

curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);

curl_setopt($curl, CURLOPT_PORT, 443);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 2);
curl_setopt($curl, CURLOPT_SSLVERSION, 1);
curl_setopt($curl, CURLOPT_SSLCERT, $cert);
curl_setopt($curl, CURLOPT_SSLKEY, $key);

curl_setopt($curl, CURLOPT_POST,true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postParameter1);

curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, "$username:$password");
curl_setopt($curl, CURLOPT_HTTPHEADER,'Content-Type:application/json');

 

 

visa error code description is :

 

105400Invalid request object. Please checkWhen any required field is empty

All

 

what was the mistake?

is it the reference data was out of date or what ?

please help.

3 REPLIES 3
SyedSa
Community Moderator

Re: VCES correlation ID is always null ?

Hi @salahThank you for reaching out! One of our agents will look into this and get back to you soon. Until then, if any community members know a solution, feel free to reply to this thread.

salah
Regular Contributor

Re: VCES correlation ID is always null ?

Hello  @SyedSa.

Thank you for your reply .

I have solved the issue and get success response :
Your call returned with a success code - 200Json Response: {"statusCode":"000","statusDescription":"Success","CorrelationId":"660fb438b3d42","responseTimeStamp":"4/5/2024 8:20:09 AM","eligibilityLevel":"0","isEligible":"True","cardId":"121"}

 

API_Products
Visa Developer Support Specialist

Re: VCES correlation ID is always null ?

Hi @salah,

 

Can you share how it was solved? 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.