EBANX FX API

Quote current FX rates between a merchant pricing currency (typically USD or EUR) and EBANX market currencies, and mint a short-lived FX token to lock a rate so a quoted price is honored when the underlying Direct Payment is captured.

Operations 2

POST /ws/exchange Get Exchange Rate #
POST /ws/fxtoken/get Get FX Token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ebanx-fx-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ebanx-fx-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EBANX FX API
  version: '1.0'
  description: Retrieve current foreign exchange rates between local market currencies (BRL, MXN, COP, ARS, CLP, PEN, etc.) and pricing currencies (USD, EUR), and lock a rate via an FX token so a quoted price is honored at capture.
  contact:
    name: EBANX Sales Engineering
    email: sales.engineering@ebanx.com
    url: https://docs.ebanx.com
servers:
- url: https://api.ebanxpay.com
  description: Production environment
- url: https://sandbox.ebanxpay.com
  description: Sandbox environment for testing
security:
- integrationKey: []
tags:
- name: FX
paths:
  /ws/exchange:
    post:
      summary: Get Exchange Rate
      operationId: getExchangeRate
      description: Return the current FX rate between a merchant pricing currency and a local payment currency for a given country.
      tags:
      - FX
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - integration_key
              - merchant_payment_code
              properties:
                integration_key:
                  type: string
                merchant_payment_code:
                  type: string
                currency_code:
                  type: string
                  description: Source / merchant currency.
                country:
                  type: string
                  description: Target country whose local currency is being quoted.
      responses:
        '200':
          description: FX quote
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  currency_rate:
                    type: object
                    properties:
                      currency_code:
                        type: string
                      country:
                        type: string
                      rate:
                        type: number
                        format: float
  /ws/fxtoken/get:
    post:
      summary: Get FX Token
      operationId: getFxToken
      description: Reserve an FX rate by minting a short-lived FX token. The token can be attached to a Direct Payment request to guarantee the previously quoted rate when the transaction is settled.
      tags:
      - FX
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - integration_key
              - currency_base_code
              - currency_ext_code
              - country
              properties:
                integration_key:
                  type: string
                currency_base_code:
                  type: string
                currency_ext_code:
                  type: string
                country:
                  type: string
      responses:
        '200':
          description: FX token
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  fx_token:
                    type: object
                    properties:
                      token:
                        type: string
                      expires_at:
                        type: string
                        format: date-time
                      rate:
                        type: number
                        format: float
components:
  securitySchemes:
    integrationKey:
      type: apiKey
      in: header
      name: x-ebanx-integration-key