---
title: "POST /companies/{companySlug}/products/salesReport"
method: POST
path: "/companies/{companySlug}/products/salesReport"
tags: ["products"]
---

# POST /companies/{companySlug}/products/salesReport

`POST /companies/{companySlug}/products/salesReport`

## Request

- Base URL: `https://api.fiken.no/api/v2`
- URL: `https://api.fiken.no/api/v2/companies/{companySlug}/products/salesReport`
- Auth: OAuth 2
  - Authorization code: `https://fiken.no/oauth/authorize`
  - Token URL: `https://fiken.no/oauth/token`

Creates a report based on provided specifications.

## Request body

- ProductSalesReportRequest
  - `from` string, date, required: Start date range for the report, inclusive, format yyyy-mm-dd
  - `to` string, date, required: End date range for the report, inclusive, format yyyy-mm-dd

## Response `200`

OK

- ProductSalesReportResult[]
  - `product` Product
    - `productId` integer: Product Id.
    - `createdDate` string, date: Date that product was created in Fiken, format yyyy-mm-dd
    - `lastModifiedDate` string, date: Date that product was last modified in Fiken, format yyyy-mm-dd.
    - `name` string, required: Product name.
    - `unitPrice` integer: The net unit price in cents.
    - `costPrice` integer: Cost price in cents, including freight, customs duty and other non-recoverable costs. Excluding VAT if the company is VAT-registered, including VAT otherwise. Optional.
    - `incomeAccount` string, required: The accounting account that will receive the payment.
    - `vatType` string, required: One of {"HIGH", "MEDIUM", "LOW", "EXEMPT", "EXEMPT_IMPORT_EXPORT", "EXEMPT_REVERSE", "OUTSIDE", "NONE"}. "HIGH" is the most common.
    - `active` boolean, required: If product is in use (True) or not (False).
    - `productNumber` string
    - `stock` number, float: Number of products available in stock. If not provided, stock value is set to null. Decimal values are accepted. For example 5.5
    - `note` string: Optional field for additional information.
  - `sold` ProductSalesLineInfo
    - `count` integer
    - `sales` integer
    - `netAmount` integer: Net amount excluding VAT in cents (5000 = 50.00)
    - `vatAmount` integer: VAT amount for sale in cents (500 = 5.00)
    - `grossAmount` integer: Gross amount of sale (net + VAT) in cents (5500 = 55.00)
  - `credited` ProductSalesLineInfo
    - `count` integer
    - `sales` integer
    - `netAmount` integer: Net amount excluding VAT in cents (5000 = 50.00)
    - `vatAmount` integer: VAT amount for sale in cents (500 = 5.00)
    - `grossAmount` integer: Gross amount of sale (net + VAT) in cents (5500 = 55.00)
  - `sum` ProductSalesLineInfo
    - `count` integer
    - `sales` integer
    - `netAmount` integer: Net amount excluding VAT in cents (5000 = 50.00)
    - `vatAmount` integer: VAT amount for sale in cents (500 = 5.00)
    - `grossAmount` integer: Gross amount of sale (net + VAT) in cents (5500 = 55.00)

## Changes

- **2026-10-23** `29111da67f94`: 1 info
  - added the optional property `items/product/costPrice` to the response with the `200` status
- **2023-05-26** `e093a0c9db87`: 1 info
  - the response property `items/product/incomeAccount` became required for the status `200`
- **2021-12-08** `4813e5666340`: 1 breaking, 3 info
  - the `items/product/stock` response's property type changed from `integer` to `number`, and format from `int64` to `float` for status `200`
  - the endpoint scheme security `fiken_api_oauth` was removed from the API
  - added the optional property `items/product/createdDate` to the response with the `200` status
  - added the optional property `items/product/lastModifiedDate` to the response with the `200` status

[Operation history](https://skmtc.dev/fiken/apis/fiken-api/changes/companies/:companySlug/products/salesReport/post.md)

---

[API](https://skmtc.dev/fiken/apis/fiken-api.md) - [All operations](https://skmtc.dev/fiken/apis/fiken-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fiken/apis/fiken-api/revisions/29111da67f94?raw)
