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

## 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. Pay with Rewards test cases tutorial {#1-pay-with-rewards-test-cases-tutorial}

Follow our [Pay with Rewards Service Testing Tutorial](https://developer.mastercard.com/pay-with-rewards/tutorial/api-testing/index.md) for help. This tutorial explains step-by-step process to test the Pay with Rewards API by building an end-to-end application

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

* Sandbox
* Production

```Sandbox
https://sandbox.api.mastercard.com/loyalty
```

```Production
https://api.mastercard.com/loyalty
```

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

### 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/pay-with-rewards/documentation/reference-app/index.md).

### 2. Insomnia {#2-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.
> * For detailed steps, follow our [Insomnia Collections Page](https://developer.mastercard.com/pay-with-rewards/documentation/insomnia-collections/index.md).

### 3. Postman {#3-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/pay-with-rewards/documentation/postman-collections/index.md).

### 3. Additional Test Data {#3-additional-test-data}

The following cardholder identifiers can be used when testing APIs on the [API reference page](https://developer.mastercard.com/pay-with-rewards/documentation/api-reference/index.md). Please review the API descriptions to see which identifiers are allowed to be used in each case.

|         BAN         |         BCN         |             RANAC              |
|---------------------|---------------------|--------------------------------|
| 5121010030175156000 | 5121010030175156000 | 190638068910245037616065889402 |
| 5200828282828210000 | 5200828282828210000 | 751790490371406494399785850650 |
| 5204740009921614000 | 52047400099XYZ14000 | 668209008144442228063365726665 |
| 5455330761000018000 | 5455388888888888888 | 620698088329537948905397909276 |
| 5506900490000436000 | 5506900490000436000 | 169537018079660912747700837156 |

## Next Steps {#next-steps}

* Now that you have an understanding of testing, you can proceed to the [Insomnia Collections](https://developer.mastercard.com/platform/tutorial/use-insomnia-rest-client-for-mastercard-apis/) section to fork our Insomnia Collections and begin making calls.
* You can head to our [Reference Application](https://developer.mastercard.com/pay-with-rewards/documentation/api-reference/index.md) page to download our Spring Boot Application that shows a typical usage of the Pay with Rewards API.
* To learn more about any error codes you receive, head over to our [Codes and Formats](https://developer.mastercard.com/pay-with-rewards/documentation/code-and-formats/index.md) section to learn about the details of all the error codes.
