# Java API Client
source: https://developer.mastercard.com/mastercard-send-account-info/documentation/tutorials-and-guides/api-tutorial/index.md

## Overview {#overview}

The following tutorials generate a Java API client library from the API specification and build a simple Java program that makes API calls to the Sandbox environment. Complete the tutorials in this order:

1. [Generate a Client Application and Set Up a Maven Project](https://developer.mastercard.com/mastercard-send/tutorial/generate-client-app-project/)

2. [Make API Calls to Sandbox with Java](https://developer.mastercard.com/mastercard-send-account-info/tutorial/make-api-calls-java/index.md) --- includes a sample Java class file you can use

![Sample Java class](https://static.developer.mastercard.com/content/mastercard-send-account-info/documentation/img/java-api-tutorial-overview-rntz.png)

Note that the sample code in these tutorials does not prescribe the design and coding of your funds transfer service; those aspects are for you to define.

## Prerequisites {#prerequisites}

To complete these tutorials, you need:

* [Java 11+](https://www.java.com/en/download/manual.jsp). Ensure that your `JAVA_HOME` environment variable is pointing to your JDK installation or have the Java executable on your `PATH` environment variable.
* [Maven 3.6.0+](https://maven.apache.org/download.cgi)
* The latest [OpenAPI Generator CLI](https://openapi-generator.tech/docs/installation/#jar) JAR directly from Maven.org.
* Integrated Development Environment (IDE) of your choice. The tutorials use the IntelliJ IDEA IDE.
* If your organization uses internal artifact repositories for obtaining dependencies, refer to this [documentation](https://maven.apache.org/guides/mini/guide-multiple-repositories.html) to ensure that your dependencies are set up.
* A Mastercard Developers [project](https://developer.mastercard.com/dashboard) created with the **Mastercard Send** API service. This generated the Sandbox signing key (.p12 file) and credentials you will use to access the Sandbox environment. For guidance on creating a project, see [Getting Started with the APIs](https://developer.mastercard.com/mastercard-send/documentation/implementation/getting-started/).
* The API specification: [account-information-api-swagger.yaml](https://static.developer.mastercard.com/content/mastercard-send-account-info/swagger/account-information-api-swagger.yaml) (15KB)

## Make API Calls to MTF {#make-api-calls-to-mtf}

You can make calls to the MTF environment when you have registered for this service and Mastercard has configured that environment for your Sandbox keys. When you have the tutorial working with Sandbox, you can adapt the code easily to call MTF:

* Adjust the base path to "https://sandbox.api.move.mastercard.com/send".
* Change the `partnerId` value to match your onboarded configuration.

You may need to adjust the code to pass request fields and values appropriate to the environment and your configuration, such as valid test account numbers.
