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

# Ottenere la riconciliazione del conto

Genera report dettagliati di tutte le transazioni completate in un periodo specifico. Questo endpoint è pensato per la contabilità, l'audit e la riconciliazione finanziaria.


## OpenAPI

````yaml openapi/it/localpayment.json GET /api/accounts/{accountNumber}/balance-reconciliation
openapi: 3.1.0
info:
  version: '1.0'
  title: Localpayment
  contact:
    name: Support
    url: mailto:support@localpayment.com
servers:
  - url: https://api.stage.localpayment.com
    description: Stage
security:
  - token: []
paths:
  /api/accounts/{accountNumber}/balance-reconciliation:
    get:
      summary: Ottenere la riconciliazione del conto
      operationId: get-account-reconciliation-details
      parameters:
        - name: since
          in: query
          description: ' Data di inizio nel formato `yyyy-mm-dd`.'
          required: true
          schema:
            type: string
        - name: until
          in: query
          description: Data di fine nel formato `yyyy-mm-dd`.
          required: true
          schema:
            type: string
        - name: accountNumber
          in: path
          description: Numero di conto Localpayment.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        createdAt:
                          type: string
                          description: Data di creazione della transazione.
                        processedAt:
                          type: string
                          description: Data di elaborazione della transazione.
                        settlementDate:
                          type: string
                          description: Data di regolamento.
                        settlementDays:
                          type: integer
                          description: Numero di giorni di regolamento.
                        internalId:
                          type: string
                          description: Identificatore della transazione Localpayment.
                        externalId:
                          type: string
                          description: >-
                            Identificatore univoco generato dal tuo sistema per
                            tracciare la transazione (caratteri alfanumerici e
                            trattini). Consigliamo di usare UUID4 per garantirne
                            l'univocità.
                        providerId:
                          type: string
                          description: Identificatore del fornitore.
                        clientCode:
                          type: string
                          description: Codice cliente.
                        providerCode:
                          type:
                            - string
                            - 'null'
                          description: Codice del fornitore
                        accountCountry:
                          type: string
                          description: '[Paese](/it/reference/country-codes) del conto.'
                        country:
                          type: string
                          description: '[Paese](/it/reference/country-codes) del conto.'
                        accountNumber:
                          type: string
                          description: Numero di conto Localpayment.
                        clientName:
                          type: string
                          description: Nome del cliente
                        providerName:
                          type: 'null'
                          description: Nome del fornitore.
                        merchant:
                          type: string
                          description: Nome dell'esercente.
                        clientAccountNumber:
                          type: string
                          description: Numero di conto del cliente.
                        providerAccountNumber:
                          type: string
                          description: Numero di conto del fornitore.
                        transactionType:
                          type: string
                          enum:
                            - PayIn
                            - PayOut
                            - CurrencyExchange
                            - Credit
                            - Debit
                            - Internal Transfer
                            - Refund
                            - Recurring Fee
                            - Wire out
                            - Subscriptions
                            - Chargeback
                            - Expenses
                            - Recall
                            - Return
                            - WireIn
                          description: >-
                            [Tipo di
                            transazione.](/it/reference/get-available-payment-methods)
                        paymentMethodType:
                          type: string
                          description: >-
                            Metodo di pagamento disponibile nella
                            [proprietà](/it/reference/get-available-payment-methods)
                            `payinPaymentMethods.paymentMethodType`.
                        paymentMethodCode:
                          type: string
                          description: Codice del metodo di pagamento.
                        installments:
                          type: integer
                          description: Rate.
                        status:
                          type: string
                          description: >-
                            [Stato](/it/reference/transaction-status-error-codes).
                        statusCode:
                          type: string
                          description: >-
                            [Codice di
                            stato](/it/reference/transaction-status-error-codes).
                        statusDescription:
                          type: string
                          description: Ulteriori informazioni sullo stato.
                        paymentCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: >-
                            [Valuta](/it/reference/currency-codes) del
                            pagamento.
                        paymentAmount:
                          type: integer
                          description: Importo del pagamento.
                        fxQuote:
                          type: number
                          description: Quotazione del cambio valuta.
                        confirmedCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: '[Valuta](/it/reference/currency-codes) confermata.'
                        confirmedAmount:
                          type: integer
                          description: Importo confermato.
                        financialFeesCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: >-
                            [Valuta](/it/reference/currency-codes) delle
                            commissioni finanziarie.
                        financialFeesAmount:
                          type: 'null'
                          description: Importo delle commissioni finanziarie.
                        feesCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: >-
                            [Valuta](/it/reference/currency-codes) delle
                            commissioni.
                        feesAmount:
                          type: integer
                          description: Importo delle commissioni.
                        localTaxesCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: >-
                            [Valuta](/it/reference/currency-codes) delle imposte
                            locali.
                        localTaxesAmount:
                          type: integer
                          description: Importo delle imposte locali.
                        withholdingsCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: >-
                            [Valuta](/it/reference/currency-codes) delle
                            ritenute.
                        withholdingsAmount:
                          type: 'null'
                          description: Importo delle ritenute.
                        accountCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: '[Valuta](/it/reference/currency-codes) del conto.'
                        accountAmount:
                          type: integer
                          description: Importo del conto.
                        createdBy:
                          type: string
                          description: Creato da.
                        newStatusChangeRequest:
                          type: 'null'
                          description: Nuova richiesta di cambio di stato.
                        request:
                          type: object
                          description: Informazioni sulla richiesta.
                          properties:
                            payer:
                              type: object
                              description: Informazioni sul pagatore.
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - COMPANY
                                    - INDIVIDUAL
                                  description: Tipo di pagatore.
                                name:
                                  type: string
                                  description: Nome del pagatore.
                                lastName:
                                  type: string
                                  description: Cognome del pagatore.
                                document:
                                  type: object
                                  description: >-
                                    Informazioni sul documento d'identità del
                                    pagatore.
                                  properties:
                                    type:
                                      type: string
                                      description: >-
                                        Il [tipo di documento
                                        d'identità](/it/reference/identity-document-types),
                                        ad esempio un numero di identità
                                        nazionale, un numero di previdenza
                                        sociale o una patente di guida, a
                                        seconda del paese di emissione.
                                      examples:
                                        - RUC
                                    id:
                                      type: string
                                      description: >-
                                        Numero del documento d'identità (di
                                        solito un numero). Deve essere un numero
                                        valido secondo le regole del tipo di
                                        documento specifico.
                                      examples:
                                        - '1791234561009'
                                  examples:
                                    - type: RUC
                                      id: '1791234561009'
                                userReference:
                                  type: string
                                  description: >-
                                    Nome utente o ID del pagatore nella tua
                                    piattaforma.
                                phone:
                                  type: object
                                  description: Numero di telefono del pagatore.
                                  properties:
                                    countryCode:
                                      type: string
                                      description: Codice paese del telefono.
                                    areaCode:
                                      type: string
                                      description: Prefisso telefonico del paese.
                                    number:
                                      type: string
                                      description: Numero di telefono.
                                birthDate:
                                  type: string
                                  description: >-
                                    Data di nascita del pagatore nel formato
                                    yyyy-mm-dd.
                                nationality:
                                  type: string
                                  description: Nazionalità del pagatore.
                                address:
                                  type: object
                                  description: Indirizzo del pagatore.
                                  properties:
                                    street:
                                      type: string
                                      description: Nome della via.
                                      examples:
                                        - Independencia
                                    number:
                                      type: string
                                      description: Numero civico.
                                      examples:
                                        - '123'
                                    city:
                                      type: string
                                      description: Città.
                                      examples:
                                        - Cordoba
                                    state:
                                      type: string
                                      description: Stato.
                                      examples:
                                        - Cordoba
                                    country:
                                      type: string
                                      description: Paese dell'indirizzo.
                                      examples:
                                        - Argentina
                                    zipCode:
                                      type: string
                                      description: Codice postale.
                                      examples:
                                        - X5000IUO
                                    comment:
                                      type: string
                                      description: Informazioni aggiuntive sull'indirizzo.
                                      examples:
                                        - Sucursal 123
                                  examples:
                                    - street: Independencia
                                      number: '123'
                                      city: Cordoba
                                      state: Cordoba
                                      country: ARG
                                      zipCode: X5000IUO
                                      comment: Sucursal 123
                              x-examples:
                                Example 1:
                                  beneficiary:
                                    type: COMPANY
                                    name: ITAU ARG
                                    document:
                                      type: CUIT
                                      id: '20907920276'
                                    userReference: Lorem
                                    email: aldana@mail.com
                                    phone:
                                      countryCode: countryCode
                                      areaCode: areaCode
                                      number: phoneNumber
                                    birthDate: '2021-11-08'
                                    nationality: beneficiary nationality
                                    address:
                                      street: Beneficiary adress
                                      number: '234'
                                      city: City
                                      state: Villa Rosa
                                      country: Country
                                      zipCode: '1411'
                                      comment: TEST
                                    bank:
                                      name: ARG TEST
                                      code: '007'
                                      account:
                                        type: C
                                        number: '1234567891234567891234'
                            merchant:
                              type: object
                              description: Informazioni sull'esercente.
                              properties:
                                name:
                                  type: string
                                  description: Nome dell'esercente.
                                lastname:
                                  type: 'null'
                                  description: Cognome dell'esercente.
                                type:
                                  type: string
                                  description: Tipo di esercente.
                            paymentMethod:
                              type: object
                              description: Informazioni sul metodo di pagamento.
                              properties:
                                code:
                                  type: string
                                  description: >-
                                    Codice del metodo di pagamento disponibile
                                    nella
                                    [proprietà](/it/reference/get-available-payment-methods)
                                    `payinPaymentMethods.code`.
                                name:
                                  type: 'null'
                                  description: >-
                                    Nome del metodo di pagamento disponibile
                                    nella
                                    [proprietà](/it/reference/get-available-payment-methods)
                                    `payinPaymentMethods.code`.
                                type:
                                  type: string
                                  description: >-
                                    Tipo di metodo di pagamento disponibile
                                    nella
                                    [proprietà](/it/reference/get-available-payment-methods)
                                    `payinPaymentMethods.code`.
                                flow:
                                  type: string
                                  description: >-
                                    Definisce come vengono raccolti i dati di
                                    pagamento: `DIRECT` (all'interno della
                                    richiesta API) o `REDIRECT` (modulo
                                    esterno). Attualmente è supportato solo
                                    `DIRECT`.
                                brand:
                                  type: 'null'
                                  description: Marchio del metodo di pagamento.
                            comment:
                              type: string
                              description: Commento.
                            country:
                              type: string
                              description: '[Paese](/it/reference/country-codes).'
                            currency:
                              type: string
                              enum:
                                - ARS
                                - BOB
                                - BRL
                                - CLP
                                - COP
                                - CRC
                                - DOP
                                - USD
                                - GTQ
                                - MXN
                                - PYG
                                - PEN
                                - UYU
                              description: '[Valuta](/it/reference/currency-codes).'
                            amount:
                              type: integer
                              description: Importo.
                            externalId:
                              type: string
                              description: >-
                                Identificatore univoco generato dal tuo sistema
                                per tracciare la transazione (caratteri
                                alfanumerici e trattini). Consigliamo di usare
                                UUID4 per garantirne l'univocità.
                            conceptCode:
                              type: string
                              description: Codice causale.
                            accountNumber:
                              type: string
                              description: Numero di conto Localpayment.
                            transactionType:
                              type: string
                              enum:
                                - PayIn
                                - PayOut
                                - CurrencyExchange
                                - Credit
                                - Debit
                                - Internal Transfer
                                - Refund
                                - Recurring Fee
                                - Wire out
                                - Subscriptions
                                - Chargeback
                                - Expenses
                                - Recall
                                - Return
                                - WireIn
                              description: Tipo di transazione.
                            clientCode:
                              type: string
                              description: Codice cliente.
                            file:
                              type: boolean
                              description: File.
                        clientAccountCode:
                          type: string
                          description: Codice del conto del cliente.
                        clientAccountDescription:
                          type: string
                          description: Descrizione del conto del cliente.
                        closingBalance:
                          type: integer
                          description: Importo del saldo finale dopo la transazione.
                        expirationAt:
                          type: string
                          description: Data di scadenza.
                        loteout:
                          type: 'null'
                        comment:
                          type: string
                          description: Commento.
                        metaData:
                          type: 'null'
                          description: Metadati.
                        internalLoteID:
                          type: 'null'
                          description: Identificatore interno del lotto.
                        pendingStatusChangeRequest:
                          type: boolean
                          description: >-
                            Indica se la transazione ha una richiesta di cambio
                            di stato in sospeso.
                  total:
                    type: integer
                    description: Numero di transazioni nella risposta.
                  offset:
                    type: integer
                    description: Numero di pagine nella risposta.
                  openingBalance:
                    type: integer
                    description: "Importo iniziale del saldo.\r\n\r\n"
                  closingBalance:
                    type: integer
                    description: "Importo del saldo finale.\r\n\r\n"
                required:
                  - data
                  - total
                  - offset
                  - openingBalance
                  - closingBalance
                x-examples:
                  Example 1:
                    data:
                      - createdAt: '2024-12-05T15:34:56.259'
                        processedAt: '2024-12-05T15:38:00.20701'
                        settlementDate: '2024-12-05T15:38:00.20701'
                        settlementDays: 0
                        internalId: 0a78683f-1e3d-4fe0-ae1e-83dcdfd161cd
                        externalId: Autogenerated-ID-1733412895187
                        providerId: >-
                          qOoEqSADjhX0vhvVhuPVEO9FNtYrDTu3f9w7X5qAHkGyuXl5Vbw7mnRLEK6e6wgR
                        clientCode: '0001'
                        providerCode: null
                        accountCountry: CHL
                        country: CHL
                        accountNumber: '{{accountNumber}}'
                        clientName: Acme Inc.
                        providerName: null
                        merchant: LocalPayment
                        clientAccountNumber: '{{accountNumber}}'
                        providerAccountNumber: '{{providerAccountNumber}}'
                        transactionType: PayIn
                        paymentMethodType: BankTransfer
                        paymentMethodCode: '2528'
                        installments: 1
                        status: COMPLETED
                        statusCode: '200'
                        statusDescription: The payin was credited
                        paymentCurrency: CLP
                        paymentAmount: 3000
                        fxQuote: 1
                        confirmedCurrency: CLP
                        confirmedAmount: 3000
                        financialFeesCurrency: null
                        financialFeesAmount: null
                        feesCurrency: CLP
                        feesAmount: 0
                        localTaxesCurrency: CLP
                        localTaxesAmount: 0
                        withholdingsCurrency: null
                        withholdingsAmount: null
                        accountCurrency: CLP
                        accountAmount: 3000
                        createdBy: email@example.com
                        newStatusChangeRequest: null
                        request:
                          payer:
                            name: Prueba
                            type: INDIVIDUAL
                            payerLastName: null
                            lastname: null
                            email: jane.doe@example.com
                            document:
                              id: 8420157K
                              type: RUT
                            bank: null
                            userReference: null
                          merchant:
                            name: LocalPayment
                            lastname: null
                            type: COMPANY
                          paymentMethod:
                            code: '2528'
                            name: null
                            type: BankTransfer
                            flow: REDIRECT
                            brand: null
                          comment: Acme
                          country: CHL
                          currency: CLP
                          amount: 3000
                          externalId: Autogenerated-ID-1733412895187
                          conceptCode: '0001'
                          accountNumber: '{{accountNumber}}'
                          transactionType: PayIn
                          clientCode: '0001'
                          file: false
                        clientAccountCode: ACME.CHL.CLP.01
                        clientAccountDescription: PayIns
                        closingBalance: 32194
                        expirationAt: '2024-12-12T15:34:56.818'
                        loteout: null
                        comment: Acme
                        metaData: null
                        internalLoteID: null
                        pendingStatusChangeRequest: false
                    total: 1
                    offset: 0
                    openingBalance: 29194
                    closingBalance: 32194
              examples:
                Balance reconciliation:
                  value:
                    data:
                      - createdAt: '2024-12-05T15:34:56.259'
                        processedAt: '2024-12-05T15:38:00.20701'
                        settlementDate: '2024-12-05T15:38:00.20701'
                        settlementDays: 0
                        internalId: 0a78683f-1e3d-4fe0-ae1e-83dcdfd161cd
                        externalId: Autogenerated-ID-1733412895187
                        providerId: >-
                          qOoEqSADjhX0vhvVhuPVEO9FNtYrDTu3f9w7X5qAHkGyuXl5Vbw7mnRLEK6e6wgR
                        clientCode: '0001'
                        providerCode: null
                        accountCountry: CHL
                        country: CHL
                        accountNumber: '{{accountNumber}}'
                        clientName: Acme Inc.
                        providerName: null
                        merchant: LocalPayment
                        clientAccountNumber: '{{accountNumber}}'
                        providerAccountNumber: '{{providerAccountNumber}}'
                        transactionType: PayIn
                        paymentMethodType: BankTransfer
                        paymentMethodCode: '2528'
                        installments: 1
                        status: COMPLETED
                        statusCode: '200'
                        statusDescription: The payin was credited
                        paymentCurrency: CLP
                        paymentAmount: 3000
                        fxQuote: 1
                        confirmedCurrency: CLP
                        confirmedAmount: 3000
                        financialFeesCurrency: null
                        financialFeesAmount: null
                        feesCurrency: CLP
                        feesAmount: 0
                        localTaxesCurrency: CLP
                        localTaxesAmount: 0
                        withholdingsCurrency: null
                        withholdingsAmount: null
                        accountCurrency: CLP
                        accountAmount: 3000
                        createdBy: email@example.com
                        newStatusChangeRequest: null
                        request:
                          payer:
                            name: Prueba
                            type: INDIVIDUAL
                            payerLastName: null
                            lastname: null
                            email: jane.doe@example.com
                            document:
                              id: 8420157K
                              type: RUT
                            bank: null
                            userReference: null
                          merchant:
                            name: LocalPayment
                            lastname: null
                            type: COMPANY
                          paymentMethod:
                            code: '2528'
                            name: null
                            type: BankTransfer
                            flow: REDIRECT
                            brand: null
                          comment: Acme
                          country: CHL
                          currency: CLP
                          amount: 3000
                          externalId: Autogenerated-ID-1733412895187
                          conceptCode: '0001'
                          accountNumber: '{{accountNumber}}'
                          transactionType: PayIn
                          clientCode: '0001'
                          file: false
                        clientAccountCode: ACME.CHL.CLP.01
                        clientAccountDescription: PayIns
                        closingBalance: 32194
                        expirationAt: '2024-12-12T15:34:56.818'
                        loteout: null
                        comment: Acme
                        metaData: null
                        internalLoteID: null
                        pendingStatusChangeRequest: false
                    total: 1
                    offset: 0
                    openingBalance: 29194
                    closingBalance: 32194
                Empty:
                  value:
                    data: []
                    total: 0
                    offset: 0
                    openingBalance: 32194
                    closingBalance: 32194
        '401':
          description: Non autorizzato.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Informazioni aggiuntive della risposta.
                  code:
                    type: string
                    description: Codice di stato.
                  messages:
                    type: array
                    description: Elenco dei messaggi.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Classe del token.
                        token_type:
                          type: string
                          description: Tipo di token.
                        message:
                          type: string
                          description: Messaggio con informazioni aggiuntive.
                x-examples:
                  Example 1:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
              examples:
                Example 1:
                  value:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
        '500':
          description: Errore interno del server
          content:
            text/html:
              schema:
                type: object
              examples:
                Example 1:
                  value: >-
                    <!doctype html><html lang="en"><head><title>Server Error
                    (500)</title></head><body><h1>Server Error
                    (500)</h1><p></p></body></html>
      security:
        - token: []
      servers:
        - url: https://api.stage.localpayment.com
          description: Stage
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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