# generateExchangeRateQuote

Mutation · GraphQL API

Generate a customized currency exchange rate quote for items on a merchant's page. This allows merchants to advertise products in their customer's currency. Your account must be enabled to use this feature.

## Authentication

- SERVER

## Input

- `input` (`GenerateExchangeRateQuoteInput!`) — required

## Returns [ExchangeRateQuotePayload](/braintree/graphql/reference/types/exchange-rate-quote-payload)

Exchange rate quotes for a specific customer.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `quotes` (`[ExchangeRateQuote!]`): Exchange rate quote details for each base and quote currency combination.

## Examples

### Generate exchange rate quote

Input to generate a list of exchange rate quotes.

```graphql
mutation generateExchangeRateQuote($input: GenerateExchangeRateQuoteInput!) {
  generateExchangeRateQuote(input: $input) {
    clientMutationId
    quotes {
      id
      baseAmount {
        value
        currencyCode
      }
      quoteAmount {
        value
        currencyCode
      }
      exchangeRate
      tradeRate
      expiresAt
      refreshesAt
    }
  }
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)