Equity

The equity API allows you to manage share ownership for a company. You can issue new shares, transfer shares between shareholders, perform buybacks and retirements, and execute stock splits. The API also provides position tracking and cap table generation, and records the company’s dividend decisions.

Endpoints

List Transaction Types

GET /api/v2/equity/transaction-types

Returns the available equity transaction types.

Response

{
  "transaction_types": [
    { "value": "ISSUANCE", "label": "ISSUANCE" },
    { "value": "TRANSFER", "label": "TRANSFER" },
    { "value": "BUYBACK", "label": "BUYBACK" },
    { "value": "RETIREMENT", "label": "RETIREMENT" },
    { "value": "SPLIT", "label": "SPLIT" },
    { "value": "CONVERSION", "label": "CONVERSION" }
  ]
}

Note: CONVERSION is a recognized transaction_type value, but there is currently no endpoint for creating a conversion transaction — only ISSUANCE, TRANSFER, BUYBACK, RETIREMENT, and SPLIT transactions can be created via the API (see the endpoints below).

List Share Classes

GET /api/v2/equity/share-classes

Returns the available share class types.

Response

{
  "share_classes": [
    { "value": "ORDINARY", "label": "ORDINARY" },
    { "value": "CLASS_A", "label": "CLASS_A" },
    { "value": "CLASS_B", "label": "CLASS_B" },
    { "value": "CLASS_C", "label": "CLASS_C" },
    { "value": "PREFERRED", "label": "PREFERRED" },
    { "value": "OTHER", "label": "OTHER" }
  ]
}

List Transactions

GET /api/v2/equity/transactions

Retrieves a paginated list of equity transactions.

Query Parameters

Parameter Type Required Description
client_account_id integer Yes Filter by client account
business_partner_id integer No Filter by shareholder
share_class string No Filter by share class (e.g. ORDINARY)
transaction_type string No Filter by transaction type (e.g. ISSUANCE)
date_from date No Filter transactions from this date (inclusive)
date_to date No Filter transactions up to this date (inclusive)
with string No Include related resources (supported: business_partner, created_by, updated_by)

page and per_page are not currently accepted by this endpoint — it always returns the first 100 matching transactions. Narrow results with the filters above if you have more than 100 transactions for a client account.

The list leaves out void-pool entries (business_partner_id: null), so it shows only the shareholders’ side of an issuance, retirement or split: two of a split’s four entries.

Response

{
  "data": [
    {
      "id": 1,
      "created_at": "2024-06-01T10:00:00Z",
      "created_by_id": 7,
      "updated_at": null,
      "updated_by_id": null,
      "client_account_id": 7,
      "transaction_date": "2024-06-01",
      "transaction_type": "ISSUANCE",
      "transaction_group_id": "3f6c2a9e-8d41-4b7a-9c2e-5a1d7e0b4f86",
      "business_partner_id": 56,
      "share_class": "ORDINARY",
      "quantity": 1000.0,
      "price_per_share": 100.0,
      "notes": "Initial share issuance",
      "split_ratio_numerator": null,
      "split_ratio_denominator": null
    }
  ],
  "meta": {
    "page": 1,
    "pages": 1,
    "per_page": 100,
    "records": 1
  }
}

Get Transaction

GET /api/v2/equity/transactions/{id}

Retrieves a specific equity transaction by ID.

Query Parameters

Parameter Type Required Description
with string No Include related resources (supported: business_partner, created_by, updated_by)

Response

Returns a single transaction object (same shape as the list response items).


Issue Shares

POST /api/v2/equity/transactions/issue

Issues new shares to a shareholder.

Request Body

Field Type Required Description
client_account_id integer Yes The client account ID
business_partner_id integer Yes The shareholder receiving the shares
share_class string Yes Share class (e.g. ORDINARY, PREFERRED)
quantity decimal Yes Number of shares to issue (must be positive)
price_per_share decimal No Price per share
transaction_date date No Date of the transaction
notes string No Transaction notes

Example Request

{
  "client_account_id": 7,
  "business_partner_id": 56,
  "share_class": "ORDINARY",
  "quantity": "1000",
  "price_per_share": "100",
  "transaction_date": "2024-06-01",
  "notes": "Initial share issuance"
}

