> ## Documentation Index
> Fetch the complete documentation index at: https://developers.uvvipay.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Consultar pagamento

> Consulta o status e detalhes de um pagamento pelo ID



## OpenAPI

````yaml GET /v1/payments/{id}
openapi: 3.0.0
info:
  title: UvviPay Public API
  description: >-
    Endpoints públicos da plataforma UvviPay para integração de subcontas
    (submerchants).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.uvvipay.com.br
    description: Produção
  - url: https://api-staging.uvvipay.com.br
    description: Staging
security:
  - client-id: []
    client-secret: []
tags: []
paths:
  /v1/payments/{id}:
    get:
      tags:
        - Pagamentos
      summary: Consultar pagamento
      description: Consulta o status e detalhes de um pagamento pelo ID
      operationId: getPayment
      parameters:
        - name: client-secret
          in: header
          description: Secret da credencial do merchant
          required: true
          schema:
            type: string
        - name: client-id
          in: header
          description: ID público da credencial do merchant
          required: true
          schema:
            type: string
        - name: id
          required: true
          in: path
          description: UUID interno da transação (`id` da resposta de POST /v1/payments)
          schema:
            type: string
            example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Dados do pagamento
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponseDto'
              examples:
                Cartão de crédito pago:
                  summary: Cartão aprovado (card.brand e card.last4)
                  value:
                    id: 547c8482-47d8-4692-a48d-54ea35384c6e
                    status: paid
                    amount: 9900
                    paymentMethod: credit_card
                    card:
                      brand: visa
                      last4: '1111'
                    externalReference: 35d29135-f14e-4695-b9ae-ccde91676a60
                    customer:
                      name: João da Silva
                      email: joao@example.com
                      phone: null
                      documentNumber: '12345678901'
                      documentType: cpf
                      address:
                        zipCode: null
                        street: null
                        streetNumber: null
                        neighborhood: null
                        city: null
                        state: null
                        country: null
                    items:
                      - title: Curso completo
                        quantity: 1
                        unitPrice: 9900
                    createdAt: '2026-09-14T18:51:12.947Z'
                creditCardApplePay:
                  summary: Apple Pay (card.wallet.type apple_pay)
                  value:
                    id: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
                    status: paid
                    amount: 9900
                    paymentMethod: credit_card
                    card:
                      brand: visa
                      last4: '4242'
                      wallet:
                        type: apple_pay
                    externalReference: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                    createdAt: '2026-09-14T18:51:12.947Z'
        '401':
          description: Credenciais inválidas ou ausentes
        '404':
          description: Pagamento não encontrado
