---
title: "Get accounting v2 data 🇫🇷"
method: GET
path: "/companies/{companyId}/accounting-v2"
tags: ["Company"]
---

# Get accounting v2 data 🇫🇷

`GET /companies/{companyId}/accounting-v2`

Only available for FR. Returns accounting data of the company for a given month. For French companies, the data returned is the same than the one in the automatic accounting exports, so the company accounting exports have to be configured properly in order to get details by analytical code, and by employee.

\
**Required scopes**: *accounting:read*

## Path parameters

- `companyId` string, required

## Query parameters

- `date` string, required

## Response `200`

The accounting JSON of the company for a given month

- object[]
  - `operationDate` string, date, required — Date of the accounting entry.
  - `analyticCodes` object[], required — Composition of all sections the collaborator belongs to in Payfit analytical accounting settings.
    - `type` string, nullable, required — The type of analytic based on accounting settings (ex: Team).
    - `code` string, nullable, required — The code of analytic based on accounting settings (ex: 6312000).
    - `value` string, nullable, required — The value of analytic based on accounting settings (ex: Sales).
  - `employeeFullName` string, nullable, required — The Fullname of the concerned employee.
  - `contractId` string, nullable, required — The contractId of the employee entry.
  - `accountId` string, required — Refers to an account's unique numerical identifier in an accounting system.
  - `accountName` string, required — Label of the accounting entry.
  - `debit` number, nullable, required — Amount of the debit operation.
  - `credit` number, nullable, required — Amount of the credit operation.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/payfit/apis/partner-api.md) · [All operations](https://skmtc.net/payfit/apis/partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payfit/partner-api/revisions/fd1fb9262946/schema)
