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

# Definir Pagamento como Pendente

> Use este endpoint para definir um pagamento que foi marcado como pago como pendente novamente, permitindo que ele seja processado.



## OpenAPI

````yaml api-reference/openapi.json post /split/payments/{payment_id}/pending
openapi: 3.1.0
info:
  title: Noodle API
  contact:
    name: Time de Engenharia da Noodle
    url: https://www.noodle.cx/contato
    email: dev@noodle.cx
  version: 1.0.0
servers:
  - url: https://production.api.noodle.cx/external
    description: Servidor de Produção
  - url: https://homolog.api.noodle.cx/external
    description: Servidor de Homologação (Staging)
security: []
paths:
  /split/payments/{payment_id}/pending:
    post:
      tags:
        - Lotes
      summary: Definir Pagamento como Pendente
      description: >-
        Use este endpoint para definir um pagamento que foi marcado como pago
        como pendente novamente, permitindo que ele seja processado.
      operationId: set_payment_as_pending_split_payments__payment_id__pending_post
      parameters:
        - name: payment_id
          in: path
          required: true
          schema:
            type: string
            title: Payment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SplitPayment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SplitPayment:
      properties:
        _id:
          anyOf:
            - type: string
            - type: 'null'
          title: ' Id'
        splitId:
          anyOf:
            - type: string
            - type: 'null'
          title: Splitid
        splitBatch:
          anyOf:
            - type: string
            - type: 'null'
          title: Splitbatch
        splitDate:
          anyOf:
            - type: string
            - type: 'null'
          title: Splitdate
        reportId:
          anyOf:
            - type: string
            - type: 'null'
          title: Reportid
        anticipationId:
          anyOf:
            - type: string
            - type: 'null'
          title: Anticipationid
        ownerTaxId:
          anyOf:
            - type: string
            - type: 'null'
          title: Ownertaxid
        origin:
          anyOf:
            - type: string
            - type: 'null'
          title: Origin
        taxId:
          anyOf:
            - type: string
            - type: 'null'
          title: Taxid
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        artistName:
          anyOf:
            - type: string
            - type: 'null'
          title: Artistname
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount
        originalAmount:
          anyOf:
            - type: number
            - type: 'null'
          title: Originalamount
        finalAmount:
          anyOf:
            - type: number
            - type: 'null'
          title: Finalamount
        originalFinalAmount:
          anyOf:
            - type: number
            - type: 'null'
          title: Originalfinalamount
        irPercent:
          anyOf:
            - type: number
            - type: 'null'
          title: Irpercent
        irAmount:
          anyOf:
            - type: number
            - type: 'null'
          title: Iramount
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        originalCurrency:
          anyOf:
            - type: string
            - type: 'null'
          title: Originalcurrency
        exchangeRate:
          anyOf:
            - type: number
            - type: 'null'
          title: Exchangerate
        finalExchangeRate:
          anyOf:
            - type: number
            - type: 'null'
          title: Finalexchangerate
        showExchangeData:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Showexchangedata
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        paidManually:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Paidmanually
        paymentDate:
          anyOf:
            - type: string
            - type: 'null'
          title: Paymentdate
        attemptDate:
          anyOf:
            - type: string
            - type: 'null'
          title: Attemptdate
        transactionId:
          anyOf:
            - type: string
            - type: 'null'
          title: Transactionid
        errorReason:
          anyOf:
            - type: string
            - type: 'null'
          title: Errorreason
        bubblePaymentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Bubblepaymentid
        advance:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Advance
          default: false
        parentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Parentid
        parentName:
          anyOf:
            - type: string
            - type: 'null'
          title: Parentname
        originalTaxId:
          anyOf:
            - type: string
            - type: 'null'
          title: Originaltaxid
        originalName:
          anyOf:
            - type: string
            - type: 'null'
          title: Originalname
        bankAccount:
          anyOf:
            - $ref: '#/components/schemas/SplitBankAccount'
            - type: 'null'
        products:
          anyOf:
            - items:
                $ref: '#/components/schemas/SplitReportProduct'
              type: array
            - type: 'null'
          title: Products
        platforms:
          anyOf:
            - items:
                $ref: '#/components/schemas/SplitReportPlatform'
              type: array
            - type: 'null'
          title: Platforms
        details:
          anyOf:
            - items:
                $ref: '#/components/schemas/SplitReportPaymentDetails'
              type: array
            - type: 'null'
          title: Details
      type: object
      title: SplitPayment
      description: >-
        Representa os dados de um pagamento em um relatório de divisão.


        **Atributos**:

        - **id** (*str, opcional*): ID do pagamento.

        - **split_id** (*str, opcional*): ID do relatório de divisão associado
        ao pagamento.

        - **split_batch** (*str, opcional*): Nome do lote de divisão associado
        ao pagamento.

        - **split_date** (*str, opcional*): Data do relatório de divisão
        (formato ISO 8601).

        - **report_id** (*str, opcional*): ID do relatório associado ao
        pagamento.

        - **anticipation_id** (*str, opcional*): ID da antecipação, se
        aplicável.

        - **owner_tax_id** (*str, opcional*): CPF ou CNPJ do proprietário do
        pagamento.

        - **origin** (*str, opcional*): Origem do pagamento.

        - **tax_id** (*str, opcional*): CPF ou CNPJ do beneficiário do
        pagamento.

        - **name** (*str, opcional*): Nome do beneficiário do pagamento.

        - **artist_name** (*str, opcional*): Nome do artista associado ao
        pagamento.

        - **email** (*str, opcional*): E-mail do beneficiário do pagamento.

        - **amount** (*float, opcional*): Valor bruto do pagamento.

        - **original_amount** (*float, opcional*): Valor bruto original do
        pagamento.

        - **final_amount** (*float, opcional*): Valor líquido do pagamento.

        - **original_final_amount** (*float, opcional*): Valor líquido original
        do pagamento.

        - **ir_percent** (*float, opcional*): Percentual de imposto retido.

        - **ir_amount** (*float, opcional*): Valor do imposto retido.

        - **currency** (*str, opcional*): Moeda utilizada no pagamento (ex.:
        BRL, USD, EUR).

        - **original_currency** (*str, opcional*): Moeda original do pagamento.

        - **exchange_rate** (*float, opcional*): Taxa de câmbio aplicada.

        - **final_exchange_rate** (*float, opcional*): Taxa de câmbio final
        aplicada.

        - **show_exchange_data** (*bool, opcional*): Indica se os dados de
        câmbio devem ser exibidos.

        - **status** (*str, opcional*): Status atual do pagamento.

        - **paid_manually** (*bool, opcional*): Indica se o pagamento foi
        realizado manualmente.

        - **payment_date** (*str, opcional*): Data de pagamento (formato ISO
        8601).

        - **attempt_date** (*str, opcional*): Data da tentativa de pagamento
        (formato ISO 8601).

        - **transaction_id** (*str, opcional*): ID da transação associada ao
        pagamento.

        - **error_reason** (*str, opcional*): Motivo do erro, se aplicável.

        - **bubble_payment_id** (*str, opcional*): ID do pagamento no sistema
        Bubble.

        - **advance** (*bool, opcional*): Indica se o pagamento é um
        adiantamento.

        - **parent_id** (*str, opcional*): ID do pagamento pai, se aplicável.

        - **parent_name** (*str, opcional*): Nome do pagamento pai, se
        aplicável.

        - **original_tax_id** (*str, opcional*): CPF ou CNPJ original do
        beneficiário, se aplicável.

        - **original_name** (*str, opcional*): Nome original do beneficiário, se
        aplicável.

        - **bank_account** (*SplitBankAccount, opcional*): Dados da conta
        bancária ou chave Pix do beneficiário.

        - **products** (*list[SplitReportProduct], opcional*): Lista de produtos
        associados ao pagamento.

        - **platforms** (*list[SplitReportPlatform], opcional*): Lista de
        plataformas associadas ao pagamento.

        - **details** (*list[SplitReportPaymentDetails], opcional*): Detalhes
        adicionais do pagamento.


        **Propriedades**:

        - **safe_ir_amount**: Retorna o valor do imposto retido ou 0.0 se não
        estiver definido.

        - **safe_ir_percent**: Retorna o percentual de imposto retido ou 0.0 se
        não estiver definido.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SplitBankAccount:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        bankCode:
          anyOf:
            - type: string
            - type: 'null'
          title: Bankcode
        pspId:
          anyOf:
            - type: string
            - type: 'null'
          title: Pspid
        agency:
          anyOf:
            - type: string
            - type: 'null'
          title: Agency
        account:
          anyOf:
            - type: string
            - type: 'null'
          title: Account
        accountType:
          anyOf:
            - type: string
            - type: 'null'
          title: Accounttype
        pixKeyType:
          anyOf:
            - type: string
            - type: 'null'
          title: Pixkeytype
        pixDescription:
          anyOf:
            - type: string
            - type: 'null'
          title: Pixdescription
        pixKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Pixkey
        transferType:
          anyOf:
            - $ref: '#/components/schemas/TransferTypeEnum'
            - type: 'null'
          default: pix
      type: object
      title: SplitBankAccount
    SplitReportProduct:
      properties:
        _id:
          anyOf:
            - type: string
            - type: 'null'
          title: ' Id'
        ownerTaxId:
          anyOf:
            - type: string
            - type: 'null'
          title: Ownertaxid
        reportId:
          anyOf:
            - type: string
            - type: 'null'
          title: Reportid
        paymentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Paymentid
        upc:
          anyOf:
            - type: string
            - type: 'null'
          title: Upc
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        tracks:
          anyOf:
            - items:
                $ref: '#/components/schemas/SplitReportProductTrack'
              type: array
            - type: 'null'
          title: Tracks
      type: object
      title: SplitReportProduct
    SplitReportPlatform:
      properties:
        _id:
          anyOf:
            - type: string
            - type: 'null'
          title: ' Id'
        ownerTaxId:
          anyOf:
            - type: string
            - type: 'null'
          title: Ownertaxid
        reportId:
          anyOf:
            - type: string
            - type: 'null'
          title: Reportid
        paymentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Paymentid
        period:
          anyOf:
            - type: string
            - type: 'null'
          title: Period
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        plays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Plays
        revenue:
          anyOf:
            - type: number
            - type: 'null'
          title: Revenue
        finalAmount:
          anyOf:
            - type: number
            - type: 'null'
          title: Finalamount
      type: object
      title: SplitReportPlatform
    SplitReportPaymentDetails:
      properties:
        _id:
          anyOf:
            - type: string
            - type: 'null'
          title: ' Id'
        paymentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Paymentid
        upc:
          anyOf:
            - type: string
            - type: 'null'
          title: Upc
        productName:
          anyOf:
            - type: string
            - type: 'null'
          title: Productname
        isrc:
          anyOf:
            - type: string
            - type: 'null'
          title: Isrc
        trackName:
          anyOf:
            - type: string
            - type: 'null'
          title: Trackname
        royalty:
          anyOf:
            - type: number
            - type: 'null'
          title: Royalty
        period:
          anyOf:
            - type: string
            - type: 'null'
          title: Period
        data:
          anyOf:
            - items:
                $ref: '#/components/schemas/SplitReportPaymentDetailsData'
              type: array
            - type: 'null'
          title: Data
      type: object
      title: SplitReportPaymentDetails
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    TransferTypeEnum:
      type: string
      enum:
        - pix
        - ted
        - internal
      title: TransferTypeEnum
    SplitReportProductTrack:
      properties:
        isrc:
          anyOf:
            - type: string
            - type: 'null'
          title: Isrc
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        plays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Plays
        period:
          anyOf:
            - type: string
            - type: 'null'
          title: Period
        revenue:
          anyOf:
            - type: number
            - type: 'null'
          title: Revenue
        percentage:
          anyOf:
            - type: number
            - type: 'null'
          title: Percentage
        finalAmount:
          anyOf:
            - type: number
            - type: 'null'
          title: Finalamount
      type: object
      title: SplitReportProductTrack
    SplitReportPaymentDetailsData:
      properties:
        period:
          anyOf:
            - type: string
            - type: 'null'
          title: Period
        platform:
          anyOf:
            - type: string
            - type: 'null'
          title: Platform
        plays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Plays
        revenue:
          anyOf:
            - type: number
            - type: 'null'
          title: Revenue
      type: object
      title: SplitReportPaymentDetailsData
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization

````

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