components:
  schemas:
    PaymentResponseDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: d398b016-3c29-41b4-afc0-bbf8c81c683c
        status:
          type: string
          enum:
            - waiting_payment
            - paid
            - refused
            - refunded
            - in_analysis
          example: paid
        amount:
          type: number
          example: 15680
        paymentMethod:
          type: string
          example: credit_card
        transactionId:
          type: string
        card:
          $ref: '#/components/schemas/PaymentCardResponseDto'
        pix:
          $ref: '#/components/schemas/PixResponseDto'
        boleto:
          $ref: '#/components/schemas/BoletoResponseDto'
        refusedReason:
          $ref: '#/components/schemas/RefusedReasonDto'
        subMerchant:
          $ref: '#/components/schemas/PaymentSubMerchantResponseDto'
        split:
          type: array
          description: >-
            Split resolvido da transação: valor efetivamente destinado a cada
            recebedor, em centavos (quando a transação possui split)
          items:
            $ref: '#/components/schemas/PaymentSplitRuleResponseDto'
        customer:
          $ref: '#/components/schemas/PaymentCustomerResponseDto'
        items:
          type: array
          items:
            $ref: '#/components/schemas/PaymentItemResponseDto'
        externalReference:
          type: string
          example: 35d29135-f14e-4695-b9ae-ccde91676a60
        upsell:
          $ref: '#/components/schemas/PaymentUpsellResponseDto'
        createdAt:
          type: string
          format: date-time
          example: '2026-07-02T19:41:46.738Z'
      required:
        - id
        - status
        - amount
        - paymentMethod
        - createdAt
    PaymentCardResponseDto:
      type: object
      description: >-
        Presente em pagamentos `credit_card` quando brand e last4 estão
        persistidos. Omitido em pix, boleto e wallet. Não inclui PAN, CVV,
        titular, validade nem BIN. Em Apple Pay inclui `wallet.type`.
      properties:
        brand:
          type: string
          description: Bandeira em minúsculo
          example: visa
        last4:
          type: string
          description: Últimos 4 dígitos do PAN ou DPAN (Apple Pay)
          example: '1111'
        wallet:
          $ref: '#/components/schemas/PaymentCardWalletResponseDto'
      required:
        - brand
        - last4
      example:
        brand: visa
        last4: '1111'
    PixResponseDto:
      type: object
      properties:
        qrcode:
          type: string
          description: >-
            Payload PIX (copia e cola / QR Code). Também retornado na cobrança
            de boleto.
        expiresAt:
          type: string
          format: date-time
          description: Data/hora em que o QR Code PIX expira (ISO 8601)
          example: '2026-08-12T17:36:05.917Z'
        expireIn:
          type: integer
          description: Duracao configurada do QR em segundos
          example: 1800
    BoletoResponseDto:
      type: object
      properties:
        digitableLine:
          type: string
          description: Linha digitável do boleto
          example: 34191.79001 01043.510047 91020.150008 1 98760000012345
      required:
        - digitableLine
    RefusedReasonDto:
      type: object
      description: >-
        Motivo da recusa (presente apenas quando status = refused). Consulte o
        guia [Recusas de cartão](/recusas-de-cartao) para entender as categorias
        e como orientar o cliente.
      properties:
        category:
          type: string
          description: >-
            Categoria abstraída do motivo da recusa. Presente em POST e GET. Não
            retorna código da adquirente.
          enum:
            - issuer_declined
            - invalid_card_data
            - temporary_unavailable
            - suspected_fraud
            - installments_exceeded
          example: issuer_declined
        description:
          type: string
          description: Rótulo amigável da categoria, pronto para exibição.
          example: Recusa do banco emissor
      required:
        - category
        - description
    PaymentSubMerchantResponseDto:
      type: object
      description: Dados públicos do submerchant (owner) vinculado à transação.
      properties:
        internalId:
          type: string
          format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
        legalName:
          type: string
          description: Razão social / nome do titular do submerchant
          example: Loja do João LTDA
        documentType:
          type: string
          enum:
            - cpf
            - cnpj
          example: cnpj
        documentNumber:
          type: string
          example: '12345678000199'
    PaymentSplitRuleResponseDto:
      type: object
      description: Valor do split efetivamente destinado a um recebedor.
      properties:
        recipient_id:
          type: string
          format: uuid
          description: Identificador público (UUID) do recebedor do split
          example: 5b9f3d6a-3a2c-4d6f-9b9e-0a1b2c3d4e5f
        amount:
          type: number
          description: Valor creditado ao recebedor, em centavos
          example: 2500
      required:
        - recipient_id
        - amount
    PaymentCustomerResponseDto:
      type: object
      description: Dados completos do cliente (presente quando disponível).
      properties:
        name:
          type: string
          example: João da Silva
        email:
          type: string
          example: joao@exemplo.com
        phone:
          type: string
          example: '11987654321'
        documentNumber:
          type: string
          example: '12345678901'
        documentType:
          type: string
          enum:
            - cpf
            - cnpj
            - passport
          example: cpf
        address:
          $ref: '#/components/schemas/PaymentCustomerAddressResponseDto'
    PaymentItemResponseDto:
      type: object
      description: Item da transação, retornado exatamente como salvo na criação.
      properties:
        title:
          type: string
          example: Produto X
        quantity:
          type: number
          example: 1
        tangible:
          type: boolean
          example: true
        unitPrice:
          type: number
          example: 15680
    PaymentUpsellResponseDto:
      type: object
      description: >-
        Presente apenas em pagamentos com cartão aberto (number/cvv) aprovados
        (`status: paid`) cuja emissão do token teve sucesso. Não é emitido para
        cobranças via cardTokenId ou upsellToken. A emissão é best-effort: a
        ausência do objeto não indica falha do pagamento.
      properties:
        token:
          type: string
          description: >-
            Token opaco de uso único para enviar em `card.upsellToken` em um
            novo POST /v1/payments.
          example: AbCdEfGhIjKlMnOpQrStUv
        expiresAt:
          type: string
          format: date-time
          description: Instante em que o token expira (15 minutos após a emissão).
          example: '2026-07-02T19:56:46.738Z'
      required:
        - token
        - expiresAt
    PaymentCardWalletResponseDto:
      type: object
      description: >-
        Presente apenas quando o pagamento credit_card foi autorizado via wallet
        (Apple Pay).
      properties:
        type:
          type: string
          enum:
            - apple_pay
          example: apple_pay
      required:
        - type
    PaymentCustomerAddressResponseDto:
      type: object
      properties:
        zipCode:
          type: string
          example: '01310100'
        street:
          type: string
          example: Avenida Paulista
        streetNumber:
          type: string
          example: '1000'
        neighborhood:
          type: string
          example: Bela Vista
        city:
          type: string
          example: São Paulo
        state:
          type: string
          example: SP
        country:
          type: string
          example: BR
  securitySchemes:
    client-id:
      type: apiKey
      in: header
      name: client-id
    client-secret:
      type: apiKey
      in: header
      name: client-secret

````

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