QuickPay WhatsApp Flows (Kit T2) API

Endpoint data-exchange: tu propio WABA/Flow delega el paso de pago a QuickPay.

GitHub OpenAPI

Operations 1

POST /switch/v1/flows/cobro/{flowId} Endpoint data-exchange del Flow de cobro #

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/pagaconquickpay-com:pagaconquickpay-com-whatsapp-flows-kit-t2-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

pagaconquickpay-com-whatsapp-flows-kit-t2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: QuickPay · WhatsApp Flows (Kit T2) API
  version: 0.1.0
  description: 'API de QuickPay: enlaces de pago, cobro por lote, webhooks y, para aliados, la API directa de cobros y pagos.


    ## Autenticación

    Todas las llamadas usan la cabecera `x-switch-key` con el formato `:`.

    Cada comercio tiene llaves de **prueba** (`sk_test_…`, ambiente de ensayo, no mueven dinero real) y de **producción** (`sk_live_…`).


    ## Idempotencia

    Envía siempre un `idempotency_key` (UUID) único por operación. Reintentar con la misma llave nunca duplica el cobro/pago: devuelve el resultado original.


    ## Estados asíncronos

    La liquidación interbancaria es asíncrona. Una operación puede quedar `PENDIENTE` y confirmarse luego como `LIQUIDADA` o `RECHAZADA`. Usa `/consultar` (o configura un webhook) para conocer el estado final. Ante `DESCONOCIDA`, consulta antes de reintegrar — nunca reenvíes la operación original.


    ## Códigos de rechazo

    El campo `motivo_rechazo` está normalizado (mismo conjunto para todos los bancos).


    ## Integración con IA (MCP)

    Además de esta API REST, QuickPay ofrece un **servidor MCP** para que asistentes de IA (por ejemplo Claude) usen QuickPay como herramienta — sin programar una integración.


    - **Endpoint:** `https://mcp.pagaconquickpay.com/mcp` (transporte Streamable HTTP).

    - **Autenticación:** cabecera `x-switch-key` con `:` (las mismas llaves de esta API).

    - **Herramientas disponibles** (seguras, no mueven dinero directamente):

    - `listar_bancos` — bancos desde los que tus clientes pueden pagarte (código y nombre).

    - `consultar_estado` — estado de una transacción por su id.

    - `crear_link_cobro` — genera un link de cobro para que una persona pague.


    Conéctalo desde cualquier cliente compatible con MCP configurando esa URL y tu `x-switch-key`.'
servers:
- url: https://pay.pagaconquickpay.com
  description: Producción
security:
- switchKey: []
tags:
- name: WhatsApp Flows (Kit T2)
  description: 'Endpoint data-exchange: tu propio WABA/Flow delega el paso de pago a QuickPay.'
paths:
  /switch/v1/flows/cobro/{flowId}:
    post:
      tags:
      - WhatsApp Flows (Kit T2)
      summary: Endpoint data-exchange del Flow de cobro
      description: Punto de **data-exchange** de WhatsApp Flows (esquema oficial de Meta). Tu Flow apunta aquí en vez de llamar directo al banco. El cuerpo es el **sobre cifrado** de Meta (`encrypted_flow_data` / `encrypted_aes_key` / `initial_vector` en base64; RSA-OAEP + AES-128-GCM, IV invertido) y la respuesta es **texto plano** `base64(cipher+tag)` cifrada con la misma AES key. `REQUEST_TOKEN` pide el OTP, `CONFIRM_PAYMENT` cobra. El tenant/cobrador salen del **binding** (`flowId` + `flow_secret` en el `flow_token` o header `x-flow-secret`), nunca del payload. No usa `x-switch-key`.
      security: []
      parameters:
      - name: flowId
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Id del binding comercio↔flow (lo devuelve el alta del binding).
      - name: x-flow-secret
        in: header
        required: false
        schema:
          type: string
        description: Alternativa a poner el flow_secret como prefijo del flow_token. Se compara en tiempo constante.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlowEncryptedRequest'
      responses:
        '200':
          description: Respuesta cifrada de Meta (texto plano base64(cipher+tag))
          content:
            text/plain:
              schema:
                type: string
        '400':
          description: Sobre mal formado
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '421':
          description: No se pudo descifrar / re-handshake de la AES key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '432':
          description: Firma de Meta inválida (x-hub-signature-256)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Private key del Flow no configurada / error de cripto
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      operationId: postSwitchV1FlowsCobroByFlowId
      x-operation-id-source: derived
components:
  schemas:
    FlowEncryptedRequest:
      type: object
      required:
      - encrypted_flow_data
      - encrypted_aes_key
      - initial_vector
      properties:
        encrypted_flow_data:
          type: string
          description: AES-128-GCM(flow_data) + tag, en base64.
        encrypted_aes_key:
          type: string
          description: AES key efímera envuelta con RSA-OAEP(SHA-256), en base64.
        initial_vector:
          type: string
          description: IV de 16 bytes en base64 (la respuesta usa su versión invertida byte a byte).
  securitySchemes:
    switchKey:
      type: apiKey
      in: header
      name: x-switch-key
      description: Formato `<comercio>:<api_key>` (sk_test_… o sk_live_…)