EBANX PaymentPage API

The PaymentPage API from EBANX — 1 operation(s) for paymentpage.

Documentation

Specifications

Schemas & Data

Other Resources

OpenAPI Specification

ebanx-paymentpage-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: EBANX FX PaymentPage 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: PaymentPage
paths:
  /ws/request:
    post:
      summary: Create Payment Page Request
      operationId: createPaymentPageRequest
      description: Create a hosted payment page session and return a redirect URL the merchant can send the customer to in order to complete the payment.
      tags:
      - PaymentPage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - integration_key
              - payment
              properties:
                integration_key:
                  type: string
                payment:
                  type: object
                  properties:
                    name:
                      type: string
                    email:
                      type: string
                      format: email
                    document:
                      type: string
                    country:
                      type: string
                    merchant_payment_code:
                      type: string
                    currency_code:
                      type: string
                    amount_total:
                      type: number
                      format: float
                    payment_type_code:
                      type: string
                      description: Optional. Pre-select a payment method or _all for the full menu.
                    redirect_url:
                      type: string
                      format: uri
      responses:
        '200':
          description: Payment page session created
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  redirect_url:
                    type: string
                    format: uri
                    description: URL to send the customer to in order to complete payment.
                  payment:
                    type: object
                    properties:
                      hash:
                        type: string
                      merchant_payment_code:
                        type: string
components:
  securitySchemes:
    integrationKey:
      type: apiKey
      in: header
      name: x-ebanx-integration-key