EBANX Payments API

The Payments API from EBANX — 12 operation(s) for payments.

GitHub OpenAPI
Business capability
Payment Collection & Dunning BC-4250.40

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /ws/direct Create a direct payment for a local method · Create Direct Payment #
Ask an LLM
“How do I accept a Pix, Boleto or OXXO payment from a customer in Latin America?”
“Can I create a direct payment with installments and 3D Secure?”
Tell an agent
Create a {operation} payment with {payment} for integration {integration_key}.
Start a direct payment of {payment} using {operation} for {integration_key}.
POST /ws/capture Capture a pre-authorized card payment · Capture Payment #
Ask an LLM
“How do I capture a card payment that was authorized but not yet settled?”
“Can I capture only part of an authorized card amount?”
Tell an agent
Capture the authorized payment {hash}.
Capture {amount} of the pre-authorized card payment {hash}.
POST /ws/query Check a payment's status · Query Payment #
Ask an LLM
“Has a customer's payment been captured yet?”
“Can I look up a payment by its merchant code?”
Tell an agent
Query payment {hash}.
Check the status of payment {hash} using merchant code {merchant_payment_code}.
POST /ws/cancel Cancel an unpaid or authorized payment · Cancel Payment #
Ask an LLM
“How do I cancel a payment before it is captured?”
“Can I cancel a pre-authorized card payment?”
Tell an agent destructive · confirm first
Cancel payment {hash}.
Cancel the unpaid payment {hash}.
POST /ws/refund Refund a paid transaction · Refund Payment #
Ask an LLM
“How do I refund a customer's paid transaction?”
“Can I issue a partial refund instead of a full one?”
Tell an agent
Refund payment {hash} for {amount}.
Issue a full refund for transaction {hash}.
POST /ws/refundOrCancel Cancel or refund a payment · Refund Or Cancel Payment #
Ask an LLM
“What happens if I refund a payment that hasn't been captured yet?”
“Can I cancel a payment and refund it in one call?”
Tell an agent
Refund or cancel payment {hash}.
Cancel payment {hash} if not captured, otherwise refund it.
POST /ws/instalmentsPlan List installment plans for a card · List Installments Plan #
Ask an LLM
“Which installment plans are available for a card in a given country?”
“What are the available card installment options for a country and amount?”
Tell an agent
List installment plans for {country} with amount {amount}.
Show installments for {country} using {payment_type_code} and {amount}.
POST /ws/cardbin Look up a card BIN · Lookup Card BIN #
Ask an LLM
“Which bank and country issued a card with a given BIN?”
“What brand is a card BIN from?”
Tell an agent
Look up card BIN {bin}.
Identify the issuer of card number {bin}.
POST /ws/getBankList List banks for a payment method · List Available Banks #
Ask an LLM
“Which banks can a customer pay into for a given country?”
“What bank transfer options are available for a payment method?”
Tell an agent
List banks available for {country} with {operation}.
Show the bank transfer options in {country}.
POST /ws/ewallet-availableEWallets List e-wallets for a country · List Available E-Wallets #
Ask an LLM
“Which e-wallets can a customer pay with in a given country?”
“What digital wallet options are available for an amount and currency?”
Tell an agent
List e-wallets available in {country} for {amount} {currency_code}.
Show supported digital wallets in {country}.
POST /ws/updatecustomerbankinfo Resend bank slip or transfer info · Resend Bank Info #
Ask an LLM
“How do I resend the bank slip to a customer who paid by Boleto?”
“Can I email a customer their bank transfer details again?”
Tell an agent
Resend bank info for payment {hash}.
Email the bank slip for {hash} to {email}.
POST /print Print a cash or voucher slip · Print Voucher Or Slip #
Ask an LLM
“How do I print a Boleto, OXXO or Efecty voucher for a customer?”
“Can I generate a printable PDF of a cash payment slip?”
Tell an agent
Print the voucher for payment {hash}.
Generate a printable slip for {hash}.

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:ebanx-payments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

ebanx-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EBANX Pay-in Direct Payments API
  version: '1.0'
  description: Direct integration with EBANX to accept payments from customers in Latin America and other rising markets using local payment methods (Pix, Boleto, OXXO, SPEI, PSE, credit and debit cards, e-wallets, vouchers). The Direct API gives merchants full control over the checkout experience and is intended for high-conversion flows, subscriptions, and advanced payment scenarios.
  contact:
    name: EBANX Sales Engineering
    email: sales.engineering@ebanx.com
    url: https://docs.ebanx.com
  termsOfService: https://www.ebanx.com/en/legal/merchants/terms-and-conditions-for-payment-processing-services/
  license:
    name: EBANX Merchant Terms
    url: https://www.ebanx.com/en/legal/merchants/terms-and-conditions-for-payment-processing-services/
servers:
- url: https://api.ebanxpay.com
  description: Production environment
- url: https://sandbox.ebanxpay.com
  description: Sandbox environment for testing
