I am trying to get some hands-on experience with the Python starter code provided from Visa Global ATM Locator API. After creating a virtual environment and installing both requirements files, I copied the sample code from the README file. However, after executing the file I get - "Exception when calling AtmlocatorApi->postatms_inquiry: Object of type AtmsInquirypostPayload is not JSON serializable". Any suggestions please? Many thanks.
I've logged case INC9185554 for the engineering team to investigate. We're currently working to resolve your issue and someone will get back to you soon.
To resolve the issue, can you start writing the sample code with an API tool such as SoapUI, Postman or VDC Playground and then try using your own knowledge of rest calls in your code? Usually the error you are seeing is because the object is not a valid request of response objects anymore. The mapping is incorrect and the sample code is outdated.
You can use Postman , SOAP UI or VDP Playground tool to test the APIs. Please see user guides below for respective tools.
Postman – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_...
SOAP UI – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_...
VDP Playground – https://community.developer.visa.com/t5/Developer-Tools/How-to-test-and-troubleshoot-APIs-with-the-V...
I'd like to help you resolve the issue. Please provide us with the following information:
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.