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

# 为 Account Updater 注册已存储的卡

> 在单个请求中为 Card Account Updater 注册最多 100 张已存储的卡

为 [Card Account Updater](https://docs.y.uno/zh-hans/docs/additional-services/card-account-updater.md) 批量注册已存储的卡，使其详细信息自动保持最新。在单个请求中发送支付方式 ID（即注册每张卡时收到的 `vaulted_token`）。

> [!NOTE]
>
> **注册的工作方式**
>
> * 每个请求可以注册 **1 到 100** 张卡；每个 ID 都必须是有效的 `vaulted_token`。
> * 验证采用**全有或全无**方式：只要有任何一个 ID 无效，整个请求都会被拒绝。
> * 注册以**异步**方式运行。带有 `accepted` 的 `200` 响应表示这些卡已被接受，并不表示更新已经完成；更新结果稍后会通过注册 webhook 通知。
> * Card Account Updater 按组织启用。如果您的组织尚未开通，请求会返回 `400`，带有 `code: BAD_REQUEST` 和消息 `organization is not enrolled in account updater.`


## OpenAPI

````yaml openapi/zh-hans/payment-methods-direct-workflow/register-cards-for-account-updater-api.json POST /payment-methods/account-updater
openapi: 3.1.0
info:
  title: customer-api-register-payment-method
  version: 1.0.2
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
    sec2: []
paths:
  /payment-methods/account-updater:
    post:
      summary: 为卡账户更新器注册已存储的卡
      description: >-
        在单个请求中最多为卡账户更新器（Card Account Updater）注册 100 张已存储的卡，以其支付方式
        id（`vaulted_token`）标识。验证是同步的，并且是全有或全无：只要有一个 id
        无效，整个请求就会被拒绝。注册本身以异步方式运行，因此 `200`
        响应仅确认卡已被接受，并不表示更新已完成。您的账户必须已启用卡账户更新器，才能使用此 endpoint。
      operationId: register-cards-for-account-updater-api
      requestBody:
        required: true
        content:
          application/json:
            examples:
              Register cards:
                value:
                  payment_method_ids:
                    - cbdcc878-ceb4-4dd8-b0f0-49d444855de0
                    - 03c3aae1-ed42-4be6-bc24-de5487f58491
            schema:
              type: object
              required:
                - payment_method_ids
              properties:
                payment_method_ids:
                  type: array
                  description: >-
                    要为卡账户更新器注册的已存储支付方式 id（`vaulted_token`）列表。包含 1 到 100
                    项；每项必须是有效的 UUID。
                  minItems: 1
                  maxItems: 100
                  items:
                    type: string
                    format: uuid
                    example: cbdcc878-ceb4-4dd8-b0f0-49d444855de0
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    accepted: 2
              schema:
                type: object
                properties:
                  accepted:
                    type: integer
                    description: 已接受用于卡账户更新器注册的卡数量。
                    example: 2
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Organization not enrolled:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - organization is not enrolled in account updater.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      x-default: <Your private-secret-key>
      name: private-secret-key
    sec2:
      type: apiKey
      in: header
      name: X-Idempotency-Key
      x-default: <Your X-Idempotency-Key>

````

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