---
title: "POST /companies/{companySlug}/creditNotes/counter"
method: POST
path: "/companies/{companySlug}/creditNotes/counter"
tags: ["credit notes"]
---

# POST /companies/{companySlug}/creditNotes/counter

`POST /companies/{companySlug}/creditNotes/counter`

## Request

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

Creates the first credit note number which is then increased by one with every new credit note. By sending an empty request body the default is base number 10000 (the first credit note number will thus be 10001), but can be specified to another starting value.

## Request body

- Counter
  - `value` integer: Current value of the counter

## Response `201`

Created

## Changes

- **2023-05-26** `e093a0c9db87`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fiken/apis/fiken-api/changes/companies/:companySlug/creditNotes/counter/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)
