# Move Project to Production
source: https://developer.mastercard.com/digital-redemptions/documentation/tutorials-and-guides/production-access-tutorial/index.md

This section walks through the steps required to get the Production environment access and then call the Digital Redemptions Service.

#### What you will learn {#what-you-will-learn}

* How to request access to the production environment
* How to create a client in the production environment
* What must be true before and after each stage
* How to escalate if approval takes longer than the stated timeframe

## Production Workflow at a Glance {#production-workflow-at-a-glance}

Moving to Production has five stages. Each stage has an entry criterion
(what must already be true) and an exit criterion (how you know the stage is
done). Do not start a stage until the previous exit criterion is met.

|                  Stage                  |                                                                                        Entry criteria                                                                                        |                                              You provide                                              |                                                                Exit criteria                                                                 |              Typical time               |
|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| 1. Request Production access            | Sandbox tests in [Integration and Testing](https://developer.mastercard.com/digital-redemptions/documentation/integration-and-testing/index.md) pass, including the end-to-end checkout flow | Project name and commercial countries already on the project                                          | The project shows **Production access requested**                                                                                            | Same day                                |
| 2. Create a Production key              | Stage 1 complete                                                                                                                                                                             | Key alias and keystore password                                                                       | Production `.p12` key file downloaded and stored securely                                                                                    | Same day                                |
| 3. Mastercard review and approval       | Stage 2 complete; CSR uploaded                                                                                                                                                               | Nothing further unless Mastercard API Support asks for clarification                                  | Approval email received at your registered address                                                                                           | 3-5 working days                        |
| 4. Download encryption keys             | Approval email received                                                                                                                                                                      | Nothing                                                                                               | Production client encryption key downloaded; fingerprint recorded                                                                            | Same day                                |
| 5. Production enablement and validation | Stage 4 complete                                                                                                                                                                             | Production Client ID and program details, sent to your Product Delivery or CIS Implementation Manager | Confirmation that the Client ID is mapped, and a `200` response from `GET /redeemers/{user_id}` against `https://api.mastercard.com/loyalty` | Agreed with your Implementation Manager |

## Request Production access {#request-production-access}

Entry criteria: your Sandbox testing is complete and the checkout flow in
[Integration and Testing](https://developer.mastercard.com/digital-redemptions/documentation/integration-and-testing/index.md) returns
the expected results.

* Click the **Request Production Access** button, in the Production section of the screen. ![Request Production Access](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/requestproductionaccess.png)

Exit criteria: the Production section of your project shows the request as
submitted.

## Create a Production Key {#create-a-production-key}

1. Enter a descriptive name for the key which identifies its purpose and environment in the `Key Alias` field.
2. Enter a password used to encrypt the keys that the customer will receive in the `Keystore Password` field.
3. Click **Update project** . ![Client Encryption Key](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/clientencryptionkey.png)

## Confirm and Download {#confirm-and-download}

Entry criteria: a Production key alias and keystore password have been set
in the previous stage.

1. Click **Download key file** to download a zip file containing the .p12 file required for OAuth authentication in Production. ![Confirm and Download Keys](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/downloadprodkeys.png)
2. When you click the Download key file above, a private key and Certificate Signing Request (CSR) will be generated. The CSR is uploaded to Mastercard, and you will be able to download the private key as a P12. This P12 is used to access the APIs on Mastercard Developers.
3. These files are generated in the browser, and only the CSR is sent to Mastercard, which ensures your private key is always private.
4. Once you complete this process, the Mastercard API Support team will review and approve your request for Production access.
5. You will receive an email from Mastercard Developers to your registered email address, depending upon the outcome of the review. Note: Typically, it takes 3-5 working days to review and approve the Digital Redemptions API Production access request.

Exit criteria: you have the Production `.p12` file stored securely and an
approval email from Mastercard Developers.

### If approval takes longer than 5 working days {#if-approval-takes-longer-than-5-working-days}

Escalate when you have not received an approval or rejection email within 5
working days of downloading the key file, or when the request is rejected
without a reason you can act on.

1. Check your project in [Mastercard Developers](https://developer.mastercard.com/dashboard) first; if the Production section already shows approval, go to [Download Encryption Key](https://developer.mastercard.com/digital-redemptions/documentation/tutorials-and-guides/production-access-tutorial/index.md#download-encryption-key).
2. Raise a ticket through the Mastercard Developers [Get Help](https://developer.mastercard.com/digital-redemptions/documentation/support/index.md#get-help) form and select Mastercard Digital Redemptions as the API.
3. Copy your assigned Mastercard Product Delivery or CIS Implementation Manager on the same day so they can chase the review internally.
4. Include in the ticket: your project name, the date you submitted the request, the first 48 characters of the Production consumer key (the Client ID), the authentication method, and any rejection text you received.

Mastercard API Support acknowledges escalations on the ticket; your
Implementation Manager is your second contact if the ticket itself stalls.

## Download Encryption Key {#download-encryption-key}

Entry criteria: the approval email has arrived.

1. After the production environment is provisioned, navigate to **My Projects** and select your project.
2. Click on manage under **Client Encryption Keys** and click the **Download** to download the client encryption key. ![Production Keys APIs](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/prodkeys.png)
3. The Client Encryption key will be used to encrypt the request and Mastercard Encryption key will be used to decrypt the response.

Note: **Mastercard Encryption Keys** will be automatically downloaded upon project creation.

Exit criteria: the Production client encryption certificate and its
fingerprint are in your client configuration.

## Provide information to Mastercard Product Delivery or CIS Implementation manager {#provide-information-to-mastercard-product-delivery-or-cis-implementation-manager}

Entry criteria: Production keys and encryption keys are downloaded and
configured.

Once you have the consumer key, provide it to your Mastercard Product Delivery or Customer Implementation Services Implementation Manager (CIS IM).
To complete this, perform the following steps:

1. From the Mastercard Developers project summary page, go to the Production credentials section, click on the copy symbol next to Consumer Key to copy the consumer key.
2. Paste the Client ID value into an e-mail and send it to your Account Manager or assigned Product delivery or CIS Implementation Manager. The first 48 characters of this key value (up to the exclamation point) will be the Mastercard API Client ID, which will be used for the production environment. An example of the key value, with Client ID represented in bold **6Fmo7rEvHmVFTrv73a0m6qfUExPxMzOdY5Rs32KI09979c7f**!aea8847fa4b84b9886143a40ac117aee0000000000000000
3. Once the CIS team adds the Client ID you would be able to test the APIs.
4. Work with your Account Manager or assigned Product delivery Manager for the data needed for your program. This is a required step before you start testing in Production.
5. For any questions please submit a request by clicking Get Help [here](https://developer.mastercard.com/digital-redemptions/documentation/support/index.md).

Exit criteria: your Implementation Manager confirms the Client ID is mapped
to your Rewards program, and `GET /redeemers/{user_id}` against
`https://api.mastercard.com/loyalty` returns `200` for a live enrolled
account. Your integration is now live.

## Next Steps {#next-steps}

* Monitor service health on the [API Status Page](https://developer.mastercard.com/api-status).
* Keep [Codes and Formats](https://developer.mastercard.com/digital-redemptions/documentation/code-and-formats/index.md) to hand for any error your Production traffic returns.
* Watch [Release History](https://developer.mastercard.com/digital-redemptions/documentation/release-history/index.md) for API changes.
