# NGFT - Next Gen File Transfer
source: https://developer.mastercard.com/carbon-calculator-china/documentation/file-based-scoring-protocols/ngft_file_based_scoring/index.md

After the Carbon Calculator application scores the transactions, it uploads the scored CSV files to NGFT to transmit it further to the issuers. The issuers need not integrate with any API for the entire process.

## Pre-requisites {#pre-requisites}

Following are the pre-requisites for the issuers to use the NGFT service:  

* The issuers must have a Mastercard Connect™ account and should be an existing customer of NGFT.
* The issuers need to have an existing [logical address](https://developer.mastercard.com/carbon-calculator-china/documentation/terminologies/index.md#customer-logical-name) with their organization name in the alias part called [customer logical name](https://developer.mastercard.com/carbon-calculator-china/documentation/terminologies/index.md#customer-logical-name).
* The issuers can now request an exchange mapping from the service and map their **customer logical name** with Mastercard's **customer logical name** . This request is reviewed and approved by the Mastercard contact. For more details, refer to the [Mastercard File Exchange User Guide V2.2.2](https://trc-techresource.mastercard.com/r/bundle/m_fxusg_en-us/page/d/en-US/pvd1747164178802.html).
* The issuers need to create a new project in Mastercard Developers. They must share the same **customer logical name** with the Mastercard Carbon Calculator application through the Mastercard Developers form.

## Get help {#get-help}

In case of issues, raise a ticket with the customer support. For further details on the customer support contacts, visit the [Troubleshooting](https://developer.mastercard.com/carbon-calculator-china/documentation/support/index.md#troubleshooting) section in FAQs.

## Selection criteria {#selection-criteria}

These selection criteria apply to all issuers. The issuers need to:

* Set up exchange mapping to the **cc-file-processor@mastercard** as [customer logical name](/documentation/terminologies/##customer-logical-name) in both the Sandbox/MTF and Production environment.
* Select **carbon_calculator_file_scoring** as a **File Profile** for Actions (PRODUCES, CONSUMES), while adding a new product.
* Select **Web UI** , **Push** and **Pull** as options under the Connections tab. This makes the selections look like **Customer logical name** will use **Web UI** to **Push** -**Pull** files to Mastercard.

## Sequence diagram {#sequence-diagram}

The following sequence diagram shows the order of events for a solution that uses the file-based scoring service.
Diagram file-based-scoring-ngft

**Following are the execution steps:**

1. The Carbon Calculator application fetches the cleared transactions of the previous day from the data warehouse daily to generate the carbon score.
2. The Carbon Calculator application calculates the score and generates a CSV file containing the scores for the transactions.
3. It uploads the scored CSV file to the NGFT [customer logical name](https://developer.mastercard.com/carbon-calculator-china/documentation/terminologies/index.md#customer-logical-name) for the issuer to receive it.
4. The issuer initiates a download request to retrieve the scored CSV file from the GFT endpoint.
5. The issuer successfully downloads the CSV file containing the calculated carbon scores.

## How to download a file {#how-to-download-a-file}

1. On the **Transfer** tab, click **Received** to see all the files available for download.

   ![Download File](https://static.developer.mastercard.com/content/carbon-calculator-china/uploads/download-file.png)
2. Click **Download** to view the transaction scoring details for each transaction.

## Next steps {#next-steps}

Now that you know how NGFT transmits the scored file, proceed to the [Transaction footprint calculation](https://developer.mastercard.com/carbon-calculator-china/documentation/use-cases/transaction-footprint-calculation/index.md) section.
