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

# Get account

## Field support per integration

> [accordion] Business Central
>
> > [!NOTE]
> >
> > If you're not using the [Interactive Authentication Flow](https://docs.maesn.com/authentication.md#interactive-authentication-flow), make sure the query parameters `environmentName` and `companyId` are correctly populated.
> > You can obtain these values by using the `GET Environments` and `GET Companies` endpoints available under the Authentication section.
>
> Query parameters:
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **balance** `number`
>
> **class** `enum`
>
> Available options:
> `ASSET`, `EQUITY`, `EXPENSE`, `LIABILITY`, `REVENUE`
>
> > [!NOTE]
> >
> > Business Central allows custom account classes. If custom values are used and no clear mapping to the provided enums exists, the field will return the original string value.
>
> **name** `string`
>
> **number** `string`
>
> **updatedDate** `string`

> [accordion] fortnox
>
> Query parameters:
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **description** `string`
>
> **number** `string`
>
> **status** `enum`
>
> Available options:
> `ACTIVE`, `ARCHIVED`
>
> \*\*taxRate \*\* `taxRate`
>
> **properties**
>
> **code** `string`

> [accordion] Odoo
>
> Query parameters:
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **balance** `number`
>
> **class** `string`
>
> Available options:
> `ASSET`, `EQUITY`, `EXPENSE`, `LIABILITY`, `REVENUE`
>
> **code** `string`
>
> **createdDate** `string`
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **description** `string`
>
> **name** `string`
>
> **parentAccountId** `string`
>
> **status** `enum`
>
> Available options:
> `ACTIVE`, `ARCHIVED`
>
> **type** `string`
>
> **updatedDate** `string`

> [accordion] QuickBooks
>
> Query parameters:
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **balance** `number`
>
> **class** `string`
>
> Available options:
> `ASSET`, `EQUITY`, `EXPENSE`, `LIABILITY`, `REVENUE`
>
> **code** `string`
>
> **createdDate** `string`
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **description** `string`
>
> **name** `string`
>
> **parentAccountId** `string`
>
> **status** `enum`
>
> Available options:
> `ACTIVE`, `ARCHIVED`
>
> **type** `string`
>
> **updatedDate** `string`

> [accordion] Sage Active
>
> > [!NOTE]
> >
> > If you're not using the [Interactive Authentication Flow](https://docs.maesn.com/authentication.md#interactive-authentication-flow), make sure the query parameter `companyId` is correctly populated.
> > You can obtain this value by using the `GET Companies` endpoint available under the Authentication section. Please use the id field as the companyId.
>
> Query parameters:
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **code** `string`
>
> **createdDate** `string`
>
> **description** `string`
>
> **name** `string`
>
> **status** `enum`
>
> Available options:
> `ACTIVE`, `ARCHIVED`
>
> **type** `string`
>
> Available options:
> `CUSTOMER`, `PROVIDER`, `BANK`, `CASH`, `CHARGE`, `REVENUE`,
> `CAPITAL`, `FIXED_ASSET`, `MANAGEMENT_RESULT`, `DEPRECIATION_PROVISION`, `STOCK`, `RESULT_BALANCE_SHEET`,
> `EMPLOYEE`, `TITLE`, `CURRENT_ASSETS`, `BORROWED_CAPITAL`, `COST`, `REDUCTION_IN_EXPENSES`,
> `NEUTRAL_REVENUE`, `NEUTRAL_EXPENSES`, `SALES_DEDUCTION`, `EXCHANGE_RATE_INCOME`, `EXCHANGE_RATE_EXPENSE`, `BALANCE_CARRIED_FORWARD`,
> `AGGREGATE_CARRIED_FORWARD`, `OTHER_BALANCE_SHEET_ACCOUNT`, `STATISTICAL_BALANCE`, `STATISTICAL_CONSUMPTION`, `CURRENT_ASSETS_INPUT_TAX`, `BORROWED_CAPITAL_OUTPUT_TAX`,
> `CUSTOMER_PREPAYMENT`, `SUPPLIER_PREPAYMENT`, `CUSTOMER_PREPAYMENT_TAX_INCLUDED`, `SUPPLIER_PREPAYMENT_TAX_INCLUDED`, `INPUT_TAX`, `OUTPUT_TAX`,
> `SUPPLIER_RETURNABLE_PACKAGING`, `CUSTOMER_RETURNABLE_PACKAGING`
>
> **updatedDate** `string`

> [accordion] Xero
>
> Query parameters:
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **class** `enum`
>
> Available options:
> `ASSET`, `EQUITY`, `EXPENSE`, `LIABILITY`, `REVENUE`
>
> **code** `string`
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **description** `string`
>
> **name** `string`
>
> **number** `string`
>
> **status** `enum`
>
> Available options:
> `ACTIVE`, `ARCHIVED`
>
> **type** `string`
>
> Available options:\
> `BANK`, `CURRENT_ASSET`, `CURRENT_LIABILITY`, `DEPRECIATION`, `DIRECT_COSTS`, `EQUITY`,
> `EXPENSE`, `FIXED_ASSET`, `INVENTORY`, `LIABILITY`, `NON_CURRENT_ASSET`, `OTHER_INCOME`,
> `OVERHEADS`, `PRE_PAYMENT`, `REVENUE`, `SALES`, `NON_CURRENT_LIABILITY`
>
> **updatedDate** `string`


## OpenAPI

````yaml get /accounting/accounts/{accountId}
openapi: 3.0.0
info:
  title: Maesn unified API
  description: The Maesn unified API description
  version: '1.0'
  contact: {}
servers:
  - url: https://api.maesn.dev
security: []
tags:
  - name: maesn
    description: ''
