# Sandbox Testing
source: https://developer.mastercard.com/mastercard-processing-dispute/documentation/sandbox-testing/index.md

## Overview {#overview}

The section describes all use cases that can be tested using the Sandbox environment. The Sandbox contains limited-capacity mock APIs, enabling you to try the APIs quickly to assist with initial integration and solution development. The Sandbox returns mock responses for a defined request. Particular values in the request body, such as path parameters or fields, will give specific predefined responses.
Note: At the beginning of each test case, there might be information (in the form of a table) that you must use in the request to execute the test case. The table displays specific values that are preconfigured in the Sandbox. Otherwise, you can send any values in the request, and the Sandbox will always return the same mock response.

The following test cases are provided:

|                                                                              Test case                                                                               |              Test case scenario              |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|
| [Create a Dispute Case](https://developer.mastercard.com/mastercard-processing-dispute/documentation/sandbox-testing/create-dispute-case/index.md)                   | Success                                      |
|                                                                                                                                                                      | Fail -- Duplicated Case                      |
|                                                                                                                                                                      | Fail -- Financial transaction does not exist |
|                                                                                                                                                                      | Fail - Invalid reason code                   |
|                                                                                                                                                                      | Fail -- Non financial document               |
| [Change a Trusted Amount](https://developer.mastercard.com/mastercard-processing-dispute/documentation/sandbox-testing/change-trusted-amount/index.md)               | Success                                      |
| [Add a File to a Dispute Case](https://developer.mastercard.com/mastercard-processing-dispute/documentation/sandbox-testing/add-file-dispute-case/index.md)          | Success                                      |
|                                                                                                                                                                      | Fail -- Case is not active                   |
|                                                                                                                                                                      | Fail -- Invalid reason code                  |
|                                                                                                                                                                      | Fail -- Maximum file size exceeded           |
|                                                                                                                                                                      | Fail -- Maximum size of all files exceeded   |
|                                                                                                                                                                      | Fail -- Invalid file format                  |
| [Retrieve a Dispute Case Status](https://developer.mastercard.com/mastercard-processing-dispute/documentation/sandbox-testing/retrieve-dispute-case-status/index.md) | Success                                      |

## API configuration {#api-configuration}

There is a predefined API configuration of the Sandbox containing the following characters allowed in the requests.

|      Global parameter      |                                       Value                                        |
|----------------------------|------------------------------------------------------------------------------------|
| Allowed default characters | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,\&#'@+\\\\-\*_=; /1234567890 |

## Global error test cases {#global-error-test-cases}

There are globally predefined main CMS objects identifiers (`caseId`) which allow getting typical errors during processing the request.

| Path parameter name | Path parameter available value |     reasonCode      |          Description          |
|---------------------|--------------------------------|---------------------|-------------------------------|
| `case_id`           | 30001                          | CASE_DOES_NOT_EXIST | Case with id 30001 not found. |

To get `reasonCode` CASE_ DOES_NOT_EXIST error, you should define the `case_id` parameter with the 30001 value in the request. That rule applies to any API endpoints with `case_id` unless it is described differently in the particular test case.
