โ04-04-2022 09:42 AM
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?
โ04-07-2022 12:26 PM
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.
โ04-07-2022 12:55 PM
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.
โ04-07-2022 01:14 PM
โ04-07-2022 01:32 PM