Response

Returns the shareholder’s side of the transaction with status 201 Created. The shares come from the void pool, so the group also holds a matching negative entry with business_partner_id: null.

Transfer Shares

POST /api/v2/equity/transactions/transfer

Transfers shares from one shareholder to another.

Request Body

Field Type Required Description
client_account_id integer Yes The client account ID
from_business_partner_id integer Yes The shareholder selling/transferring shares
to_business_partner_id integer Yes The shareholder receiving shares
share_class string Yes Share class
quantity decimal Yes Number of shares to transfer (must be positive)
price_per_share decimal No Price per share
transaction_date date No Date of the transaction
notes string No Transaction notes

Example Request

{
  "client_account_id": 7,
  "from_business_partner_id": 56,
  "to_business_partner_id": 78,
  "share_class": "ORDINARY",
  "quantity": "200",
  "price_per_share": "150",
  "transaction_date": "2024-09-15"
}

Response

Returns the recipient’s side of the transaction (to_business_partner_id) with status 201 Created.

Validation

  • from_business_partner_id and to_business_partner_id must be different
  • The seller must hold enough shares of the specified class (returns 400 with an insufficient shares error otherwise)

Buyback Shares

POST /api/v2/equity/transactions/buyback

Records a company buyback of its own shares from a shareholder.

Request Body

Field Type Required Description
client_account_id integer Yes The client account ID
from_business_partner_id integer Yes The shareholder selling shares back
company_business_partner_id integer Yes The company’s own business partner record
share_class string Yes Share class
quantity decimal Yes Number of shares to buy back (must be positive)
price_per_share decimal No Price per share
transaction_date date No Date of the transaction
notes string No Transaction notes

Response

Returns the company’s side of the transaction (company_business_partner_id) with status 201 Created.

Validation

  • from_business_partner_id and company_business_partner_id must be different
  • The shareholder must hold enough shares of the specified class

Retire Shares

POST /api/v2/equity/transactions/retire

Retires (cancels) shares held by the company.

Request Body

Field Type Required Description
client_account_id integer Yes The client account ID
company_business_partner_id integer Yes The company’s own business partner record
share_class string Yes Share class
quantity decimal Yes Number of shares to retire (must be positive)
transaction_date date No Date of the transaction
notes string No Transaction notes

Response

Returns the company’s side of the transaction (the negative entry for company_business_partner_id) with status 201 Created. The retired shares go to the void pool.

Validation

  • The company must hold enough shares of the specified class (typically acquired via buyback)

Stock Split

POST /api/v2/equity/transactions/split

Executes a stock split (forward or reverse) for a shareholder’s position.

Request Body

Field Type Required Description
client_account_id integer Yes The client account ID
business_partner_id integer Yes The shareholder whose shares are being split
share_class string Yes Share class
old_quantity decimal Yes The shareholder’s current number of shares of the class (must be positive). Must match the holding exactly
new_quantity decimal Yes New number of shares after split (must be positive, must differ from old_quantity)
transaction_date date No Date of the transaction
notes string No Transaction notes

Example Request

A 2-for-1 forward split of 500 shares:

{
  "client_account_id": 7,
  "business_partner_id": 56,
  "share_class": "ORDINARY",
  "old_quantity": "500",
  "new_quantity": "1000",
  "transaction_date": "2024-12-01",
  "notes": "2:1 forward stock split"
}

Response

Returns the entry that gives the shareholder the new shares (quantity equal to new_quantity) with status 201 Created. A split records four entries in one group: the old shares leave the shareholder for the void pool and the new shares come back from it. Every entry carries split_ratio_numerator = new_quantity and split_ratio_denominator = old_quantity, truncated to whole numbers: with fractional quantities the stored ratio is not exact (old_quantity 2.5 → 5 stores 5/2), and an old_quantity below 1 stores a denominator of 0. Compute the ratio from the quantities when they are fractional.

Validation

  • new_quantity must differ from old_quantity
  • old_quantity must be positive (otherwise 400 equity.invalid_transaction_data) and equal the shareholder’s current holding of the class, or the request is refused with 400 equity.insufficient_shares

Get Positions

GET /api/v2/equity/positions

Returns current equity positions (shareholdings) aggregated from all transactions.

