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

# Get Account Activity

Generate a comprehensive transaction report for any Localpayment account. The report includes all transaction details—type, status, amounts, fees, and taxes—along with the period's opening and closing balances.


## OpenAPI

````yaml openapi/localpayment.json GET /api/accounts/{accountNumber}/activity
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}/activity:
    get:
      summary: Get Account Activity
      operationId: get-account-activity-report
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer access token for authentication. This token is obtained from
            the [Get Access Token](/reference/get-token) or [Refresh Access
            Token](/reference/refresh-token) endpoints.
          required: true
          schema:
            type: string
        - name: accountNumber
          in: path
          description: Localpayment account number.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  openingBalance:
                    type: integer
                    description: Initial amount on the balance.
                  closingBalance:
                    type: integer
                    description: Final balance amount.
                  size:
                    type: integer
                    description: Number of transactions in the response.
                  page:
                    type: integer
                    description: Number of pages in the response.
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        createdAt:
                          type: string
                          description: Transaction creation date.
                        processedAt:
                          type: string
                          description: Transaction processing date.
                        entityCode:
                          type: string
                          description: Bank code.
                        accountNumber:
                          type: string
                          description: Localpayment account number.
                        internalId:
                          type: string
                          description: Localpayment transaction identifier.
                        externalId:
                          type: string
                          description: >-
                            A unique identifier generated by your system to
                            track the transaction (alphanumeric and hyphens). We
                            recommend using UUID4 to ensure uniqueness.
                        transactionType:
                          type: string
                          enum:
                            - PayIn
                            - PayOut
                            - CurrencyExchange
                            - Credit
                            - Debit
                            - Internal Transfer
                            - Refund
                            - Recurring Fee
                            - Wire out
                            - Subscriptions
                            - Chargeback
                            - Expenses
                            - Recall
                            - Return
                            - WireIn
                          description: Transaction type.
                        status:
                          type: string
                          description: >-
                            [Transaction
                            status](/reference/transaction-status-error-codes).
                        description:
                          type: string
                          description: Status description.
                        paymentCurrency:
                          type: string
                          enum:
                            - ARS
                            - BOB
                            - BRL
                            - CLP
                            - COP
                            - CRC
                            - DOP
                            - USD
                            - GTQ
                            - MXN
                            - PYG
                            - PEN
                            - UYU
                          description: '[Currency codes](/reference/currency-codes).'
                        paymentAmount:
                          type: integer
                          description: Amount of the transaction.
                        fxQuote:
                          type: number
                          description: Currency exchange quote.
                        confirmedCurrency:
                          type: string
                          description: Confirmed [currency](/reference/currency-codes).
                        confirmedAmount:
                          type: integer
                          description: Confirmed amount.
                        feesCurrency:
                          type: string
                          description: Fees [currency](/reference/currency-codes).
                        feesAmount:
                          type: integer
                          description: Fees amount.
                        localTaxesCurrency:
                          type: string
                          description: Local taxes [currency](/reference/currency-codes).
                        localTaxesAmount:
                          type: integer
                          description: Local taxes amount.
                        withholdingsCurrency:
                          type: string
                          description: Withholdings [currency](/reference/currency-codes).
                        withholdingsAmount:
                          type: integer
                          description: Withholdings amount.
                        accountCurrency:
                          type: string
                          description: Account [currency](/reference/currency-codes).
                        accountAmount:
                          type: integer
                          description: Account amount.
                        closingBalance:
                          type: integer
                          description: Final balance amount after the transaction.
                        statusCode:
                          type: string
                          description: Status code.
                required:
                  - openingBalance
                  - closingBalance
                  - size
                  - page
                  - details
                x-examples:
                  Example 1:
                    openingBalance: 70270
                    closingBalance: 32342
                    size: 7
                    page: 1
                    details:
                      - createdAt: '2024-11-13T20:26:10.114'
                        processedAt: '2024-11-13T20:29:19.60419'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: 34dbc750-4465-4442-b59d-de0382885bb5
                        externalId: be9c8a63-7c40-4027-8473-c17ff4fe6711
                        transactionType: PayIn
                        status: COMPLETED
                        description: The payin was credited
                        paymentCurrency: CLP
                        paymentAmount: 12
                        fxQuote: 979.988311
                        confirmedCurrency: CLP
                        confirmedAmount: 12
                        feesCurrency: CLP
                        feesAmount: 0
                        localTaxesCurrency: CLP
                        localTaxesAmount: 0
                        withholdingsCurrency: CLP
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: 12
                        closingBalance: 70282
                        statusCode: '200'
                      - createdAt: '2024-11-14T17:12:10.713022'
                        processedAt: '2024-11-14T17:12:10.712988'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: d21c8e42-79b2-4098-aec7-a7c48b0b1351
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 50000
                        fxQuote: 1021
                        confirmedCurrency: CLP
                        confirmedAmount: -50000
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -50000
                        closingBalance: 20282
                        statusCode: '200'
                      - createdAt: '2024-11-14T17:18:31.995231'
                        processedAt: '2024-11-14T17:18:31.994611'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: a72bf18d-8754-42ac-9546-6c0c643dff60
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: USD
                        paymentAmount: 30
                        fxQuote: 962
                        confirmedCurrency: CLP
                        confirmedAmount: 28860
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: 28860
                        closingBalance: 49142
                        statusCode: '200'
                      - createdAt: '2024-11-19T19:46:28.015306'
                        processedAt: '2024-11-19T19:46:28.015259'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: 89f2938c-1a0f-482d-8201-1e8c689371de
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 12566
                        fxQuote: 1010.11
                        confirmedCurrency: CLP
                        confirmedAmount: -12566
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -12566
                        closingBalance: 36576
                        statusCode: '200'
                      - createdAt: '2024-11-19T19:59:56.882873'
                        processedAt: '2024-11-19T19:59:56.882126'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: ac657756-f1db-49ef-a00e-52ee351dd1d7
                        externalId: CE-EXT
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 1269
                        fxQuote: 1010.110656
                        confirmedCurrency: CLP
                        confirmedAmount: -1269
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -1269
                        closingBalance: 35307
                        statusCode: '200'
                      - createdAt: '2024-11-19T21:02:03.763224'
                        processedAt: '2024-11-19T21:02:03.762882'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: f988f901-f4d3-4873-9150-3250e3389f47
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 5965
                        fxQuote: 1010.14
                        confirmedCurrency: CLP
                        confirmedAmount: -5965
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -5965
                        closingBalance: 29342
                        statusCode: '200'
                      - createdAt: '2024-12-05T15:34:56.259'
                        processedAt: '2024-12-05T15:36:31.589376'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: 0a78683f-1e3d-4fe0-ae1e-83dcdfd161cd
                        externalId: Autogenerated-ID-1733412895187
                        transactionType: PayIn
                        status: COMPLETED
                        description: The payin was credited
                        paymentCurrency: CLP
                        paymentAmount: 3000
                        fxQuote: 970.846843
                        confirmedCurrency: CLP
                        confirmedAmount: 3000
                        feesCurrency: CLP
                        feesAmount: 0
                        localTaxesCurrency: CLP
                        localTaxesAmount: 0
                        withholdingsCurrency: CLP
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: 3000
                        closingBalance: 32342
                        statusCode: '200'
              examples:
                Activity report:
                  value:
                    openingBalance: 70270
                    closingBalance: 32342
                    size: 7
                    page: 1
                    details:
                      - createdAt: '2024-11-13T20:26:10.114'
                        processedAt: '2024-11-13T20:29:19.60419'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: 34dbc750-4465-4442-b59d-de0382885bb5
                        externalId: be9c8a63-7c40-4027-8473-c17ff4fe6711
                        transactionType: PayIn
                        status: COMPLETED
                        description: The payin was credited
                        paymentCurrency: CLP
                        paymentAmount: 12
                        fxQuote: 979.988311
                        confirmedCurrency: CLP
                        confirmedAmount: 12
                        feesCurrency: CLP
                        feesAmount: 0
                        localTaxesCurrency: CLP
                        localTaxesAmount: 0
                        withholdingsCurrency: CLP
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: 12
                        closingBalance: 70282
                        statusCode: '200'
                      - createdAt: '2024-11-14T17:12:10.713022'
                        processedAt: '2024-11-14T17:12:10.712988'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: d21c8e42-79b2-4098-aec7-a7c48b0b1351
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 50000
                        fxQuote: 1021
                        confirmedCurrency: CLP
                        confirmedAmount: -50000
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -50000
                        closingBalance: 20282
                        statusCode: '200'
                      - createdAt: '2024-11-14T17:18:31.995231'
                        processedAt: '2024-11-14T17:18:31.994611'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: a72bf18d-8754-42ac-9546-6c0c643dff60
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: USD
                        paymentAmount: 30
                        fxQuote: 962
                        confirmedCurrency: CLP
                        confirmedAmount: 28860
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: 28860
                        closingBalance: 49142
                        statusCode: '200'
                      - createdAt: '2024-11-19T19:46:28.015306'
                        processedAt: '2024-11-19T19:46:28.015259'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: 89f2938c-1a0f-482d-8201-1e8c689371de
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 12566
                        fxQuote: 1010.11
                        confirmedCurrency: CLP
                        confirmedAmount: -12566
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -12566
                        closingBalance: 36576
                        statusCode: '200'
                      - createdAt: '2024-11-19T19:59:56.882873'
                        processedAt: '2024-11-19T19:59:56.882126'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: ac657756-f1db-49ef-a00e-52ee351dd1d7
                        externalId: CE-EXT
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 1269
                        fxQuote: 1010.110656
                        confirmedCurrency: CLP
                        confirmedAmount: -1269
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -1269
                        closingBalance: 35307
                        statusCode: '200'
                      - createdAt: '2024-11-19T21:02:03.763224'
                        processedAt: '2024-11-19T21:02:03.762882'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: f988f901-f4d3-4873-9150-3250e3389f47
                        externalId: N/A
                        transactionType: CurrencyExchange
                        status: COMPLETED
                        description: CURRENCY EXCHANGE
                        paymentCurrency: CLP
                        paymentAmount: 5965
                        fxQuote: 1010.14
                        confirmedCurrency: CLP
                        confirmedAmount: -5965
                        feesCurrency: ''
                        feesAmount: 0
                        localTaxesCurrency: ''
                        localTaxesAmount: 0
                        withholdingsCurrency: ''
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: -5965
                        closingBalance: 29342
                        statusCode: '200'
                      - createdAt: '2024-12-05T15:34:56.259'
                        processedAt: '2024-12-05T15:36:31.589376'
                        entityCode: '0001'
                        accountNumber: '{{accountNumber}}'
                        internalId: 0a78683f-1e3d-4fe0-ae1e-83dcdfd161cd
                        externalId: Autogenerated-ID-1733412895187
                        transactionType: PayIn
                        status: COMPLETED
                        description: The payin was credited
                        paymentCurrency: CLP
                        paymentAmount: 3000
                        fxQuote: 970.846843
                        confirmedCurrency: CLP
                        confirmedAmount: 3000
                        feesCurrency: CLP
                        feesAmount: 0
                        localTaxesCurrency: CLP
                        localTaxesAmount: 0
                        withholdingsCurrency: CLP
                        withholdingsAmount: 0
                        accountCurrency: CLP
                        accountAmount: 3000
                        closingBalance: 32342
                        statusCode: '200'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Additional information of the response.
                  code:
                    type: string
                    description: Status code.
                  messages:
                    type: array
                    description: Message list.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Token class.
                        token_type:
                          type: string
                          description: Token type.
                        message:
                          type: string
                          description: Message with additional information.
                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
      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.