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

# Enregistrer un domaine

> Enregistrez un domaine de moyen de paiement chez Yuno afin qu'il puisse être vérifié selon les exigences de domaine des schémas de cartes.



## OpenAPI

````yaml openapi/fr/domains/register-domain.json POST /v1/payment-methods/domains
openapi: 3.0.0
info:
  version: 1.0.0
  title: Domains
servers:
  - url: https://api-sandbox.y.uno
    description: Sandbox
  - url: https://api.y.uno
    description: Production (US)
security:
  - public-api-key: []
    private-secret-key: []
paths:
  /v1/payment-methods/domains:
    post:
      operationId: post_v1-payment-methods-domains
      parameters:
        - in: header
          name: X-Idempotency-Key
          schema:
            type: string
          description: >-
            Obligatoire : les requêtes sans cette valeur sont rejetées avec 400
            INVALID_PARAMETERS. Stockée uniquement à des fins d'audit et non
            appliquée aujourd'hui : chaque appel crée une nouvelle tentative
            d'enregistrement et un nouvel appel au prestataire de portefeuille,
            même s'il répète une clé précédente.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                account_id:
                  type: string
                  description: >-
                    L'identifiant unique du compte. Vous le trouvez dans le
                    [Dashboard Yuno](https://dashboard.y.uno/developers) (MAX 64
                    ; MIN 36)
                connection_id:
                  type: string
                  description: >-
                    L'identifiant unique de la connexion de portefeuille sur
                    laquelle les domaines sont enregistrés (UUID). Avec le
                    certificat Apple Pay de Yuno, une connexion contient au
                    maximum 99 domaines.
                payment_method_type:
                  type: string
                  description: >-
                    Un seul moyen de paiement à enregistrer pour tous les
                    domaines.
                  enum:
                    - APPLE_PAY
                    - GOOGLE_PAY
                domains:
                  type: array
                  items:
                    properties:
                      url:
                        type: string
                        description: >-
                          Nom de domaine complet, sans schéma ni chemin (par
                          exemple, `checkout.example.com`).
                    type: object
                    required:
                      - url
                  description: >-
                    Domaines à enregistrer, de 1 à 50 par requête. Chaque
                    sous-domaine est un domaine distinct.
                  minItems: 1
                  maxItems: 50
              required:
                - account_id
                - connection_id
                - payment_method_type
                - domains
            examples:
              Accepted:
                summary: Accepted
                value:
                  account_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  connection_id: 7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a
                  payment_method_type: APPLE_PAY
                  domains:
                    - url: checkout.example.com
                    - url: shop.example.com
      responses:
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  account_id:
                    type: string
                    example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  payment_method_type:
                    type: string
                    example: APPLE_PAY
                  domains:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: 8a2f4b1c-6d3e-4f7a-9b21-0c5d8e7f6a43
                        domain:
                          type: string
                          example: checkout.example.com
                        status:
                          type: string
                          description: >-
                            `CREATED` : l'enregistrement auprès du prestataire
                            de portefeuille est en cours. `REGISTERED` : le
                            domaine est vérifié et peut afficher le bouton de
                            portefeuille. `ERROR` : le prestataire a rejeté
                            l'enregistrement (par exemple, le fichier
                            d'association n'était pas accessible) ; enregistrez
                            à nouveau le domaine après avoir corrigé le
                            problème. `INACTIVE` : le domaine a été supprimé.
                          enum:
                            - CREATED
                            - REGISTERED
                            - ERROR
                            - INACTIVE
                          example: REGISTERED
                        created_at:
                          type: string
                          example: '2026-01-22T10:30:00Z'
                        updated_at:
                          type: string
                          example: '2026-01-22T10:30:00Z'
              examples:
                Accepted:
                  summary: Accepted
                  value:
                    account_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                    payment_method_type: APPLE_PAY
                    domains:
                      - id: 8a2f4b1c-6d3e-4f7a-9b21-0c5d8e7f6a43
                        domain: checkout.example.com
                        status: REGISTERED
                        created_at: '2026-01-22T10:30:00Z'
                        updated_at: '2026-01-22T10:30:00Z'
                      - id: c71e2d9a-5b04-4e6f-8a3d-2f1b7c9e0d55
                        domain: shop.example.com
                        status: REGISTERED
                        created_at: '2026-01-22T10:30:00Z'
                        updated_at: '2026-01-22T10:30:00Z'
          description: Accepté
components:
  securitySchemes:
    public-api-key:
      type: apiKey
      in: header
      name: public-api-key
    private-secret-key:
      type: apiKey
      in: header
      name: private-secret-key

````

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