Query Parameters

Parameter Type Required Description
client_account_id integer Yes Filter by client account
business_partner_id integer No Filter by shareholder
share_class string No Filter by share class
include_void boolean No Also count the void pool (business_partner_id: null), the counterparty of issuances, retirements and splits. Like any position, it is returned only while it holds more than zero shares (default: false)
with string No Include related resources (supported: business_partner)

Response

A plain JSON array, not the paginated envelope, with one position per shareholder and share class that holds more than zero shares. cost_basis and average_price use the weighted average cost of the shares held; average_price is null when the shares have no cost basis: no price_per_share was given, or the shares came from a split. A split currently resets the holder’s cost_basis to 0, since the old shares leave at their average price and the new ones arrive without one.

[
  {
    "business_partner_id": 56,
    "share_class": "ORDINARY",
    "quantity": 800.0,
    "cost_basis": 80000.0,
    "average_price": 100.0
  }
]

Get Cap Table

GET /api/v2/equity/cap-table

Generates a capitalization table showing the ownership structure of the company.

Query Parameters

Parameter Type Required Description
client_account_id integer Yes The client account ID
company_business_partner_id integer Yes The company’s own business partner record. Shares it holds count as treasury shares, not as outstanding. The ID is not validated: a wrong ID gives 0 treasury shares and counts the company’s shares as outstanding

Response

{
  "share_classes": [
    {
      "share_class": "ORDINARY",
      "total_shares": 800.0,
      "treasury_shares": 200,
      "percentage_of_total": 100.0,
      "shareholders": [
        {
          "business_partner_id": 56,
          "name": "Romashka Ltd",
          "quantity": 800.0,
          "average_price": 100.0,
          "percentage_of_class": 100.0,
          "percentage_of_total": 100.0
        }
      ]
    }
  ],
  "total_outstanding": 800.0,
  "total_treasury": 200
}
Field Description
total_outstanding Shares held by everyone except the company, across all classes
total_treasury Shares held by the company, across all classes (sum of the whole-share treasury_shares)
share_classes[].total_shares Outstanding shares of the class
share_classes[].treasury_shares Shares of the class held by the company (whole shares; a fraction is dropped)
share_classes[].percentage_of_total The class’s share of total_outstanding, in percent
shareholders[].percentage_of_class The holder’s share of the class’s outstanding shares, in percent
shareholders[].percentage_of_total The holder’s share of total_outstanding, in percent

A class held only by the company is listed with an empty shareholders array. Percentages are 0 when nothing is outstanding.


List Dividend Decisions

GET /api/v2/equity/dividend-decisions

Returns the company’s dividend decisions, oldest first, in the paginated envelope. A decision records when a dividend was decided and by whom, as the minutes state it. The shareholder register report (RF-1086) reports each decision in the income year of its decided_at.

Query Parameters

Parameter Type Required Description
client_account_id integer Yes The client account ID
year integer No Only decisions whose decided_at falls in this calendar year
share_class string No Filter by share class
page integer No Page number (default: 1)
per_page integer No Items per page (default: 50)

Get Dividend Decision

GET /api/v2/equity/dividend-decisions/{id}

Create Dividend Decision

POST /api/v2/equity/dividend-decisions

Request Body

Field Type Required Description
client_account_id integer Yes The client account ID
decided_at datetime Yes The local time of the decision as the minutes state it, without a time zone (2026-06-20T14:00:00). RF-1086 reports this exact time
decided_by string Yes GENERAL_MEETING, or BOARD for a board deciding under the general meeting’s authorisation (aksjeloven § 8-2 (2))
share_class string Yes The share class the dividend is paid on
amount_per_share decimal Yes Dividend per share (precision 19, scale 6)
total_amount decimal Yes The whole distribution (precision 19, scale 2)
currency_code string No ISO 4217 code; defaults to the client account’s accounting currency
accounts_year integer No The income year of the approved annual accounts the dividend is distributed on, when it has one
notes string No Up to 500 characters

Example Request

{
  "client_account_id": 7,
  "decided_at": "2026-06-20T14:00:00",
  "decided_by": "GENERAL_MEETING",
  "share_class": "ORDINARY",
  "amount_per_share": 25,
  "total_amount": 25000,
  "accounts_year": 2025
}

