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

# Obter transação específica

> Obtenha dados de uma transação específica.



## OpenAPI

````yaml GET /transactions/{hash}
openapi: 3.1.0
info:
  title: Pepper API v1
  description: Documentação da API pública da Pepper.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.cloud.pepperpay.com.br/public/v1/
security:
  - bearerAuth: []
paths:
  /transactions/{hash}:
    get:
      description: Obtenha dados de uma transação específica.
      parameters:
        - name: hash
          in: path
          description: Hash ID da transação
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Dados da transação retornados com sucesso
          content:
            application/json:
              schema:
                type: object
                properties:
                  event:
                    type: string
                    description: Tipo do evento
                  hash:
                    type: string
                    description: Hash ID da transação
                  payment_method:
                    type: string
                    description: Método de pagamento utilizado
                  payment_status:
                    type: string
                    description: Status do pagamento
                  installments:
                    type: integer
                    description: Número de parcelas se a transação foi no cartão de crédito
                  pix:
                    type: object
                    nullable: true
                    description: Dados específicos do PIX
                  billet:
                    type: object
                    nullable: true
                    description: Dados específicos do boleto
                  amount:
                    type: integer
                    description: Valor total em centavos
                  amount_liquid:
                    type: integer
                    description: Valor líquido em centavos
                  transaction:
                    type: string
                  utm_source:
                    type: string
                  utm_campaign:
                    type: string
                  utm_content:
                    type: string
                  utm_term:
                    type: string
                  utm_medium:
                    type: string
                  customer:
                    type: object
                    properties:
                      hash:
                        type: string
                        description: Hash ID do cliente
                      name:
                        type: string
                        description: Nome do cliente
                      email:
                        type: string
                        description: Email do cliente
                      phone_number:
                        type: string
                        description: Número de telefone do cliente
                      document:
                        type: string
                        description: Documento CPF/CNPJ do cliente
                  producer:
                    type: object
                    properties:
                      hash:
                        type: string
                      name:
                        type: string
                      email:
                        type: string
                  affiliate:
                    type: object
                    nullable: true
                    properties:
                      hash:
                        type: string
                      name:
                        type: string
                      email:
                        type: string
                  split_recipients:
                    type: array
                    items:
                      type: object
                      properties:
                        recipient_type:
                          type: string
                          description: Tipo do destinatário
                        amount:
                          type: string
                          description: Valor destinado ao recipient
                  offer:
                    type: object
                    properties:
                      hash:
                        type: string
                      title:
                        type: string
                      price:
                        type: integer
                      installments:
                        type: integer
                  product:
                    type: object
                    properties:
                      hash:
                        type: string
                      title:
                        type: string
                      cover:
                        type: string
                      status:
                        type: string
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        hash:
                          type: string
                        product_id:
                          type: integer
                        operation_type:
                          type: integer
                          description: >-
                            Tipo de operação (consultar sessão 'Tipos de
                            operação')
                  balance:
                    type: object
                    properties:
                      amount:
                        type: integer
                      status:
                        type: string
                  postback_url:
                    type: string
                    description: URL do webhook
                  created_at:
                    type: string
                    description: Data de criação
                  updated_at:
                    type: string
                    description: Data de atualização
              examples:
                success:
                  summary: Exemplo de resposta
                  value:
                    event: transaction
                    hash: abc123def456
                    payment_method: credit_card
                    payment_status: paid
                    installments: 1
                    pix: null
                    billet: null
                    amount: 10000
                    amount_liquid: 9500
                    transaction: txn_123456
                    utm_source: google
                    utm_campaign: null
                    utm_content: null
                    utm_term: pagamento
                    utm_medium: cpc
                    customer:
                      hash: cust_123
                      name: João Silva
                      email: joao@email.com
                      phone_number: '11999999999'
                      document: '12345678901'
                    producer:
                      hash: prod_123
                      name: Produtor XYZ
                      email: produtor@email.com
                    affiliate: null
                    split_recipients:
                      - recipient_type: producer
                        amount: '8000'
                      - recipient_type: platform
                        amount: '1500'
                    offer:
                      hash: off_123
                      title: Curso Completo
                      price: 10000
                      installments: 1
                    product:
                      hash: prod_123
                      title: Curso de Marketing Digital
                      cover: https://example.com/cover.jpg
                      status: active
                    items:
                      - hash: item_123
                        product_id: 1
                        operation_type: 1
                    balance:
                      amount: 9500
                      status: available
                    postback_url: https://webhook.example.com
                    created_at: '2024'
                    updated_at: '2024'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use o token da Pepper API no formato: `Bearer {seu_token_aqui}`'

````