# Currency Conversion Summary Tutorial
source: https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/tutorials-and-guides/currency-conversion-summary-tutorial/index.md

This tutorial walks through a full request and response for `GET /summary-rates`, the endpoint that returns the Mastercard conversion rate, ECB reference rate, and calculated mark-up for a currency pair.

## Headers {#headers}

|     Header      |                                                                                     Value                                                                                      |
|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Authorization` | Your OAuth 1.0a signature --- see [Authentication](https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/api-basics/index.md#authentication). |
| `Accept`        | `application/json`                                                                                                                                                             |

## Query Parameters {#query-parameters}

|     Parameter      | Required |         Type          |                                          Description                                          |
|--------------------|----------|-----------------------|-----------------------------------------------------------------------------------------------|
| `rate_date`        | Yes      | String (`yyyy-MM-dd`) | Date of the requested FX rates.                                                               |
| `trans_curr`       | Yes      | String                | ISO 4217 currency code of the transaction currency.                                           |
| `trans_amt`        | Yes      | Number                | Amount in the transaction currency.                                                           |
| `crdhld_bill_curr` | Yes      | String                | ISO 4217 currency code of the cardholder billing currency.                                    |
| `bank_fee_pct`     | No       | Number                | Percentage mark-up/fee the issuer applies to the cardholder, up to 4 decimal places.          |
| `bank_fee_fixed`   | No       | Number                | Fixed mark-up/fee the issuer applies, in cardholder billing currency, up to 6 decimal places. |

## Example Request {#example-request}

* Request

```Request
GET /summary-rates?rate_date=2023-02-27&trans_curr=GBP&trans_amt=100&crdhld_bill_curr=EUR&bank_fee_pct=1.6754&bank_fee_fixed=0.5
```

## Example Response {#example-response}

* JSON

```JSON
{
  "name": "mastercard-and-ecb-currency-conversion-rates",
  "description": "Provides Mastercard currency conversion rate, calculated cardholder billing amount, the ECB reference rates and the calculated percentage difference between Mastercard and ECB rates for a provided currency pair",
  "requestDate": "2023-02-27 18:04:18",
  "data": {
    "transCurr": "GBP",
    "crdhldBillCurr": "EUR",
    "rateDate": "2023-02-27",
    "transAmt": 100,
    "bankFeePct": 1.6754,
    "bankFeeFixed": 0.5,
    "mastercard": {
      "mastercardFxRateDate": "2023-02-27",
      "mastercardConvRateInclPctFee": 1.2250048,
      "mastercardConvRateExclAllFees": 1.2048193,
      "crdhldBillAmtInclAllFees": 123.0004800,
      "crdhldBillAmtExclAllFees": 120.4819300
    },
    "ecb": {
      "ecbReferenceRateDate": "2023-02-27",
      "ecbReferenceRate": 1.2018075
    },
    "effectiveConversionRate": 1.2300048,
    "pctDifferenceMastercardExclAllFeesAndEcb": 0.2506058,
    "pctDifferenceMastercardInclAllFeesAndEcb": 2.3462409
  }
}
```

If you omit `bank_fee_pct` and `bank_fee_fixed`, the `...InclAllFees` and `...ExclAllFees` fields will be equal, since no issuer fee is applied.

## How This Relates to Other Endpoints {#how-this-relates-to-other-endpoints}

* Call `GET /rate-statuses` first if you need to confirm today's rates are published before relying on them --- see the [Rate Publication Status Tutorial](https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/tutorials-and-guides/rate-publication-status-tutorial/index.md).
* Call `GET /mc-currencies` and `GET /ecb-currencies` to validate the currency codes you pass in `trans_curr` and `crdhld_bill_curr` --- see the [Currency Lists Tutorial](https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/tutorials-and-guides/currency-lists-tutorial/index.md).

This endpoint does not require payload encryption --- it is a `GET` request with no request body.

For the full field glossary, see [Data Explanations](https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/tutorials-and-guides/data-explanations/index.md) and [Parameters](https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/parameters/index.md). For error handling, see [Code and Formats](https://developer.mastercard.com/enhanced-currency-conversion-calculator/documentation/code-and-formats/index.md#conversion-rate-summary-get-summary-rates).
