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

# Obter PIX e boleto de uma recarga Kong



## OpenAPI

````yaml /api-reference/openapi.json get /v2/billing/topups/{paymentId}/payment-methods
openapi: 3.1.0
info:
  title: Base39 API
  description: Base39 API
  version: 1.0.0
  contact:
    name: Base39 Team
    url: https://base39.com.br
    email: suporte@base39.com.br
  termsOfService: https://base39.com.br/termos
  license:
    name: Proprietary
    url: https://base39.com.br/termos
servers:
  - url: http://localhost:3000
    description: Local
  - url: https://api.dev.base39.cloud
    description: Development
  - url: https://api.base39.com.br
    description: Production
security:
  - OAuth2: []
tags:
  - name: pages
    description: Profiles and reports pages
  - name: pipelines
    description: Pipeline boards (kanban) of pages
  - name: blocks
    description: Blocks operations
  - name: search
    description: Search across content
  - name: targets
    description: Lookup targets via datasets
  - name: CognitoTriggers
    description: Cognito triggers
paths:
  /v2/billing/topups/{paymentId}/payment-methods:
    get:
      tags:
        - billing
      summary: Obter PIX e boleto de uma recarga Kong
      operationId: billing_get_topup_payment_methods
      parameters:
        - name: paymentId
          required: true
          in: path
          description: ID da cobrança de recarga no conector efetivo
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingInvoiceOutput'
components:
  schemas:
    BillingInvoiceOutput:
      type: object
      properties:
        invoiceId:
          type: string
          description: ID da invoice Stripe
          example: in_xxx
        paymentMethods:
          description: Meios de pagamento gerados com sucesso
          type: array
          items:
            $ref: '#/components/schemas/BillingPaymentMethodOutput'
        paymentAction:
          description: Ação hospedada para concluir o pagamento
          allOf:
            - $ref: '#/components/schemas/BillingInvoicePaymentActionOutput'
        checkout:
          description: Checkout Stripe Elements para pagamento no frontend
          allOf:
            - $ref: '#/components/schemas/BillingInvoiceCheckoutOutput'
      required:
        - invoiceId
        - paymentMethods
    BillingPaymentMethodOutput:
      type: object
      properties:
        type:
          type: string
          enum:
            - pix
            - boleto
        status:
          type: string
          enum:
            - ready
            - requires_action
            - unavailable
        value:
          type: string
          description: Pix copia e cola ou linha digitável do boleto
        pdfUrl:
          type: string
          description: URL do PDF do boleto
        unavailableReason:
          type: string
          description: Motivo pelo qual o método não está disponível
      required:
        - type
        - status
    BillingInvoicePaymentActionOutput:
      type: object
      properties:
        type:
          type: string
          enum:
            - hosted_page
        url:
          type: string
          description: URL hospedada para concluir o pagamento
      required:
        - type
        - url
    BillingInvoiceCheckoutOutput:
      type: object
      properties:
        sessionId:
          type: string
          description: ID da PaymentIntent Stripe
          example: pi_xxx
        clientSecret:
          type: string
          description: Client secret da Checkout Session para Payment Element
        publishableKey:
          type: string
          description: Publishable key Stripe para inicializar Stripe.js
        customPaymentMethodTypeId:
          type: string
          description: ID do custom payment method Pix criado no Stripe Dashboard
          example: cpmt_xxx
      required:
        - sessionId
        - clientSecret
        - publishableKey
        - customPaymentMethodTypeId
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://id.local.base39.cloud/oauth2/authorize
          tokenUrl: https://id.local.base39.cloud/oauth2/token
          scopes:
            profile: Read user profile
            email: Read user email
            openid: OpenID authentication
      description: OAuth2 Authorization Code flow

````