October 6, 2022
cancel
Showing results for 
Search instead for 
Did you mean: 
Help

Cannot create disputes in sandbox

d-nadams
New Contributor

Hello,

I'm currently implementing a dispute system in our application. We have an existing Marqeta integration with our own sandbox environment. I'm currently having an issue when trying to create a case (disputes) in our sandbox. I'm currently using this curl command (using this documentation) to try and create a dispute. The original_transaction_token came from a simulate clearing call to our sandbox API. The original transaction and this dispute both have the same amount of 1.00.

 

curl \
-u '<redacted>:<redacted>' \
-H 'Content-Type: application/json' \
-d '{
"type": "DISPUTE",
"memo": "test cancelled merchandise",
"dispute_details": {
"original_transaction_token": "f91d6fad-2038-4385-b69c-e0d97988f7ae",
"dispute_amount": 1.00,
"dispute_reason": "CANCELLED_MERCHANDISE_OR_SERVICES",
"cancelled_merchandise_or_services_details": {
"merchandise_or_services": "MERCHANDISE",
"describe_what_was_purchased": "stuff and things",
"did_the_cardholder_return_the_merchandise": true,
"date_of_return": "2022-03-20",
"date_merchant_received_returned_merchandise": "2022-03-21",
"return_method": "FACE_TO_FACE",
"date_cardholder_received_or_expected_to_receive_merchandise": "2022-03-21",
"did_the_cardholder_attempt_to_resolve_the_dispute_with_the_merchant": false,
"is_attempt_to_resolve_prohibited_by_local_law_or_regulations": false
}
}
}' \
https://<redacted>.marqeta.com/v3/cases  

 And I get this as a response:

{"error_code":"400401","error_message":"Invalid Reason Code"}

I've also tried this with other dispute reasons, along with their conditionally required fields, and all return the same error.

Any ideas on this?

4 REPLIES 4

webron
Community Manager
Community Manager

Hey @d-nadams, thanks for the question. I'm looking into this will get an answer by end of the day. Let me know if there is anything else you need help on. 

Ricardo
Community Manager
Community Manager

Hey @d-nadams, unfortunately simulating disputes isn't available in the public sandbox. Are you a current customer? If so, I can connect you with our customer support or CS team who might be able to help with a quicker resolution. Let me know. 

Hi @Ricardo,

Yeah I work for a company that's a paying customer. We have our own sandbox, I just didn't want to mention the name here. I have created a support ticket and hope to hear back from them soon.

Thank you for your help @Ricardo 

Ricardo
Community Manager
Community Manager

of course! @d-nadams let me know if you don't hear anything back, though our support team is pretty responsive. either way, I'm tagging @bhavya who can help escalate it. Cheers!