Problems do consume API Business Data Solution - enpoint Get Card Transactions on Postman

João
Helper

Problems do consume API Business Data Solution - enpoint Get Card Transactions on Postman

Hello,

 

I am trying to consume the endpoint for get card transactions on Postman, but I am having problems to get the data on the response. 
I am not sure what clientId to use on the header request, and what payload use on the body request. 


Below I show my postman configuration:

 

Certificades: 2-way SSL

URL: https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/trxndata

 

Method: POST

 

Params: empty

image.png

 

 

Authorization: Basic Auth using username and password

image.png

 

Headers: Content-Type application/json /// clientId 999999 (idk what id to use)

image.png

 

Body: (I am trying two types of body, each of them give me a different response)

 

Body 1 with response:

image.png
 
Body 2 with response:
image.png
image.png
 
Which body and clientId should I use? And how can I fix the request to work? 
 
Thanks!
3 REPLIES 3
jenn_kh
Community Moderator

Re: Problems do consume API Business Data Solution - enpoint Get Card Transactions on Postman

Hi, @João. Thank you for reaching out! Our agent will get back to you with a potential solution as soon as possible. If anyone else is able to help answer João's questions, feel free to respond here.   

-Jenn

I_Doroteo3
Visa Developer Support Specialist

Re: Problems do consume API Business Data Solution - enpoint Get Card Transactions on Postman

Hi @João

 

Please check the Test Data under your project dashboard to see Business Data Transactions API test data. 

 

Please also provide the following information: 

  1. Endpoint  
  2. Request Header 
  3. Request Body 
  4. Response Header (include the x-correlation-id) 
  5. Response Body 

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header. 

  

To learn more about common Visa Developer error codes and how to resolve them, please navigate to our Visa Developer Error Codes page here - https://developer.visa.com/pages/visa-developer-error-codes    

  

If you don't find an error code listed here, please refer to the API-specific error codes in its respective documentation pages.

 

Thanks, 

Illana

 

João
Helper

Re: Problems do consume API Business Data Solution - enpoint Get Card Transactions on Postman

Hi @I_Doroteo3 , thanks for reaching out

 

Sending the information requested:

 

1. Endpoint:

https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/trxndata

 

2. Request header:

Content-Type: application/json
clientId: 999999

3. Request body:

{
"issuer": {
"metadata": {
"startDate": "2021/03/01",
"endDate": "2021/03/20",
"startIndex" : 1
},
"bank": [{
"regionId": 1,
"processorId": 1,
"bankId": "6282",
"company": [
{
"companyId": "48800460"
}
]}]
}
}
 
4. Response header:
image.png
 
 
5. Response body:
{
"transactionData": {
"responseMetadata": {
"requestId": "1664459080_959_156804678_-756b6656z_VDP_WS"
},
"starterInfo": {
"invalidRegionId": [
1
],
"invalidProcessorId": [
1
],
"bankIdNotRegister": [
"6282"
],
"errorMessage": [
"Please check your inputs. Either of region ID or/and processor ID or/and Bank Id or/and Company Id are not registered for the given client ID!"
]
}
}
}
 
Test Data Dashboard:
image.pngimage.png