Manually Create A Dispute in Sandbox

Is it possible to manually create a dispute against a transaction in the sandbox env (either in the dashboard or programatically). Just for testing purposes.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Verify the Payment
Process Disputes
Square Sandbox

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Yes, you can manually create a dispute in the Square Sandbox for testing purposes. To trigger a test dispute, you need to send a CreatePayment request with specific charge amounts. The Sandbox then creates a Dispute object whose reason corresponds to the charge amount set. For example, a charge amount of 8803 would create a dispute with the reason of DUPLICATE. You can then manage these disputes using the Disputes API. Please note that these test disputes are not visible in the Developer Dashboard or Seller Dashboard, they can only be accessed and managed through the Disputes API.

This answer was reviewed by @Lance-Square.

1 Like