> ## 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.

# 按商户参考号检索预扣款通知

> 按创建时使用的商户参考号检索预扣款通知。

按您在创建时使用的 `merchant_reference` 检索预扣款通知。通知的作用范围为您的账户。


## OpenAPI

````yaml openapi/zh-hans/pre-debit-notifications/retrieve-pre-debit-notification-by-merchant-reference.json GET /predebit-notify
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:
    get:
      summary: 按商户参考编号检索预扣款通知
      description: 通过创建通知时使用的商户参考编号检索预扣款通知。
      operationId: retrieve-pre-debit-notification-by-merchant-reference
      parameters:
        - name: X-Account-Code
          in: header
          required: true
          description: 通知所属账户的 UUID。
          schema:
            type: string
            format: uuid
        - name: merchant_reference
          in: query
          required: true
          description: 创建时使用的 merchant_reference。
          schema:
            type: string
      responses:
        '200':
          description: 预扣款通知。
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: >-
                      预扣款通知的唯一标识符。请在定期扣款时将其作为
                      payment_method.detail.bank_transfer.pre_debit_notification_id
                      引用。
                  account_id:
                    type: string
                    format: uuid
                    description: 您的 Yuno 账户 ID。
                  status:
                    type: string
                    enum:
                      - SENT
                      - REJECTED
                      - ERROR
                    description: SENT：提供商已接受并送达通知。REJECTED：提供商拒绝了通知。ERROR：通知无法转发。
                  merchant_reference:
                    type: string
                    description: 您为此通知设置的唯一参考编号（按账户保证幂等）。
                  description:
                    type: string
                    description: 通知中向客户显示的文本。
                  amount:
                    type: object
                    required:
                      - currency
                      - value
                    properties:
                      currency:
                        type: string
                        description: 即将扣款的 ISO 4217 货币代码（UPI Autopay 为 INR）。
                        example: INR
                      value:
                        type: string
                        description: 即将扣款的金额。
                        example: '499.00'
                  billing_date:
                    type: string
                    format: date
                    description: 即将扣款的日期（YYYY-MM-DD）。
                  origin_payment_id:
                    type: string
                    format: uuid
                    description: 用于得出提供商和连接的委托协议创建支付（若已提供）。
                  provider_data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: 处理该通知的提供商（例如 EBANX）。
                      connection_id:
                        type: string
                        format: uuid
                        description: 用于发送通知的连接。
                      provider_transaction_id:
                        type: string
                        description: 提供商交易参考编号（若可用）。
                      provider_notification_id:
                        type: string
                        description: 已送达通知的提供商参考编号。当定期扣款引用此通知时，Yuno 会自动解析并转发给提供商。
                      raw_request:
                        type: object
                        description: 经过混淆处理的提供商请求。仅对在允许列表中的组织返回。
                      raw_response:
                        type: object
                        description: 经过混淆处理的提供商响应。仅对在允许列表中的组织返回。
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '404':
          description: 您的账户下不存在此商户参考编号的通知。
          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.