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

# 获取 Onboarding

> 检索特定收款方 onboarding 的当前状态和详情

检索收款方特定 onboarding 的详细信息。

此 endpoint 用于检索[拆分支付 Marketplace](https://docs.y.uno/zh-hans/docs/payment-features/split-payments-marketplace.md)中收款方特定 onboarding 的详细信息。使用此 endpoint 查看现有 onboarding 的当前状态、配置和详情。

此 endpoint 需要一个通过[创建 Onboarding](https://docs.y.uno/zh-hans/reference/recipients-for-marketplace/create-onboarding.md)创建的现有 onboarding。


## OpenAPI

````yaml openapi/zh-hans/recipients-for-marketplace/get-onboarding.json GET /recipients/{recipient_id}/onboardings/{onboarding_id}
openapi: 3.1.0
info:
  title: Recipients API
  version: 1.0.0
  description: >-
    API for managing recipients in split payment scenarios. This feature enables
    merchants to split payments among multiple recipients, which is particularly
    beneficial for marketplace models where transactions need to be divided
    among different sellers or stakeholders.
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /recipients/{recipient_id}/onboardings/{onboarding_id}:
    get:
      summary: 获取 Onboarding
      operationId: get-onboarding
      parameters:
        - in: path
          name: recipient_id
          description: 收款方的 ID
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
        - in: path
          name: onboarding_id
          description: 要检索的 onboarding 的 ID
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
      responses:
        '200':
          description: 已成功检索 onboarding 详情
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: onboarding 的唯一标识符
                    example: 9104911d-5df9-429e-8488-ad41abea1a4b
                  account_id:
                    type: string
                    description: Yuno 中账户的唯一 id
                    example: 9104911d-5df9-429e-8488-ad41abea1a4b
                  recipient_id:
                    type: string
                    description: 收款方的唯一标识符
                    example: 9104911d-5df9-429e-8488-ad41abea1a4b
                  type:
                    type: string
                    enum:
                      - PREVIOUSLY_ONBOARDED
                      - ONE_STEP_ONBOARDING
                      - TWO_STEP_ONBOARDING
                    description: onboarding 流程的类型
                    example: PREVIOUSLY_ONBOARDED
                  workflow:
                    type: string
                    enum:
                      - HOSTED_BY_PROVIDER
                      - HOSTED_BY_YUNO
                      - DIRECT
                    description: onboarding 的工作流程
                    example: HOSTED_BY_PROVIDER
                  status:
                    type: string
                    description: onboarding 的当前状态
                    example: ACTIVE
                  callback_url:
                    type: string
                    format: uri
                    description: onboarding 流程结束后要重定向到的 URL
                    example: https://www.google.com
                  provider:
                    type: object
                    properties:
                      id:
                        type: string
                        description: 提供商 ID
                        example: PAGARME
                      connection_id:
                        type: string
                        description: Yuno 中连接的 ID
                        example: 9104911d-5df9-429e-8488-ad41abea1a4b
                      recipient_id:
                        type: string
                        description: 提供商侧收款方的唯一标识符
                        example: AAAAA01
                  created_at:
                    type: string
                    format: date-time
                    description: onboarding 创建日期
                    example: '2024-01-15T10:30:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    description: onboarding 最近更新日期
                    example: '2024-01-15T10:30:00Z'
              examples:
                Success Response:
                  value:
                    id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    account_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    recipient_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    type: PREVIOUSLY_ONBOARDED
                    workflow: HOSTED_BY_PROVIDER
                    status: SUCCEEDED
                    callback_url: https://www.google.com
                    provider:
                      id: PAGARME
                      connection_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                      recipient_id: AAAAA01
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T10:30:00Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          example: INVALID_REQUEST
        messages:
          type: array
          items:
            type: string
            example: Invalid request
  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.