Dear Reader!
I am currently implementing a client for visa direct adjustment API. I am interested in how will your API resolve a situation where multiple duplicate (but otherwise correct) requests are sent to it. Will only one returns success?
Is there an error code for already reversed payments?
I ask this because it was impossible to test it in the test environment.
Thank you for your help!
Solved! Go to Solution
Hi @jules_krivacsy,
When you send a POST Request, you will get a response immediately. Can you please provide more details on how you are sending duplicate requests?
Please access here for the Visa Direct error codes. Sandbox environment is static and has limited test data so you may not be able to test all functionality and error cases. Hope this helps, please reach out with further questions.
A client can send multiple duplicate requests to us (due to malicious intent). We try to send only one to VISA, but we have a low plausibility to send multiple identical requests to Visa Direct Adjustment (due to timing issues).
We, of course, do not wish to adjust the balance multiple times.
How will Visa Direct Adjustment API will manage this situation outside of the sandbox?
Hi @jules_krivacsy,
When the first request is pending response all subsequent requests are treated as duplicate requests and Visa Direct returns the corresponding HTTP status code (303 for duplicate transaction).
Please reference the Visa Direct error codes page for details on how to interpret and act upon status responses:
https://developer.visa.com/capabilities/visa_direct/docs-error-codes