Visa Developer Community

New Contributor

Business Data Transactions API

Hi, I've just downloaded the sample code for the given api (Business Data Transactions API)

When I run the test in the sample I'm always getting the same error.

Are there any test data in sandbox? How can i test it?

 

This is the test:

    def testposttransaction_data(self):
        print("\nposttransaction_data")
        result = self.api.posttransaction_data(self.transformPayload('{"bank":[{"bankId":"999999"}]}'))
        print(result)
        pass

And the result:

{'transactionData': {'responseMetadata': {'requestId': 7679}, 'starterInfo': {}, 'transactionRecords': 'Improper request provided by user. Please check your request and retry.'}}

Thanks in advance

6 REPLIES 6
Visa Dev Moderator

Re: Business Data Transactions API

Hi luke, Did you try using the test data from the Test Data tab from your VDP dashboard ? Please try that and let me know.

 

Thanks,

Jai

New Contributor

Re: Business Data Transactions API

Hi Jai, I'm not sure how to use it. I can't see any important tip there. 

Maybe I don't have some required access

What should I see there?

 

Take a look to it:

Screen Shot 2019-01-30 at 09.37.02.png

 

Thanks again.

Highlighted
Visa Dev Moderator

Re: Business Data Transactions API

Hi Luke, you are the right place. While constructing the request payload for the API, substitute the values for each request parameter from the Test data tab and try firing a request using that.

 

Thanks,

Jai

New Contributor

Re: Business Data Transactions API

Hi Jai, I don't understand which values are you pointing.

Unless I'm wrong there are no values there, only a kind of summary table.

 

 

In the api reference says the only attribute I can send is a bank list.

 

I really appreciate if you could be more specific pointing how to get that valid values or saying what could be my mistake.

 

Thanks again.

 

Regards

New Contributor

Re: Business Data Transactions API

Update:

I added metadata from data test tab. But still having same result

 

Request payload is:

{
'requestType': 'all',
'metadata': {
'startDate':'2018/06/17',
'startTime':'00:00:00',
'endDate':'2018/07/16',
'endTime':'23:59:59',
}
}

Response: 

{"transactionData": {"starterInfo": {}, "responseMetadata": {"requestId": 7784}, "transactionRecords": "Improper request provided by user. Please check your request and retry."}}

According to data test tab, I have two differents options:

- empty transaction fields (I got the answer above)

- set "acctNum,regionId,processorId,memberBankId,companyId": I don't know the right format neither valid values.

 

Screen Shot 2019-02-01 at 12.27.05.png

Thanks

Visa Dev Moderator

Re: Business Data Transactions API

Hi ,

 

Can you please share the below to developer@visa.com , so we can investigate further.

 

1. Endpoint

2. Request Header

3. Request body

4. Respone Header ( Include x-correlation-id)

5. Response Body

6. VDP Project Name

 

Thanks,

Jai