> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Obtener notificación previa al débito por ID

> Obtiene una notificación previa al débito creada con Crear notificación previa al débito, mediante su ID de Yuno.

Obtiene una notificación previa al débito creada con [Crear notificación previa al débito](https://docs.y.uno/es/reference/pre-debit-notifications/create-pre-debit-notification.md). Las notificaciones tienen alcance de tu cuenta.


## OpenAPI

````yaml openapi/es/pre-debit-notifications/retrieve-pre-debit-notification-by-id.json GET /predebit-notify/{pre_debit_notification_id}
openapi: 3.1.0
info:
  title: pre-debit-notifications
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /predebit-notify/{pre_debit_notification_id}:
    get:
      summary: Obtener notificación previa al débito por ID
      description: Obtiene una notificación previa al débito por su ID de Yuno.
      operationId: retrieve-pre-debit-notification-by-id
      parameters:
        - name: X-Account-Code
          in: header
          required: true
          description: UUID de la cuenta a la que pertenece la notificación.
          schema:
            type: string
            format: uuid
        - name: pre_debit_notification_id
          in: path
          required: true
          description: ID devuelto por el endpoint Create pre-debit notification.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: La notificación previa al débito.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: >-
                      Identificador único de la notificación previa al débito.
                      Haz referencia a él en el débito recurrente como
                      payment_method.detail.bank_transfer.pre_debit_notification_id.
                  account_id:
                    type: string
                    format: uuid
                    description: El ID de tu cuenta de Yuno.
                  status:
                    type: string
                    enum:
                      - SENT
                      - REJECTED
                      - ERROR
                    description: >-
                      SENT: el proveedor aceptó y entregó la notificación.
                      REJECTED: el proveedor la rechazó. ERROR: no se pudo
                      transmitir la notificación.
                  merchant_reference:
                    type: string
                    description: >-
                      Tu referencia única para esta notificación (idempotente
                      por cuenta).
                  description:
                    type: string
                    description: Texto que se muestra al cliente en la notificación.
                  amount:
                    type: object
                    required:
                      - currency
                      - value
                    properties:
                      currency:
                        type: string
                        description: >-
                          Código de moneda ISO 4217 del próximo débito (para UPI
                          Autopay, INR).
                        example: INR
                      value:
                        type: string
                        description: Monto del próximo débito.
                        example: '499.00'
                  billing_date:
                    type: string
                    format: date
                    description: Fecha del próximo débito (YYYY-MM-DD).
                  origin_payment_id:
                    type: string
                    format: uuid
                    description: >-
                      El pago de creación del mandato que se usó para derivar el
                      proveedor y la conexión, cuando se proporciona.
                  provider_data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: >-
                          Proveedor que gestionó la notificación (por ejemplo,
                          EBANX).
                      connection_id:
                        type: string
                        format: uuid
                        description: Conexión que se usó para enviar la notificación.
                      provider_transaction_id:
                        type: string
                        description: >-
                          Referencia de transacción del proveedor, cuando está
                          disponible.
                      provider_notification_id:
                        type: string
                        description: >-
                          Referencia del proveedor de la notificación entregada.
                          Yuno la resuelve y la reenvía al proveedor
                          automáticamente cuando el débito recurrente hace
                          referencia a esta notificación.
                      raw_request:
                        type: object
                        description: >-
                          Solicitud ofuscada al proveedor. Solo se devuelve para
                          organizaciones en la lista de permitidos.
                      raw_response:
                        type: object
                        description: >-
                          Respuesta ofuscada del proveedor. Solo se devuelve
                          para organizaciones en la lista de permitidos.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '404':
          description: No existe ninguna notificación con este ID para tu cuenta.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: PRE_DEBIT_NOTIFICATION_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Pre-debit notification not found.
              example:
                code: PRE_DEBIT_NOTIFICATION_NOT_FOUND
                messages:
                  - Pre-debit notification not found.
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.