security:
- integrationKey: []
tags:
- name: Payments
paths:
  /ws/direct:
    post:
      summary: Create Direct Payment
      operationId: createDirectPayment
      description: Create a payment for a local payment method. Supports cards (with optional 3DS and installments), Pix, Boleto, OXXO, SPEI, PSE, Efecty, PagoEfectivo, and many local e-wallets across EBANX markets.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectPaymentRequest'
      responses:
        '200':
          description: Payment created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponse'
  /ws/capture:
    post:
      summary: Capture Payment
      operationId: capturePayment
      description: Capture a previously authorized card payment.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                hash:
                  type: string
                amount:
                  type: number
                  format: float
      responses:
        '200':
          description: Captured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponse'
  /ws/query:
    post:
      summary: Query Payment
      operationId: queryPayment
      description: Retrieve the current status and details of a payment by EBANX hash or merchant payment code.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                hash:
                  type: string
                merchant_payment_code:
                  type: string
      responses:
        '200':
          description: Payment details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponse'
  /ws/cancel:
    post:
      summary: Cancel Payment
      operationId: cancelPayment
      description: Cancel an unpaid or pre-authorized payment.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                hash:
                  type: string
      responses:
        '200':
          description: Cancellation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponse'
  /ws/refund:
    post:
      summary: Refund Payment
      operationId: refundPayment
      description: Request a full or partial refund for a paid transaction.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefundRequest'
      responses:
        '200':
          description: Refund created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefundResponse'
  /ws/refundOrCancel:
    post:
      summary: Refund Or Cancel Payment
      operationId: refundOrCancelPayment
      description: Cancel the payment if not yet captured, otherwise issue a refund.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefundRequest'
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefundResponse'
  /ws/instalmentsPlan:
    post:
      summary: List Installments Plan
      operationId: listInstallmentsPlan
      description: Retrieve the available installment plans for a given country, amount, and BIN.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                amount:
                  type: number
                  format: float
                currency_code:
                  type: string
                country:
                  type: string
                payment_type_code:
                  type: string
      responses:
        '200':
          description: Installment plan
  /ws/cardbin:
    post:
      summary: Lookup Card BIN
      operationId: lookupCardBin
      description: Identify the issuer, brand, and country for a card BIN.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                bin:
                  type: string
      responses:
        '200':
          description: BIN information
  /ws/getBankList:
    post:
      summary: List Available Banks
      operationId: listAvailableBanks
      description: List banks available for a given country and payment method.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                country:
                  type: string
                operation:
                  type: string
      responses:
        '200':
          description: Bank list
  /ws/ewallet-availableEWallets:
    post:
      summary: List Available E-Wallets
      operationId: listAvailableEWallets
      description: List e-wallets supported for a given country, currency, and amount.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                country:
                  type: string
                currency_code:
                  type: string
                amount:
                  type: number
                  format: float
      responses:
        '200':
          description: E-wallet list
  /ws/updatecustomerbankinfo:
    post:
      summary: Resend Bank Info
      operationId: updateCustomerBankInfo
      description: Resend the bank slip or transfer information to the customer for a Boleto or bank transfer payment.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integration_key:
                  type: string
                hash:
                  type: string
                email:
                  type: string
      responses:
        '200':
          description: Result
  /print:
    post:
      summary: Print Voucher Or Slip
      operationId: printVoucherOrSlip
      description: Return a printable HTML or PDF voucher for cash/voucher payment methods such as Boleto, OXXO, Efecty, and PagoEfectivo.
      tags:
      - Payments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                hash:
                  type: string
      responses:
        '200':
          description: Printable slip
components:
  schemas:
    PaymentResponse:
      type: object
      properties:
        status:
          type: string
          enum:
          - SUCCESS
          - ERROR
        payment:
          type: object
          properties:
            hash:
              type: string
            merchant_payment_code:
              type: string
            status:
              type: string
              enum:
              - PE
              - CA
              - OP
              - CO
              - PN
            country:
              type: string
            payment_type_code:
              type: string
            amount_br:
              type: number
            amount_iof:
              type: number
            amount_ext:
              type: number
            currency_rate:
              type: number
            currency_ext:
              type: string
            due_date:
              type: string
              format: date
            instalments:
              type: string
            transfer_status:
              type: string
        status_code:
          type: string
        status_message:
          type: string
    DirectPaymentRequest:
      type: object
      required:
      - integration_key
      - operation
      - payment
      properties:
        integration_key:
          type: string
        operation:
          type: string
          enum:
          - request
        payment:
          $ref: '#/components/schemas/Payment'
    Payment:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
          format: email
        document:
          type: string
          description: Local tax id (CPF, RFC, NIT, etc.).
        country:
          type: string
          description: ISO 3166-1 alpha-2 country code.
        payment_type_code:
          type: string
          description: Payment method code (e.g., visa, mastercard, _all, pix, boleto, oxxo, spei, pse, efecty).
        merchant_payment_code:
          type: string
        currency_code:
          type: string
        amount_total:
          type: number
          format: float
        instalments:
          type: integer
          minimum: 1
        creditcard:
          type: object
          properties:
            card_number:
              type: string
            card_name:
              type: string
            card_due_date:
              type: string
            card_cvv:
              type: string
            token:
              type: string
    RefundRequest:
      type: object
      required:
      - integration_key
      - operation
      properties:
        integration_key:
          type: string
        operation:
          type: string
          enum:
          - request
          - confirm
          - cancel
        hash:
          type: string
        amount:
          type: number
          format: float
        description:
          type: string
        refund_id:
          type: string
    RefundResponse:
      type: object
      properties:
        status:
          type: string
        refund:
          type: object
          properties:
            id:
              type: string
            merchant_refund_code:
              type: string
            status:
              type: string
            amount_ext:
              type: number
            description:
              type: string
  securitySchemes:
    integrationKey:
      type: apiKey
      in: header
      name: x-ebanx-integration-key
      description: EBANX integration key. Historically passed in the JSON body as `integration_key`, also accepted via the `x-ebanx-integration-key` header. Sandbox and production credentials are distinct.