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

# Reembolsar pagamento

> Emite um reembolso parcial ou total para uma transação de pagamento existente.

> [!WARNING]
>
> Não execute um reembolso enquanto outro estiver em andamento. Aguarde a conclusão da operação atual antes de iniciar uma nova.

Este endpoint permite emitir um reembolso para um pagamento existente.

Se você especificar um `amount`, será criado um **reembolso parcial**. Se o `amount` for omitido, será processado um **reembolso total** do pagamento original.

> [!NOTE]
>
> **Pagamentos com uma promoção da Yuno**
>
> Um reembolso é calculado sobre o que o cliente pagou, `amount.value` menos `discount_amount`. Um reembolso total devolve esse valor, e um `amount` acima do que resta para reembolsar é rejeitado com `400 INVALID_PARAMETERS`. Consulte [Promoções](https://docs.y.uno/docs/payment-features/promotions#refunds-captures-and-cancellations).

> [!NOTE]
>
> **Pagamentos parcialmente aprovados**
>
> Para um pagamento com cartão enviado com `payment_method.detail.card.partial_approval: true` e aprovado por um valor menor que o solicitado, os reembolsos ficam limitados a `amount.authorized`. Um reembolso total devolve `amount.authorized`, e um `amount` acima do que resta dele é rejeitado com `400 INVALID_PARAMETERS`.

Só é possível criar reembolsos para cobranças que ainda não foram reembolsadas. O valor reembolsado será devolvido ao meio de pagamento original usado na transação.

Esta requisição exige um `X-Idempotency-Key`. Consulte a página [Autenticação](https://docs.y.uno/pt-br/reference/getting-started/authentication.md#idempotency) para mais informações.


## OpenAPI

````yaml openapi/pt-br/payments/refund-payment.json POST /payments/{id}/transactions/{transaction_id}/refund
openapi: 3.1.0
info:
  title: payment-api-refundcancel-payment
  version: 1.0.2
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
    sec2: []
paths:
  /payments/{id}/transactions/{transaction_id}/refund:
    post:
      summary: Reembolsar pagamento
      operationId: refund-payment
      parameters:
        - name: id
          in: path
          description: O identificador único do pagamento (UUID, 36 caracteres).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: O identificador único da transação (UUID, 36 caracteres).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
              properties:
                description:
                  type: string
                  description: Descrição do reembolso. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: >-
                    Indica o motivo do reembolso. Se definido, os valores
                    possíveis são `DUPLICATE`, `FRAUDULENT`,
                    `REQUESTED_BY_CUSTOMER` e `REVERSE`. Use `REVERSE` para
                    solicitar a reversão automática dos fundos do destinatário
                    quando houver um destinatário envolvido na transação.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                    - REVERSE
                merchant_reference:
                  type: string
                  description: >-
                    Identificação da transação de pagamento definida pelo
                    lojista (MAX 255; MIN 3).
                amount:
                  type: object
                  description: >-
                    Especifica o objeto de valor para o reembolso. **Obrigatório
                    apenas para reembolsos parciais**.
                  properties:
                    currency:
                      type: string
                      description: >-
                        A moeda usada para fazer o pagamento. Para a lista
                        completa de códigos de moeda, consulte a [Referência de
                        países](/pt-br/reference/country-reference) (MAX 3; MIN
                        3; ISO 4217).
                    value:
                      type: number
                      format: float
                      description: >-
                        O valor do reembolso (múltiplo de 0.0001). Para uma
                        moeda sem casas decimais (por exemplo, KRW, JPY ou CLP),
                        o valor deve ser um número inteiro: veja [Valores e
                        moedas](/pt-br/docs/basic-concepts/amounts-and-currencies).
                split_marketplace:
                  type: array
                  description: Array de objetos de split de marketplace
                  items:
                    properties:
                      recipient_id:
                        type: string
                        description: >-
                          O identificador único do destinatário no sistema da
                          Yuno. <br/> Você deve informar o
                          [`recipient_id`](/pt-br/reference/recipients-for-marketplace/create-recipient-1)
                          (gerado pela Yuno) ou o `provider_recipient_id` (ID do
                          provedor externo) ao criar um pagamento.
                      provider_recipient_id:
                        type: string
                        description: >-
                          O ID do destinatário fornecido pelo provedor de
                          pagamento externo, se aplicável. <br/> Você deve
                          informar o `provider_recipient_id` ou o
                          [`recipient_id`](/pt-br/reference/recipients-for-marketplace/create-recipient-1)
                          (gerado pela Yuno) ao criar um pagamento.
                      description:
                        type: string
                        description: Descrição do split. (MAX 255; MIN 3).
                      type:
                        type: string
                        description: >-
                          O tipo de split. `recipient_id` é obrigatório para
                          `PURCHASE` e `MARKETPLACE`.
                        enum:
                          - PURCHASE
                          - PAYMENTFEE
                          - VAT
                          - COMMISSION
                          - MARKETPLACE
                          - SHIPPING
                      merchant_reference:
                        type: string
                        description: >-
                          Identificador único opcional da transação de split
                          (MAX 255; MIN 3).
                      recipient_type:
                        type: string
                        description: O tipo de destinatário para o provedor.
                        enum:
                          - MEAL
                          - FOOD
                          - MULTI_BENEFITS
                          - FLEET
                        example: MEAL
                      amount:
                        type: object
                        description: Define o valor do split.
                        required:
                          - value
                          - currency
                        properties:
                          value:
                            type: number
                            description: O valor do split (múltiplo de 0.0001).
                            format: float
                          currency:
                            type: string
                            description: >-
                              A moeda usada para fazer o pagamento. Para a lista
                              completa de códigos de moeda, consulte a
                              [Referência de
                              países](/pt-br/reference/country-reference) (MAX
                              3; MIN 3; ISO 4217).
                      liability:
                        type: object
                        description: >-
                          Informações opcionais sobre a responsabilidade do
                          destinatário por tarifas e chargebacks.
                        properties:
                          processing_fee:
                            type: string
                            description: Indica quem será cobrado pela tarifa da transação.
                            enum:
                              - MERCHANT
                              - RECIPIENT
                              - SHARED
                          chargebacks:
                            type: boolean
                            description: >-
                              O destinatário é responsável em caso de
                              chargeback.
                    required:
                      - type
                    type: object
                simplified_mode:
                  type: boolean
                  description: >-
                    Determina se a Yuno deve tentar reembolsar automaticamente
                    um pagamento após um erro ou recusa inicial. Quando definido
                    como `true`, a Yuno tentará o processo novamente se a
                    primeira tentativa falhar. Por padrão, é definido como
                    `false`. Acesse [Transaction
                    Retries](https://docs.y.uno/pt-br/docs/payment-features/transaction-retries)
                    para mais detalhes.
                response_additional_data:
                  type: object
                  description: >-
                    Especifica dados adicionais necessários para a resposta da
                    transação
                  properties:
                    receipt:
                      type: boolean
                      description: >-
                        Indica se um recibo é necessário para a resposta da
                        transação
                    receipt_language:
                      type: string
                      description: Indica o idioma do recibo a ser gerado
                      enum:
                        - ES
                        - EN
                        - PT
                customer_payer:
                  type: object
                  description: Especifica o objeto de cliente dos pagamentos.
                  properties:
                    first_name:
                      type: string
                      description: O primeiro nome do cliente (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: O sobrenome do cliente (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        O gênero do cliente (MAX 2; MIN 1). <br/>- M=Masculino
                        <br/>- F=Feminino <br/>- NB=Não binário <br/>- NA=Não
                        aplicável <br/>- NK=Não conhecido <br/>- U=Indefinido.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: >-
                        A data de nascimento do cliente no formato `YYYY-MM-DD`
                        (comprimento: 10).
                    email:
                      type: string
                      description: O e-mail do cliente (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: >-
                        A nacionalidade do cliente (MAX 2; MIN 2; [ISO
                        3166-1](/pt-br/reference/country-reference)).
                    document:
                      type: object
                      description: >-
                        Especifica o objeto de documento do cliente, incluindo o
                        número e o tipo.
                      required:
                        - document_number
                        - document_type
                      properties:
                        document_number:
                          type: string
                          description: Número do documento do cliente (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            O tipo de documento do cliente (MAX 6, MIN 2).
                            Acesse a [Lista de tipos de
                            documento](/pt-br/reference/country-reference) para
                            mais detalhes.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Especifica o objeto de telefone do cliente.
                      properties:
                        country_code:
                          type: string
                          description: >-
                            O código do país do telefone do cliente (MAX 3; MIN
                            1).
                        number:
                          type: string
                          description: >-
                            O número de telefone do cliente, sem o código do
                            país (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Especifica o objeto de endereço de cobrança do cliente.
                      properties:
                        address_line_1:
                          type: string
                          description: >-
                            A linha principal do endereço de cobrança do cliente
                            (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: >-
                            A linha secundária do endereço de cobrança do
                            cliente (MAX 255; MIN 3).
                        city:
                          type: string
                          description: >-
                            A cidade considerada para o endereço de cobrança
                            (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            O país considerado para o endereço de cobrança (MAX
                            2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/pt-br/reference/customers/the-customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: >-
                            O estado considerado para o endereço de cobrança
                            (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: >-
                            O CEP considerado para o endereço de cobrança (MAX
                            10; MIN 5).
                    shipping_address:
                      type: object
                      description: Especifica o objeto de endereço de entrega do cliente.
                      properties:
                        address_line_1:
                          type: string
                          description: >-
                            A linha principal do endereço de entrega do cliente
                            (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: >-
                            A linha secundária do endereço de entrega do cliente
                            (MAX 255; MIN 3).
                        city:
                          type: string
                          description: >-
                            A cidade considerada para o endereço de entrega (MAX
                            255; MIN 3).
                        country:
                          type: string
                          description: >-
                            O país considerado para o endereço de entrega (MAX
                            2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/pt-br/reference/customers/the-customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: >-
                            O estado considerado para o endereço de entrega (MAX
                            255; MIN 3).
                        zip_code:
                          type: string
                          description: >-
                            O CEP considerado para o endereço de entrega (MAX
                            10; MIN 5).
                payment_method:
                  type: object
                  description: Especifica o objeto de meio de pagamento para pagamentos.
                  properties:
                    detail:
                      type: object
                      description: Especifica o objeto de detalhes do meio de pagamento.
                      properties:
                        bank_transfer:
                          type: object
                          description: >-
                            Especifica os detalhes do meio de pagamento por
                            transferência bancária.
                          properties:
                            account_type:
                              type: string
                              description: Tipo de conta bancária (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Nome do banco (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID do banco (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Nome do titular da conta (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Número da conta bancária (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: >-
                                Tipo de documento do titular da conta (MAX 255;
                                MIN 3)
                            beneficiary_document:
                              type: string
                              description: >-
                                Número do documento do titular da conta (MAX
                                255; MIN 3)
                            reference:
                              type: string
                              description: Código de referência do usuário (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Número mascarado da conta bancária associada à
                                transferência bancária (por exemplo, ****6789).
                                São dados da conta, não do mandato.
                            mandate:
                              type: object
                              description: >-
                                Detalhes do mandato de débito direto, para
                                métodos de transferência bancária que operam com
                                mandatos (por exemplo, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: >-
                                    Identificador do mandato, conforme fornecido
                                    pelo provedor de pagamento.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Status do provedor que indica se o mandato
                                    foi recebido. Repassado conforme fornecido
                                    pelo provedor de pagamento.
                                existing_status:
                                  type: string
                                  description: >-
                                    Status do provedor para o mandato existente.
                                    Repassado conforme fornecido pelo provedor
                                    de pagamento.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: >-
                                    Data e hora em que o mandato foi criado (ISO
                                    8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: >-
                                    Data e hora da última atualização do mandato
                                    (ISO 8601).
            examples:
              Full Refund:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
              Partial Refund:
                value:
                  amount:
                    currency: USD
                    value: 30
                  description: Duplicate transaction
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: US-INV-432245
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Full Refund:
                  value:
                    id: f2d6884a-f737-4565-ae32-ff60b19089e3
                    account_id: ''
                    description: Duplicate
                    country: US
                    status: REFUNDED
                    sub_status: REFUNDED
                    merchant_order_id: AAB01-432245
                    created_at: '2025-04-14T17:51:45.179645Z'
                    updated_at: '2025-04-14T17:52:07.908698Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 30000
                      value: 30000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: MERCHANT
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '216303'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CHASE BANK USA
                            issuer_code: null
                            country_code: US
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                            expiration_month: 3
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1744653105'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: john.doe@example.com
                      nationality: US
                      ip_address: 192.168.1.1
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 1234 Elm Street
                        address_line_2: Apt 5B
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 1234 Elm Street
                        address_line_2: Apt 5B
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 5414f862-51e6-433f-a54c-b46b176e87a0
                      type: REFUND
                      status: SUCCEEDED
                      category: CARD
                      amount: 30000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: MERCHANT
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '216303'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CHASE BANK USA
                              issuer_code: null
                              country_code: US
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                              expiration_month: 3
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: REQUESTED_BY_CUSTOMER
                      description: Test refund
                      merchant_reference: REFUND_001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 2e5c04d5-4cf7-4d2a-b57a-dd5eb9a687bc
                        account_id: ''
                        status: ''
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: SUCCEEDED
                        raw_request:
                          amount:
                            currency: BRL
                            value: 2100
                          reference: '34343434'
                        raw_response:
                          message: provider response
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 58cc35f4-faef-4107-8e09-d18d60121d38
                        name: Connection name
                      created_at: '2025-04-14T17:52:07.768528Z'
                      updated_at: '2025-04-14T17:52:07.862912Z'
                    transactions_history: null
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules: null
                    simplified_mode: false
                Partial Refund:
                  value:
                    id: b908fd70-9af7-41a6-8e1c-3a5ec78ea88b
                    account_id: ''
                    description: Duplicate transaction
                    country: US
                    status: SUCCEEDED
                    sub_status: PARTIALLY_REFUNDED
                    merchant_order_id: '0000023'
                    created_at: '2025-04-14T17:50:55.936358Z'
                    updated_at: '2025-04-14T17:51:23.347308Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 30
                      value: 300
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: MERCHANT
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '344836'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CHASE BANK USA
                            issuer_code: null
                            country_code: US
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                            expiration_month: 3
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1744653056'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: john.doe@example.com
                      nationality: US
                      ip_address: 192.0.2.1
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 456 Maple Ave
                        address_line_2: Apt 12C
                        country: US
                        state: New York
                        city: New York
                        zip_code: '10001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 456 Maple Ave
                        address_line_2: Apt 12C
                        country: US
                        state: New York
                        city: New York
                        zip_code: '10001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 3f47548e-a1c9-418e-b899-40d30da9c699
                      type: REFUND
                      status: SUCCEEDED
                      category: CARD
                      amount: 30
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: MERCHANT
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '344836'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CHASE BANK USA
                              issuer_code: null
                              country_code: US
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                              expiration_month: 3
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: REQUESTED_BY_CUSTOMER
                      description: Test refund
                      merchant_reference: US-INV-432245
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 831017b2-928f-4f19-8f0b-0e0ae14013bd
                        account_id: ''
                        status: ''
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: SUCCEEDED
                        raw_response:
                          message: provider response
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 58cc35f4-faef-4107-8e09-d18d60121d38
                        name: Connection name
                      created_at: '2025-04-14T17:51:23.232152Z'
                      updated_at: '2025-04-14T17:51:23.322335Z'
                    transactions_history: null
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules: null
                    simplified_mode: false
              schema:
                oneOf:
                  - title: Reembolso total
                    type: object
                    properties:
                      id:
                        type: string
                        example: f2d6884a-f737-4565-ae32-ff60b19089e3
                      account_id:
                        type: string
                        example: ''
                      description:
                        type: string
                        example: Duplicate
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: REFUNDED
                      sub_status:
                        type: string
                        example: REFUNDED
                      merchant_order_id:
                        type: string
                        example: AAB01-432245
                      created_at:
                        type: string
                        example: '2025-04-14T17:51:45.179645Z'
                      updated_at:
                        type: string
                        example: '2025-04-14T17:52:07.908698Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion: {}
                          refunded:
                            type: integer
                            example: 30000
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          O desconto total da promoção da Yuno aplicada ao
                          pagamento: a soma das linhas `YUNO_PROMOTION` de
                          `additional_data.order.discounts`. Ausente quando
                          nenhuma promoção foi aplicada. O valor cobrado é
                          `amount.value` menos este valor, e ele está em
                          `transactions.amount`. Veja
                          [Promoções](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: A moeda do desconto, a mesma de `amount.currency`.
                          value:
                            type: number
                            description: O desconto.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          parent_payment_method_type: {}
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '216303'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  par:
                                    type: string
                                    description: >-
                                      O Payment Account Reference (PAR) do
                                      cartão, conforme retornado pelo provedor.
                                      Um PAR identifica a conta do titular do
                                      cartão entre o número do cartão e seus
                                      network tokens. Retornado para pagamentos
                                      com cartão com ou sem network token, e
                                      omitido quando o provedor não o envia.
                                    example: V0010013019000000000000000001
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41111111'
                                      lfd:
                                        type: string
                                        example: '1111'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: CHASE BANK USA
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: US
                                      category:
                                        type: string
                                        example: CLASSIC
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                      fingerprint:
                                        type: string
                                        example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                      expiration_month:
                                        type: integer
                                        example: 3
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 26
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                                      transaction_link_id:
                                        type: string
                                        example: MCC1234567890123456789
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1744653105'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          device_fingerprints:
                            type: array
                          browser_info: {}
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1234 Elm Street
                              address_line_2:
                                type: string
                                example: Apt 5B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1234 Elm Street
                              address_line_2:
                                type: string
                                example: Apt 5B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 5414f862-51e6-433f-a54c-b46b176e87a0
                          type:
                            type: string
                            example: REFUND
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: integer
                            example: 30000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              parent_payment_method_type: {}
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '216303'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      par:
                                        type: string
                                        description: >-
                                          O Payment Account Reference (PAR) do
                                          cartão, conforme retornado pelo
                                          provedor. Um PAR identifica a conta do
                                          titular do cartão entre o número do
                                          cartão e seus network tokens. Retornado
                                          para pagamentos com cartão com ou sem
                                          network token, e omitido quando o
                                          provedor não o envia.
                                        example: V0010013019000000000000000001
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: CHASE BANK USA
                                          issuer_code: {}
                                          country_code:
                                            type: string
                                            example: US
                                          category:
                                            type: string
                                            example: CLASSIC
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                          fingerprint:
                                            type: string
                                            example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                          expiration_month:
                                            type: integer
                                            example: 3
                                            default: 0
                                          expiration_year:
                                            type: integer
                                            example: 26
                                            default: 0
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason: {}
                                          usage: {}
                                          subscription_agreement_id: {}
                                          network_transaction_id: {}
                                          transaction_link_id:
                                            type: string
                                            example: MCC1234567890123456789
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason:
                            type: string
                            example: REQUESTED_BY_CUSTOMER
                          description:
                            type: string
                            example: Test refund
                          merchant_reference:
                            type: string
                            example: REFUND_001
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 2e5c04d5-4cf7-4d2a-b57a-dd5eb9a687bc
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: ''
                              sub_status:
                                type: string
                                example: ''
                              status_detail:
                                type: string
                                example: ''
                              response_message: {}
                              response_code:
                                type: string
                                example: SUCCEEDED
                              raw_request:
                                type: object
                                description: >-
                                  Cópia ofuscada da requisição que a Yuno enviou
                                  ao provedor. Retornada apenas para
                                  organizações em uma lista de permissões.
                              raw_response:
                                type: object
                                properties:
                                  message:
                                    type: string
                                    example: provider response
                              third_party_transaction_id: {}
                              third_party_account_id: {}
                              iso8583_response_code: {}
                              iso8583_response_message: {}
                          connection_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 58cc35f4-faef-4107-8e09-d18d60121d38
                              name:
                                type: string
                                example: Connection name
                          created_at:
                            type: string
                            example: '2025-04-14T17:52:07.768528Z'
                          updated_at:
                            type: string
                            example: '2025-04-14T17:52:07.862912Z'
                      transactions_history: {}
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code: {}
                      routing_rules: {}
                      simplified_mode:
                        type: boolean
                        example: false
                        default: true
                  - title: Reembolso parcial
                    type: object
                    properties:
                      id:
                        type: string
                        example: b908fd70-9af7-41a6-8e1c-3a5ec78ea88b
                      account_id:
                        type: string
                        example: ''
                      description:
                        type: string
                        example: Duplicate transaction
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: PARTIALLY_REFUNDED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2025-04-14T17:50:55.936358Z'
                      updated_at:
                        type: string
                        example: '2025-04-14T17:51:23.347308Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion: {}
                          refunded:
                            type: integer
                            example: 30
                            default: 0
                          value:
                            type: integer
                            example: 300
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          O desconto total da promoção da Yuno aplicada ao
                          pagamento: a soma das linhas `YUNO_PROMOTION` de
                          `additional_data.order.discounts`. Ausente quando
                          nenhuma promoção foi aplicada. O valor cobrado é
                          `amount.value` menos este valor, e ele está em
                          `transactions.amount`. Veja
                          [Promoções](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: A moeda do desconto, a mesma de `amount.currency`.
                          value:
                            type: number
                            description: O desconto.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          parent_payment_method_type: {}
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '344836'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  par:
                                    type: string
                                    description: >-
                                      O Payment Account Reference (PAR) do
                                      cartão, conforme retornado pelo provedor.
                                      Um PAR identifica a conta do titular do
                                      cartão entre o número do cartão e seus
                                      network tokens. Retornado para pagamentos
                                      com cartão com ou sem network token, e
                                      omitido quando o provedor não o envia.
                                    example: V0010013019000000000000000001
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41111111'
                                      lfd:
                                        type: string
                                        example: '1111'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: CHASE BANK USA
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: US
                                      category:
                                        type: string
                                        example: CLASSIC
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                      fingerprint:
                                        type: string
                                        example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                      expiration_month:
                                        type: integer
                                        example: 3
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 26
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                                      transaction_link_id:
                                        type: string
                                        example: MCC1234567890123456789
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1744653056'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.0.2.1
                          device_fingerprint: {}
                          device_fingerprints:
                            type: array
                          browser_info: {}
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 456 Maple Ave
                              address_line_2:
                                type: string
                                example: Apt 12C
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: New York
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 456 Maple Ave
                              address_line_2:
                                type: string
                                example: Apt 12C
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: New York
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 3f47548e-a1c9-418e-b899-40d30da9c699
                          type:
                            type: string
                            example: REFUND
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: integer
                            example: 30
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              parent_payment_method_type: {}
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '344836'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      par:
                                        type: string
                                        description: >-
                                          O Payment Account Reference (PAR) do
                                          cartão, conforme retornado pelo
                                          provedor. Um PAR identifica a conta do
                                          titular do cartão entre o número do
                                          cartão e seus network tokens. Retornado
                                          para pagamentos com cartão com ou sem
                                          network token, e omitido quando o
                                          provedor não o envia.
                                        example: V0010013019000000000000000001
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: CHASE BANK USA
                                          issuer_code: {}
                                          country_code:
                                            type: string
                                            example: US
                                          category:
                                            type: string
                                            example: CLASSIC
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                          fingerprint:
                                            type: string
                                            example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                          expiration_month:
                                            type: integer
                                            example: 3
                                            default: 0
                                          expiration_year:
                                            type: integer
                                            example: 26
                                            default: 0
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason: {}
                                          usage: {}
                                          subscription_agreement_id: {}
                                          network_transaction_id: {}
                                          transaction_link_id:
                                            type: string
                                            example: MCC1234567890123456789
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason:
                            type: string
                            example: REQUESTED_BY_CUSTOMER
                          description:
                            type: string
                            example: Test refund
                          merchant_reference:
                            type: string
                            example: US-INV-432245
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 831017b2-928f-4f19-8f0b-0e0ae14013bd
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: ''
                              sub_status:
                                type: string
                                example: ''
                              status_detail:
                                type: string
                                example: ''
                              response_message: {}
                              response_code:
                                type: string
                                example: SUCCEEDED
                              raw_request:
                                type: object
                                description: >-
                                  Cópia ofuscada da requisição que a Yuno enviou
                                  ao provedor. Retornada apenas para
                                  organizações em uma lista de permissões.
                              raw_response:
                                type: object
                                properties:
                                  message:
                                    type: string
                                    example: provider response
                              third_party_transaction_id: {}
                              third_party_account_id: {}
                              iso8583_response_code: {}
                              iso8583_response_message: {}
                          connection_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 58cc35f4-faef-4107-8e09-d18d60121d38
                              name:
                                type: string
                                example: Connection name
                          created_at:
                            type: string
                            example: '2025-04-14T17:51:23.232152Z'
                          updated_at:
                            type: string
                            example: '2025-04-14T17:51:23.322335Z'
                      transactions_history: {}
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code: {}
                      routing_rules: {}
                      simplified_mode:
                        type: boolean
                        example: false
                        default: true
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      x-default: <Your public-api-key>
      name: public-api-key
    sec1:
      type: apiKey
      in: header
      x-default: <Your private-secret-key>
      name: private-secret-key
    sec2:
      type: apiKey
      in: header
      x-default: <Your X-Idempotency-Key>
      name: X-Idempotency-Key

````

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