Duplicate calls - Visa Direct Adjustment ReverseFundsTransactions POST

Solved! Go to solution
jules_krivacsy
New Contributor

Duplicate calls - Visa Direct Adjustment ReverseFundsTransactions POST

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!

3 REPLIES 3
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Duplicate calls - Visa Direct Adjustment ReverseFundsTransactions POST

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.

 

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
jules_krivacsy
New Contributor

Re: Duplicate calls - Visa Direct Adjustment ReverseFundsTransactions POST

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?

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Duplicate calls - Visa Direct Adjustment ReverseFundsTransactions POST

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

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.