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

# Create treasury account

> Creates a new treasury account within the authenticated company. This endpoint allows defining account details such as name, type, initial balance, associated currency, and optional metadata. Once created, the account can be used to manage incoming and outgoing financial transactions.



## OpenAPI

````yaml POST /2023-11/admin/treasuryAccounts
openapi: 3.0.3
info:
  title: Genuka V2 - API
  version: 1.0.0
  contact: {}
servers:
  - url: https://api-staging.genuka.com
  - url: https://api.genuka.com
security:
  - bearerAuth: []
tags:
  - name: Public Routes
  - name: Pages
  - name: Collections
  - name: Shops
  - name: Products
  - name: Articles
  - name: Discounts
  - name: Blogs
  - name: Company
  - name: Review
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: Private Routes
  - name: Authentication
  - name: Apps
  - name: Accounting
  - name: Addresses
  - name: Customer
  - name: Analytics
  - name: Articles1
  - name: Availabilities
  - name: API Keys
  - name: Orders
  - name: Bills
  - name: Blogs1
  - name: Calendar Events
  - name: Collections1
  - name: Company1
  - name: Customers
  - name: Deliveries
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: Discount
  - name: Domains
    description: |-
      ``` json
      {
      "domain": "",
      "company_id": ""
      }

       ```
  - name: Analytics1
  - name: Orders1
  - name: Payments
  - name: Pages1
  - name: Production
  - name: Bill of Materials
  - name: Payments1
  - name: Payments Methods
  - name: Workflows
  - name: New Folder
  - name: Wallet
  - name: Marketing
  - name: Campaigns
  - name: Templates
  - name: Products1
  - name: Product Variants
  - name: Analytics12
  - name: Services
    description: >-
      Services are "Products" that have a duration in minutes, a buffer time and
      a list of users able to provide the service.
  - name: SupplierProducts
  - name: Shops1
    description: >-
      Shops are sort of subsidiary of companies. A Company can have many Shops.
      Each shop can have 0 or more .  
        
      But all of them are properties of a Company.
  - name: Warehouses
    description: >-
      Warehouses are places where stocks are placed.


      Shop which are physical or virtual point of sales can be attached to one
      or many warehouses to take their products.
  - name: Stocks
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: Review1
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: ReviewCriterion
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: StockMovements
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: Suppliers
  - name: Treasury Accounts
    description: Comptes de trésorerie
  - name: Users
  - name: Wrapped
  - name: Returns
  - name: Webhooks
  - name: Customer Routes
  - name: Authentication1
  - name: Addresses1
  - name: Orders12
  - name: Payments12
  - name: Review12
    description: |-
      ``` json
      {
      "title": "",
      "quantity": "",
      "product_variant": "",
      "date": "",
      "company_id": "",
      "shops": []
      }

       ```
  - name: Developer Routes
  - name: Authentication12
  - name: Apps1
  - name: Apps Shortcut
  - name: Products12
    description: Developer can access a company product through its app
paths:
  /2023-11/admin/treasuryAccounts:
    post:
      tags:
        - Private Routes
        - Treasury Accounts
      summary: Create
      description: Create
      operationId: create21
      parameters:
        - name: x-company
          in: header
          schema:
            type: string
            example: '{{companyId}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                accounting_account_code:
                  type: string
                  example: '571'
                balance:
                  type: number
                  example: 50
                label:
                  type: string
                  example: Espèces
                medias:
                  type: array
                  items:
                    type: object
                    properties:
                      link:
                        type: string
                        example: http://localhost:3000/assets/cash.png
                  example:
                    - link: http://localhost:3000/assets/cash.png
                metadata:
                  nullable: true
                  example: null
                shop_id:
                  type: string
                  example: ''
                type:
                  type: string
                  example: cash
            examples:
              Create:
                value:
                  accounting_account_code: '571'
                  balance: 50
                  label: Espèces
                  medias:
                    - link: http://localhost:3000/assets/cash.png
                  metadata: null
                  shop_id: ''
                  type: cash
      responses:
        '201':
          description: '201'
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-cache, private
            Connection:
              schema:
                type: string
                example: keep-alive
            Date:
              schema:
                type: string
                example: Fri, 10 Oct 2025 15:02:24 GMT
            Server:
              schema:
                type: string
                example: nginx/1.18.0 (Ubuntu)
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
            Vary:
              schema:
                type: string
                example: Origin
            X-RateLimit-Limit:
              schema:
                type: string
                example: '6000'
            X-RateLimit-Remaining:
              schema:
                type: string
                example: '5999'
          content:
            application/json:
              schema:
                type: object
                properties:
                  accounting_account_code:
                    type: string
                    example: '571'
                  balance:
                    type: number
                    example: 50
                  company_id:
                    type: string
                    example: 01hqydxwtxdj3kmzp3bz7jk73g
                  created_at:
                    type: string
                    example: '2025-10-10T15:02:24.000000Z'
                  id:
                    type: string
                    example: 01k77aa0qxmg81kwc0bp94cc24
                  label:
                    type: string
                    example: Espèces
                  medias:
                    type: array
                    items: {}
                    example: []
                  metadata:
                    nullable: true
                    example: null
                  shop:
                    nullable: true
                    example: null
                  shop_id:
                    nullable: true
                    example: null
                  type:
                    type: string
                    example: cash
                  updated_at:
                    type: string
                    example: '2025-10-10T15:02:24.000000Z'
              examples:
                '201':
                  value:
                    accounting_account_code: '571'
                    balance: 50
                    company_id: 01hqydxwtxdj3kmzp3bz7jk73g
                    created_at: '2025-10-10T15:02:24.000000Z'
                    id: 01k77aa0qxmg81kwc0bp94cc24
                    label: Espèces
                    medias: []
                    metadata: null
                    shop: null
                    shop_id: null
                    type: cash
                    updated_at: '2025-10-10T15:02:24.000000Z'
        '422':
          description: '422'
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-cache, private
            Connection:
              schema:
                type: string
                example: keep-alive
            Date:
              schema:
                type: string
                example: Fri, 10 Oct 2025 14:58:23 GMT
            Server:
              schema:
                type: string
                example: nginx/1.18.0 (Ubuntu)
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
            Vary:
              schema:
                type: string
                example: Origin
            X-RateLimit-Limit:
              schema:
                type: string
                example: '6000'
            X-RateLimit-Remaining:
              schema:
                type: string
                example: '5999'
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: object
                    properties:
                      accounting_account_code:
                        type: array
                        items:
                          type: string
                          example: The accounting account code field is required.
                        example:
                          - The accounting account code field is required.
                      balance:
                        type: array
                        items:
                          type: string
                          example: The balance field is required.
                        example:
                          - The balance field is required.
                      label:
                        type: array
                        items:
                          type: string
                          example: The label field is required.
                        example:
                          - The label field is required.
                      type:
                        type: array
                        items:
                          type: string
                          example: The type field is required.
                        example:
                          - The type field is required.
                  message:
                    type: string
                    example: The label field is required. (and 3 more errors)
              examples:
                '422':
                  value:
                    errors:
                      accounting_account_code:
                        - The accounting account code field is required.
                      balance:
                        - The balance field is required.
                      label:
                        - The label field is required.
                      type:
                        - The type field is required.
                    message: The label field is required. (and 3 more errors)
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````