v1

latestOpenAPI 3.1.02026-07-24102785.8 KB

Consult Quotes

Use this endpoint to consult exchange rate quotes for international transactions in the Sandbox environment. This allows you to retrieve real-time conversion rates between different currencies supported by PagSeguro.

get/

Query parameters

country'BR' | 'CL' | 'CO' | 'MX' | 'PE' required

The ISO 3166-1 alpha-2 code of the target country for the operation.

from'USD' | 'CLP' | 'COP' | 'EUR' | 'MXN' | 'PEN' | 'BRL' required

The source currency (ISO 4217 code) from which you want to convert.

to'BRL' | 'CLP' | 'COP' | 'EUR' | 'MXN' | 'PEN' | 'USD' required

The target currency (ISO 4217 code) to which you want to convert.

Headers

Content-Typestring required
Authorizationstring required

Authentication header generated using your api-key and secret-key. For details on how to generate this signature, please refer to the authentication guides in the documentation.

Response

OK - The request has succeeded.

countrystring

The target country for the quote.

fromstring

The source currency of the quote.

tostring

The target currency of the quote.

quotationstring

The exchange rate for the specified currency pair.

datestring

The timestamp when the quote was generated (UTC).

Example response

{
  "country": "BR",
  "from": "USD",
  "to": "BRL",
  "quotation": "5.94",
  "date": "2025-05-09T14:25:00Z"
}