paths:
  /accounting/accounts/{accountId}:
    get:
      tags:
        - accounting
      operationId: getAccount
      parameters:
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: environmentName
          in: query
          schema:
            type: string
          required: false
        - name: rawData
          required: false
          in: query
          schema:
            type: boolean
        - name: accountId
          required: true
          in: path
          schema:
            type: string
        - name: X-API-KEY
          description: API key
          in: header
          schema:
            type: string
          required: true
        - name: X-ACCOUNT-KEY
          description: Account key
          in: header
          schema:
            type: string
          required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/AccountResponseDto'
                        type: object
                        example:
                          id: '5570042'
                          balance: 100
                          class: ASSET
                          code: '91'
                          createdDate: '2025-05-01T00:00:00Z'
                          currency: EUR
                          debitCreditIndicator: DEBIT
                          description: Business Savings Account
                          name: Business Bank
                          number: '0150'
                          parentAccountId: '46'
                          status: ACTIVE
                          taxRate:
                            id: 1895b05b-38a6-4a6a-9653-166389894350
                            code: '03'
                            name: TAX19
                            percentage: 19
                          type: BANK
                          updatedDate: '2021-06-01T00:00:00Z'
components:
  schemas:
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    AccountResponseDto:
      type: object
      properties:
        id:
          type: string
        balance:
          type: number
        class:
          type: string
          enum:
            - ASSET
            - EQUITY
            - EXPENSE
            - LIABILITY
            - REVENUE
        code:
          type: string
        createdDate:
          type: string
        currency:
          type: string
          enum:
            - AED
            - AFN
            - ALL
            - AMD
            - ANG
            - AOA
            - ARS
            - AUD
            - AWG
            - AZN
            - BAM
            - BBD
            - BDT
            - BGN
            - BHD
            - BIF
            - BMD
            - BND
            - BOB
            - BRL
            - BSD
            - BTN
            - BWP
            - BYR
            - BZD
            - CAD
            - CDF
            - CHF
            - CLP
            - CNY
            - COP
            - CRC
            - CUC
            - CVE
            - CZK
            - DJF
            - DKK
            - DOP
            - DZD
            - EEK
            - EGP
            - ERN
            - ETB
            - EUR
            - FJD
            - FKP
            - GBP
            - GEL
            - GHS
            - GIP
            - GMD
            - GNF
            - GQE
            - GTQ
            - GYD
            - HKD
            - HNL
            - HRK
            - HTG
            - HUF
            - IDR
            - ILS
            - INR
            - IQD
            - IRR
            - ISK
            - JMD
            - JOD
            - JPY
            - KES
            - KGS
            - KHR
            - KMF
            - KPW
            - KRW
            - KWD
            - KYD
            - KZT
            - LAK
            - LBP
            - LKR
            - LRD
            - LSL
            - LTL
            - LVL
            - LYD
            - MAD
            - MDL
            - MGA
            - MKD
            - MMK
            - MNT
            - MOP
            - MRO
            - MUR
            - MVR
            - MWK
            - MXN
            - MYR
            - MZM
            - NAD
            - NGN
            - NIO
            - NOK
            - NPR
            - NZD
            - OMR
            - PAB
            - PEN
            - PGK
            - PHP
            - PKR
            - PLN
            - PYG
            - QAR
            - RON
            - RSD
            - RUB
            - SAR
            - SBD
            - SCR
            - SDG
            - SEK
            - SGD
            - SHP
            - SLL
            - SOS
            - SRD
            - SYP
            - SZL
            - THB
            - TJS
            - TMT
            - TND
            - TRY
            - TTD
            - TWD
            - TZS
            - UAH
            - UGX
            - USD
            - UYU
            - UZS
            - VEB
            - VND
            - VUV
            - WST
            - XAF
            - XCD
            - XDR
            - XOF
            - XPF
            - YER
            - ZAR
            - ZMK
            - ZWR
        debitCreditIndicator:
          type: string
          enum:
            - DEBIT
            - CREDIT
        description:
          type: string
        name:
          type: string
        number:
          type: string
        parentAccountId:
          type: string
        status:
          type: string
          enum:
            - ACTIVE
            - ARCHIVED
        taxRate:
          $ref: '#/components/schemas/taxRateCommonDto'
        type:
          type: string
          enum:
            - ACCOUNTS_PAYABLE
            - ACCOUNTS_RECEIVABLE
            - BANK
            - CREDIT_CARD
            - CURRENT_ASSET
            - CURRENT_LIABILITY
            - DEPRECIATION
            - DIRECT_COSTS
            - COST_OF_GOODS_SOLD
            - EQUITY
            - EXPENSE
            - FIXED_ASSET
            - INVENTORY
            - LIABILITY
            - LONG_TERM_LIABILITY
            - NON_CURRENT_ASSET
            - NON_CURRENT_LIABILITY
            - OTHER_INCOME
            - OTHER_EXPENSE
            - OVERHEADS
            - PAYMENT_PROVIDER
            - PRE_PAYMENT
            - REVENUE
            - SALES
            - OTHER
        updatedDate:
          type: string
    MetaResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
            example: Field not used by target system
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
        partialErrors:
          type: array
          description: >-
            Secondary operations that failed after the main operation succeeded.
            See [Partial Errors](/guides/partial-errors).
          items:
            type: object
            properties:
              code:
                type: string
                example: FILE_UPLOAD_FAILED
              message:
                type: string
                example: >-
                  Attachment invoice.pdf could not be uploaded to the target
                  system.
    taxRateCommonDto:
      type: object
      properties:
        id:
          type: string
          example: 1895b05b-38a6-4a6a-9653-166389894350
        code:
          type: string
          example: '03'
        name:
          type: string
          example: Tax19
        percentage:
          type: number
          example: 19
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````

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