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

# Submete KYC

> Upload dos documentos para verificação de identidade. Sempre inclua `selfie`. Para PF com RG: `documentFront` + `documentBack`. Para PF com CNH: `documentPhoto` **ou** `documentDigital`. Para PJ (qualquer documentType): `cnpjCard` + `socialContract` + documentos pessoais do sócio. Tamanho máximo por arquivo: 5 MB. Formatos aceitos: JPG, PNG, PDF.



## OpenAPI

````yaml POST /receivers/{id}/kyc/submit
openapi: 3.1.0
info:
  title: Astron Pay API
  version: 1.0.0
  description: >-
    API B2B para integração de câmbio crypto ↔ BRL via PIX. Autentique com
    `x-api-key` + `x-api-secret`.
  contact:
    name: Astron Pay
    url: https://astronpay.co
    email: dev@astronpay.co
servers:
  - url: https://api.astronpay.co/api/v1
    description: Production
security:
  - apiKey: []
    apiSecret: []
  - bearerAuth: []
tags:
  - name: Fee Tiers
    description: Consulta e atualização das taxas do merchant.
  - name: Receivers
    description: CRUD, KYC, limites e wallet signing dos receivers.
  - name: Quote
    description: Cotações de payin e payout.
  - name: Payin
    description: Ordens de entrada (BRL → crypto).
  - name: Payout
    description: Ordens de saída (crypto → BRL).
  - name: Orders
    description: Consulta genérica de ordens.
  - name: Merchant Wallet
    description: Assinatura de transações com a wallet gerenciada do merchant.
  - name: Ledger
    description: Saldos, entries e liquidações.
  - name: Webhook Config
    description: Configuração de webhook e listagem de eventos.
paths:
  /receivers/{id}/kyc/submit:
    post:
      tags:
        - Receivers
      summary: Envia documentos de KYC (multipart/form-data)
      description: >-
        Upload dos documentos para verificação de identidade. Sempre inclua
        `selfie`. Para PF com RG: `documentFront` + `documentBack`. Para PF com
        CNH: `documentPhoto` **ou** `documentDigital`. Para PJ (qualquer
        documentType): `cnpjCard` + `socialContract` + documentos pessoais do
        sócio. Tamanho máximo por arquivo: 5 MB. Formatos aceitos: JPG, PNG,
        PDF.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - documentType
              properties:
                documentType:
                  type: string
                  enum:
                    - rg
                    - cnh
                  description: >-
                    Tipo de documento de identidade pessoal do receiver ou
                    sócio.
                selfie:
                  type: string
                  format: binary
                  description: Selfie do receiver (obrigatório para PF e PJ).
                documentFront:
                  type: string
                  format: binary
                  description: Frente do RG (obrigatório quando documentType=rg).
                documentBack:
                  type: string
                  format: binary
                  description: Verso do RG (obrigatório quando documentType=rg).
                documentPhoto:
                  type: string
                  format: binary
                  description: Foto da CNH (uma das duas opções quando documentType=cnh).
                documentDigital:
                  type: string
                  format: binary
                  description: CNH digital (uma das duas opções quando documentType=cnh).
                cnpjCard:
                  type: string
                  format: binary
                  description: Cartão CNPJ (obrigatório para receivers PJ).
                socialContract:
                  type: string
                  format: binary
                  description: Contrato social (obrigatório para receivers PJ).
      responses:
        '200':
          description: Documentos recebidos; KYC em análise
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Receiver'
        '400':
          description: Documentos faltantes, tipo inválido ou arquivo muito grande
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Receiver não encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Receiver:
      type: object
      required:
        - id
        - merchantId
        - type
        - name
        - document
        - documentType
        - status
        - kycStatus
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        merchantId:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - PF
            - PJ
        name:
          type: string
          example: João Silva
        email:
          type: string
          format: email
          nullable: true
        phone:
          type: string
          nullable: true
          example: '+5511999999999'
        document:
          type: string
          example: '12345678901'
        documentType:
          type: string
          enum:
            - CPF
            - CNPJ
        status:
          type: string
          enum:
            - PENDING
            - ACTIVE
            - SUSPENDED
            - BLOCKED
        kycStatus:
          type: string
          enum:
            - PENDING
            - SUBMITTED
            - UNDER_REVIEW
            - APPROVED
            - REJECTED
        limits:
          $ref: '#/components/schemas/ReceiverLimits'
        walletAddress:
          type: string
          nullable: true
          example: 4k5d...Solana
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          example: VALIDATION_ERROR
        message:
          type: string
          example: Campo 'amountBrl' é obrigatório
        details:
          type: object
          additionalProperties: true
        requestId:
          type: string
          example: req_abc123
    ReceiverLimits:
      type: object
      properties:
        dailyLimitBrl:
          type: number
          example: 50000
        dailyTransactionLimit:
          type: integer
          example: 20
        nightTransactionsEnabled:
          type: boolean
          example: false
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    apiSecret:
      type: apiKey
      in: header
      name: x-api-secret
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````