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

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

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

## Request

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

Creates the first invoice number which is then increased by one with every new invoice. By sending an empty request body the default is base number 10000 (the first invoice 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/invoices/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)
