I set up Postman with my projects certificates, and I can get a successful response from the helloworld endpoint. However, when I post to the Business Data Transaction API, I get a 404 response.
I am posting to https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/trxndata. I have updated Postman to use the correct certificates and credentials for my project.
{
"bank": [
{
"bankId": "999999"
}
]
}
In response, I get the following HTML.
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML; CHARSET=utf-8" />
<title>Error</title>
</head>
<body>
<H2>Error</H2>
<table summary="Error" border="0" bgcolor="#FEEE7A" cellpadding="0" cellspacing="0" width="400">
<tr>
<td>
<table summary="Error" border="0" cellpadding="3" cellspacing="1">
<tr valign="top" bgcolor="#FBFFDF" align="left">
<td><STRONG>Error</STRONG></td>
</tr>
<tr valign="top" bgcolor="#FFFFFF">
<td>This page can't be displayed. Contact support for additional
information.<br/>The incident ID is: N/A.</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
I would appreciate any help troubleshooting this. I was unable to find any sample code for the Business Data Transaction API. If that exists, I imagine it would make clear what I am doing wrong.
Regards,
Jason
Solved! Go to Solution
Hi @expense_pcm,
If you are able to connect to the helloworld endpoint with your project certificates, that means your credentials and Postman setup are good.
Can you please share what payload you are sending to the Business Data Transaction API request? Please also share the response body showing the error message and the response header with the x-correlation ID. We'll be able to troubleshoot further with the additional information you provide us. Thanks.
Thanks for your quick response. I just noticed that there are some invisible characters resulting from me copying and pasting the URL into postman. Now I get a slightly more useful reponse.
Postman is sending the following request headers:
Hi @expense_pcm,
Thank you for sharing additional details on the error. This is very helpful and I was able to recreate the error on my end by sending the same payload you sent. I am working with the product team to get the correct payload. Please stay tuned.
Hi @expense_pcm,
Please try below payload and let me know how it goes. In case of error, please share the x-correlation id from the response header. Thanks.
{
"issuer": {
"metadata": {
"startDate": "2021/03/01",
"endDate": "2021/03/20",
"startIndex" : 0
},
"bank": [{
"regionId": 1,
"processorId": 1,
"bankId": "999999",
"company": [
{
"companyId": "12345"
}
]}]
}
}