Response

201 with the dividend decision.

Validation

  • amount_per_share and total_amount must be positive, and amount_per_share can’t exceed total_amount
  • decided_at must have no time zone, and accounts_year can’t be later than the year of decided_at
  • A share class can’t have two decisions at the same decided_at (409 equity.duplicate_dividend_decision): RF-1086 matches each shareholder’s part to the company’s distribution by that time

Update Dividend Decision

PUT /api/v2/equity/dividend-decisions/{id}

Takes the fields of Create Dividend Decision except client_account_id, which can’t change; fields left out keep their value. Returns 200 with the decision.

Delete Dividend Decision

DELETE /api/v2/equity/dividend-decisions/{id}

Returns 204 with no body.


Attributes

Transaction

Attribute Type Description
id integer Unique identifier (read-only)
created_at datetime Creation timestamp (read-only)
created_by_id integer ID of the creating user (read-only)
updated_at datetime Last update timestamp (read-only)
updated_by_id integer ID of the last updating user (read-only)
client_account_id integer ID of the client account
transaction_date date Date of the transaction
transaction_type string Type: ISSUANCE, TRANSFER, BUYBACK, RETIREMENT, SPLIT, CONVERSION
transaction_group_id string Groups related transactions (e.g. both sides of a transfer)
business_partner_id integer The shareholder involved
share_class string Share class: ORDINARY, CLASS_A, CLASS_B, CLASS_C, PREFERRED, OTHER
quantity decimal Number of shares (precision 19, scale 6). Returned as a JSON number, which keeps about 17 significant digits
price_per_share decimal Price per share (precision 19, scale 6). Returned as a JSON number, which keeps about 17 significant digits
notes string Transaction notes
split_ratio_numerator integer Split ratio numerator (for split transactions)
split_ratio_denominator integer Split ratio denominator (for split transactions)

Position

Attribute Type Description
business_partner_id integer The shareholder
share_class string Share class
quantity decimal Current number of shares held
cost_basis decimal Total cost basis
average_price decimal Weighted average price per share

Dividend Decision

Attribute Type Description
id integer Unique identifier (read-only)
created_at datetime Creation timestamp (read-only)
created_by_id integer ID of the creating user (read-only)
updated_at datetime Last update timestamp (read-only)
updated_by_id integer ID of the last updating user (read-only)
client_account_id integer ID of the client account (read-only after creation)
decided_at datetime Local time of the decision, without a time zone
decided_by string GENERAL_MEETING or BOARD
share_class string Share class: ORDINARY, CLASS_A, CLASS_B, CLASS_C, PREFERRED, OTHER
amount_per_share decimal Dividend per share. Returned as a JSON number
total_amount decimal The whole distribution. Returned as a JSON number
currency_code string ISO 4217 currency of the amounts
accounts_year integer Income year of the accounts the dividend is distributed on, or null
notes string Notes

Error Responses

Errors use the standard v2 envelope ({"error": {"code", "message", "request_id"}}) — see Error Handling.

Status Code Description
400 equity.invalid_transaction_data A JSON body of {} or null, a missing required field, a quantity that is not positive, an unknown share_class, the same business partner on both sides, a split where new_quantity equals old_quantity, or a cap table request without company_business_partner_id
400 equity.business_partner_mismatch A transaction’s business partner does not exist or belongs to another client account (the cap table’s company_business_partner_id is not checked)
400 equity.insufficient_shares The seller or company holds too few shares, or a split’s old_quantity doesn’t match the holding
400 equity.invalid_dividend_decision A dividend decision without a JSON body, or with a missing or invalid field (see Create Dividend Decision)
403 equity.access_denied client_account_id is missing or you have no access to it, or no access to the transaction’s or decision’s client account
404 equity.not_found Transaction not found
404 equity.dividend_decision_not_found Dividend decision not found
409 equity.duplicate_dividend_decision The share class already has a dividend decision at that decided_at

The general codes apply too: a body that is empty or not valid JSON, or an invalid transaction_date, gives 400 common.validation_error; a request without a JSON Content-Type gives 415; and a quantity or price that is not a number (such as "abc") currently gives 500 common.internal_error.