# Quick Start Guide
source: https://developer.mastercard.com/mastercard-processing-digital/documentation/quick-start-guide/index.md
## Overview {#overview}
Use this guide to go from account setup to your first successful Sandbox request for Mastercard Processing Digital API. You will create a project, generate credentials, make a test call, and prepare the same project for Production access.
Tip: If you want the fastest path to a working Sandbox request, start with the [Postman Collection](https://developer.mastercard.com/mastercard-processing-digital/documentation/developer-tools/postman-collection/index.md) page. It lets you test Sandbox and Production flows without writing code first.
### Before you begin {#before-you-begin}
Before you start, ensure that you complete the following prerequisites:
* Create a [Mastercard Developers](https://developer.mastercard.com/) account.
* Ensure that you have a secure location to store the downloaded OAuth and encryption keys.
* Decide how you want to test: Postman, Insomnia, reference application, or your own API client.
* Have an OAuth 1.0a signing method ready, such as a Mastercard OAuth library or a configured Postman or Insomnia workspace.
### Sandbox checklist {#sandbox-checklist}
| # | Step | What to do |
|---|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1 | Access | Get access to Mastercard Processing API and create your Mastercard Developers project. |
| 2 | Credentials | Generate your Sandbox OAuth credentials and record your consumer key. |
| 3 | Environment | Confirm that you are using the Sandbox base URL and that your project is still in Sandbox mode. |
| 4 | Authentication | Configure OAuth 1.0a signing for the first request and confirm which consumer key and private key pair you will use. |
| 5 | Encryption | Complete JWE setup in [API Basics](https://developer.mastercard.com/mastercard-processing-digital/documentation/api-basics/index.md#transport-encryption) before testing. |
| 6 | First call | Send your first Sandbox request using the Sandbox base URL and OAuth 1.0a signing. |
| 7 | Validation | Use the [Sandbox testing](https://developer.mastercard.com/mastercard-processing-digital/documentation/sandbox-testing/index.md) page to validate positive and negative flows. |
## Step 1: Get access to the API {#step-1-get-access-to-the-api}
1. Navigate to [Mastercard Developers](https://developer.mastercard.com/) and click **Sign up** to create an account.
2. Activate your account by using the verification link sent to your registered email address, and then click **Log in**.
3. Enter your credentials and log in to your account.
4. Open your [My Projects](https://developer.mastercard.com/dashboard) page.
## Step 2: Create a project and generate Sandbox credentials {#step-2-create-a-project-and-generate-sandbox-credentials}
You must create a Mastercard Developers project or add the API to an existing Mastercard Processing project to generate Sandbox credentials. You can start testing in the Sandbox environment immediately after your project credentials are generated.
Sandbox credentials provides access to the mocked data, allowing you to validate and test your integration before requesting Production access.
### Project Details {#project-details}
1. Click **Create new project** on the [My Projects](https://developer.mastercard.com/dashboard) page. 
2. Enter a project name.
3. In the **Are you creating this project on behalf of a client?** field, select **Yes** if you are creating the project on behalf of a client or select **No** . Note: Select **Yes** if you are creating an API integration project for a customer. For example, you may be an integrator, processor, or service provider building the integration for a customer, such as a merchant, issuer, or acquirer.
If you select **Yes**, provide the following client information:
* Client company name
* Client company ID
* Address line 1
* Address line 2
* City
* State, region, or province
* Postal code
* Country
4. In the **Select at least one API** section, select **Mastercard Processing Digital** from the drop-down list.
5. Click **Proceed**.
### Project Credentials {#project-credentials}
6. Create a key alias and keystore password for your OAuth keys, record them securely, and click **Proceed** . 
### Additional Credentials {#additional-credentials}
7. Create a key alias and keystore password for your encryption (JWE) key, record them securely, and click **Submit** . 
8. Download the OAuth 1.0a and encryption keys and store them in a safe place. Then click **Open Project** . 
### Save the values you will need {#save-the-values-you-will-need}
9. From the project page, record the following values:
* Sandbox and Production status (`Ready` and `Not Requested`)
* Sandbox and Production credentials:
* Authentication consumer key
* Client encryption key fingerprint

Warning: **Key Expiry:** Mastercard Processing API (Sandbox and Production) keys expire after 13 months. You have to generate a new set of keys when they expire. To generate it, go to your project dashboard and under **API Keys** , select **Add Key**.
## Step 3: Make your first Sandbox request {#step-3-make-your-first-sandbox-request}
Once you have Sandbox credentials, make a simple `GET` request to confirm that your project is set up correctly.
Before you run the request, make sure you have:
* Your Sandbox consumer key
* The private key used to sign OAuth requests
* A Mastercard OAuth library or signer that generates `oauth_timestamp`, `oauth_nonce`, and `oauth_signature`
This first-call example uses `GET /tokens/{token_number}` so you can verify access, OAuth signing, and the Sandbox base URL before moving on to encrypted flows.
Note: For a full client setup, including encryption configuration, see the [API Basics](https://developer.mastercard.com/mastercard-processing-digital/documentation/api-basics/index.md#how-to-consume-the-api) section.
**Example Request (cURL):**
```bash
curl --request GET \
--url "https://sandbox.api.mastercard.com/global-processing/digital/tokens/ 5598765432109876" \
--header "Authorization: OAuth oauth_consumer_key=\"YOUR_CONSUMER_KEY\", oauth_signature_method=\"RSA-SHA256\", oauth_timestamp=\"1709596800\", oauth_nonce=\"a1b2c3d4e5f6\", oauth_version=\"1.0\", oauth_signature=\"YOUR_COMPUTED_SIGNATURE\""
```
> This example shows the required OAuth 1.0a header fields explicitly, but uses placeholders for sensitive values.
> Replace `YOUR_CONSUMER_KEY` with the consumer key from your project and generate `oauth_signature` with a Mastercard OAuth library. The library also handles `oauth_timestamp` and `oauth_nonce` for you.
>
> For step-by-step update examples, see the [Sandbox testing](https://developer.mastercard.com/mastercard-processing-digital/documentation/sandbox-testing/index.md).
**Expected Response:**
```json
{
"cardContractId": 70001,
"cardContractNumber": "535585______6188",
"clientId": 40000,
"clientShortName": "John Smith",
"deviceName": "A1B2C3D4E5F6G7H8",
"deviceType": "21",
"panUniqueReference": "P12312123456789012345678901234567890123456789012",
"tokenCreationDate": "2021-02-15T20:58:39Z",
"tokenExpiryDate": "2402",
"tokenNumber": "5598765432109876",
"tokenRequestorId": "50120834693",
"tokenStatus": "Active",
"tokenType": "C",
"tokenUniqueReference": "DSHRMC223456789012345678901234567890123456789012",
"walletName": "Google Pay"
}
```
What success looks like:
* The request returns `200 OK`.
Note: This example shows unencrypted request and response bodies for clarity; however, the API requires end-to-end JWE payload encryption. Use the Mastercard Encryption library to handle JWE automatically. **Test data:** The sandbox includes pre-loaded data. To run a negative test, use in the request certain values that are preconfigured in the Sandbox. See [Sandbox testing](https://developer.mastercard.com/mastercard-processing-digital/documentation/sandbox-testing/index.md) for additional scenarios.
## Step 4: Choose how you want to test and integrate {#step-4-choose-how-you-want-to-test-and-integrate}
After the first Sandbox request succeeds, pick the integration path that matches your workflow:
* **Postman:** Use the [Postman Collection](https://developer.mastercard.com/mastercard-processing-digital/documentation/developer-tools/postman-collection/index.md) page for setup.
* **Reference Application:** Use the [Reference Application](https://developer.mastercard.com/mastercard-processing-digital/documentation/developer-tools/reference-app/index.md) page.
* **curl or a custom client:** Use the [Sandbox testing](https://developer.mastercard.com/mastercard-processing-digital/documentation/sandbox-testing/index.md) page for test cases and additional examples.
## Step 5: Move to MTF for User Acceptance Testing (UAT) {#step-5-move-to-mtf-for-user-acceptance-testing-uat}
After you have tested your implementation in the Sandbox environment, move to MTF to conduct full User Acceptance Testing (UAT) before moving to Production.
Use your Sandbox keys to access MTF. However, a CIS-managed project is required to enable the API on the Mastercard Processing side. To complete the configuration, CIS requires the **PPW Interfaces** document to be completed, including **Worksheet 4 -- Inbound API (PPW IF.4.1.001 Sandbox client ID parameter)** and **Worksheet 5 -- API operations**, specifying the API operations that you want to have enabled in MTF.
You will be notified once configuration is completed and you can start the UAT process.
## Step 6: Promote the project to Production {#step-6-promote-the-project-to-production}
After you have successfully tested your implementation in the UAT environment, move your project to Production.
### Transition your project from MTF to Production {#transition-your-project-from-mtf-to-production}
1. **Open your project in Mastercard Developers**
Go to your [My Projects](https://developer.mastercard.com/dashboard) page and open the Mastercard Processing Digital project that you used for Sandbox testing.
2. **Request Production access for that project**
In the project dashboard, select **Request Production Access**.
Your Sandbox and Production statuses are shown separately on the project page, so you can track when Production moves from `Not Requested` to an enabled `Ready` state.

3. Create a key alias and keystore password for your OAuth keys, record them securely, and click **Proceed** .

4. Create a key alias and keystore password for your encryption keys, record them securely, and click **Submit** .

5. **Confirm and download your Production keys**
Download the Production OAuth and encryption keys for the same project. Keep the Production key material separate from your Sandbox keys.

Note: Production credentials are generated instantly, but access to the Production environment must still be approved as part of the CIS onboarding process.
After your Production access request has been reviewed, you will receive a notification confirming whether your access has been approved or denied.
6. Click **Open project** .

7. Update your application configuration. Switch the base URL from Sandbox or MTF to Production:
* Sandbox: `https://sandbox.api.mastercard.com/global-processing/digital`
* MTF: `https://mtf.api.mastercard.com/global-processing/digital`
* Production: `https://api.mastercard.com/global-processing/digital`
Update your application to use the Production consumer key, signing key, and encryption certificates.
Note: OAuth 1.0a authentication and JWE payload encryption work the same way in Sandbox, MTF, and Production. The main changes are the Production key set, the Production approval state, and the Production base URL.
If you need the full onboarding process, including contract, MTF, SLA, and escalation details, see the [Onboarding Checklist](https://developer.mastercard.com/mastercard-processing-digital/documentation/tutorials-and-guides/onboarding-checklist/index.md).
## Next Steps {#next-steps}
You can continue with the documentation that matches your next task:
* [API Reference](https://developer.mastercard.com/mastercard-processing-digital/documentation/api-reference/index.md) for endpoint details
* [API Basics](https://developer.mastercard.com/mastercard-processing-digital/documentation/api-basics/index.md) for authentication, encryption, and client configuration
* [Sandbox Testing](https://developer.mastercard.com/mastercard-processing-digital/documentation/sandbox-testing/index.md) for additional request scenarios
* [Onboarding Checklist](https://developer.mastercard.com/mastercard-processing-digital/documentation/tutorials-and-guides/onboarding-checklist/index.md) for the full operational go-live process