# Integration and Testing
source: https://developer.mastercard.com/mastercard-agent-pay/documentation/integration-and-testing/index.md

👉 Document your services testing procedures here, outline the possible methods of testing it. Include links to tutorials.

## Ready to begin Testing? {#ready-to-begin-testing}

Tip: We recommend that you begin testing in the sandbox.

Once you have created a project on Mastercard Developers, generated sandbox credentials and received approvals, you can start testing.

Start by following our:

## 1. {Pet Store} test cases tutorial {#1-pet-store-test-cases-tutorial}

Follow our [{Pet Store} Testing Tutorial](https://stage.developer.mastercard.com/reference-service-ngw/tutorial/pet-store-testing-tutorial) for help on Pet Store-specific test cases.

### 2. Using our base URLs for testing {#2-using-our-base-urls-for-testing}

* Sandbox
* Production

```Sandbox
https://sandbox.api.mastercard.com/oauth-petstore/petstore
```

```Production
https://api.mastercard.com/oauth-petstore/petstore
```

## Methods of testing Sandbox/Production {#methods-of-testing-sandboxproduction-br}

👉 Use *"\> -"* to make indented lists.

### 1. Reference Application {#1-reference-application}

> * Our Spring Boot Reference Application acts as an API client and allows you to integrate different operations.
> * For detailed steps, follow our [Reference Application Page](https://developer.mastercard.com/mastercard-agent-pay/documentation/reference-app/index.md).

👉 Postman Collections and Insomnia Collections are optional API client methods to improve testing convenience for your customers. [Contact API C\&S](mailto:API_Consultancy_and_Standards@mastercard.com) if you wish for your service to be added to the Postman Collections Workspace or if you need help creating a json collection.

### 2. Postman {#2-postman}

> * [Postman Collections](https://www.postman.com/collection/) is an API client that allows developers to test your API's calls in sandbox and production environments without writing any code. This makes sharing pre-formed API requests with partners extremely easy, and permits partners to run individual API requests or those within a folder or the entire collection.
> * For detailed steps, follow our [Postman Collections Page](https://developer.mastercard.com/mastercard-agent-pay/documentation/postman-collections/index.md).

### 3. Insomnia {#3-insomnia}

> * [Insomnia](https://insomnia.rest/) is an open-source API client that developers use to quickly and easily send REST requests to Mastercard APIs. API Consultancy \& Standards developed an [Insomnia Plugin](https://github.com/Mastercard/insomnia-plugin-mastercard) for handling API authentication.
> * Follow our [Insomnia Tutorial](https://developer.mastercard.com/platform/tutorial/use-insomnia-rest-client-for-mastercard-apis/) to learn how to test the {Pet Store} API using Insomnia.

👉 Use the [Download shortcode](https://stage.developer.mastercard.com/jamstack/documentation/theme/shortcodes/download/) here:
Download our Insomnia Collection here:
[Insomnia_collection_2025.json](https://static.developer.mastercard.com/content/mastercard-agent-pay/uploads/Insomnia_collection_2025.json) (29KB)

## Next Steps {#next-steps}

👉 Tell them to either proceed to the Postman Collections page, Reference Application page, or the Code and Formats page.

* Now that you have an understanding of testing, you can proceed to the [Postman Collections](https://developer.mastercard.com/mastercard-agent-pay/documentation/postman-collections/index.md) section to fork our Postman Collections and begin making calls.
* You can head to our [Reference Application](https://developer.mastercard.com/mastercard-agent-pay/documentation/reference-app/index.md) page to download our Spring Boot Application that shows a typical usage of the {Pet Store} API.
* To learn more about any error codes you receive, head over to our [Code and Formats](https://developer.mastercard.com/mastercard-agent-pay/documentation/code-and-formats/index.md) section to learn about the details of all the error codes.
