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
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
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:
Thanks again.
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
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
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.
Thanks