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

# Create account

## Field support per integration

<AccordionGroup>
  <Accordion title="Exact Online" icon="https://mintcdn.com/maesn/gCd41Ws3USFubam4/logo/exact.svg?fit=max&auto=format&n=gCd41Ws3USFubam4&q=85&s=afa1af7a261b22f843ac73ee60896ede" width="24" height="24" data-path="logo/exact.svg">
    <Note>
      If you're not using the [Interactive Authentication Flow](/authentication#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.
    </Note>

    Supported request fields:

    <ResponseField name="code" type="string" required />

    <ResponseField name="description" type="string" required />

    <ResponseField name="type" type="string" required>
      Available options:
      `CASH`, `BANK`, `CREDIT_CARD`, `PAYMENT_PROVIDER`, `ACCOUNTS_RECEIVABLE`, `PRE_PAYMENT`, `ACCOUNTS_PAYABLE`, `VAT`,
      `EMPLOYEES_PAYABLE`, `PREPAID_EXPENSES`, `ACCRUED_EXPENSES`, `INCOME_TAX_PAYABLE`, `FIXED_ASSET`, `NON_CURRENT_ASSET`,
      `DEPRECIATION`, `INVENTORY`, `EQUITY`, `RETAINED_EARNINGS`, `LONG_TERM_LIABILITY`, `CURRENT_LIABILITY`, `OTHER`, `TAX_PAYABLE`,
      `REVENUE`, `COST_OF_GOODS_SOLD`, `OTHER_EXPENSE`, `OVERHEADS`, `DEPRECIATION`, `RESEARCH_AND_DEVELOPMENT`, `EMPLOYEE_COSTS`, `EMPLOYMENT_COSTS`,
      `EXCEPTIONAL_COSTS`, `EXCEPTIONAL_INCOME`, `INCOME_TAXES`, `INTEREST_INCOME`, `YEAR_END_REFLECTION`, `INDIRECT_YEAR_END_COSTING`, `DIRECT_YEAR_END_COSTING`
    </ResponseField>
  </Accordion>

  <Accordion title="fortnox" icon="https://mintcdn.com/maesn/gCd41Ws3USFubam4/logo/fortnox.svg?fit=max&auto=format&n=gCd41Ws3USFubam4&q=85&s=14025f10bb2d1afa587fa8447531a376" width="24" height="24" data-path="logo/fortnox.svg">
    Supported request fields:

    <ResponseField name="number" type="string" required />

    <ResponseField name="description" type="string" required />

    <ResponseField name="status" type="enum">
      Available options:
      `ACTIVE`, `ARCHIVED`
    </ResponseField>
  </Accordion>

  <Accordion title="Odoo" icon="https://mintcdn.com/maesn/NQwZPkomn6wLid0x/logo/odoo.svg?fit=max&auto=format&n=NQwZPkomn6wLid0x&q=85&s=16b33ba45aee32fe594395bd226756d1" width="24" height="24" data-path="logo/odoo.svg">
    <br />

    Supported request fields:

    <ResponseField name="balance" type="number" />

    <ResponseField name="class" type="string" required>
      Available options:
      `ASSET`, `EQUITY`, `EXPENSE`, `LIABILITY`, `REVENUE`
    </ResponseField>

    <ResponseField name="code" type="string" required />

    <ResponseField name="description" type="string" />

    <ResponseField name="name" type="string" required />

    <ResponseField name="status" type="enum" required>
      Available options:
      `ACTIVE`, `ARCHIVED`
    </ResponseField>
  </Accordion>

  <Accordion title="Sage Active" icon="https://mintcdn.com/maesn/gCd41Ws3USFubam4/logo/sageactive.svg?fit=max&auto=format&n=gCd41Ws3USFubam4&q=85&s=db4ef71b40820611bd17295476ff28f9" width="24" height="24" data-path="logo/sageactive.svg">
    <Note>
      If you're not using the [Interactive Authentication Flow](/authentication#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.
    </Note>

    Supported request fields:

    <ResponseField name="code" type="string" required />

    <ResponseField name="description" type="string" />

    <ResponseField name="name" type="string" required />

    <ResponseField name="status" type="enum">
      Available options:
      `ACTIVE`, `ARCHIVED`
    </ResponseField>

    <ResponseField name="type" type="string" required>
      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`
    </ResponseField>
  </Accordion>

  <Accordion title="Xero" icon="https://mintcdn.com/maesn/51AaCYhZi3VILsjj/logo/xero.svg?fit=max&auto=format&n=51AaCYhZi3VILsjj&q=85&s=4496b21aab750469b3d5e96a1588d9f0" width="45" height="46" data-path="logo/xero.svg">
    Supported request fields:

    <ResponseField name="balance" type="number" />

    <ResponseField name="code" type="string" required />

    <ResponseField name="currency" type="enum">
      Available options (3-letter ISO 4217):\
      `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`
    </ResponseField>

    <ResponseField name="description" type="string" />

    <ResponseField name="name" type="string" required />

    <ResponseField name="number" type="string" />

    <ResponseField name="status" type="enum">
      Available options:
      `ACTIVE`, `ARCHIVED`
    </ResponseField>

    <ResponseField name="type" type="string" required>
      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`
    </ResponseField>
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml post /accounting/accounts
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:
    post:
      tags:
        - accounting
      operationId: createAccount
      parameters:
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: environmentName
          in: query
          schema:
            type: string
          required: false
        - 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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccountRequestDto'
      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
                          type: BANK
                          updatedDate: '2021-06-01T00:00:00Z'
components:
  schemas:
    CreateAccountRequestDto:
      type: object
      properties:
        balance:
          type: number
          example: 100
        class:
          type: string
          enum:
            - ASSET
            - EQUITY
            - EXPENSE
            - LIABILITY
            - REVENUE
          example: ASSET
        code:
          type: string
          example: '91'
        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
          example: EUR
        debitCreditIndicator:
          type: string
          enum:
            - DEBIT
            - CREDIT
          example: DEBIT
        description:
          type: string
          example: Business Savings Account
        journalCode:
          type: string
          example: '30'
        name:
          type: string
          example: Business Bank
        number:
          type: string
          example: '0150'
        parentAccountId:
          type: string
          example: '46'
        status:
          type: string
          enum:
            - ACTIVE
            - ARCHIVED
          example: ACTIVE
        type:
          type: string
          enum:
            - PAYMENT_PROVIDER
            - BANK
            - CURRENT
            - CURRLIAB
            - DEPRECIATN
            - DIRECTCOSTS
            - EQUITY
            - EXPENSE
            - FIXED
            - INVENTORY
            - LIABILITY
            - NONCURRENT
            - OTHERINCOME
            - OVERHEADS
            - PREPAYMENT
            - REVENUE
            - SALES
            - TERMLIAB
          example: BANK
    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
        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'
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````