---
title: "Create Counter"
method: POST
path: "/organizations/{orgId}/counters"
tags: ["Counter"]
---

# Create Counter

`POST /organizations/{orgId}/counters`

Create a new Counter.

## Path parameters

- `orgId` string, required

## Request body

- CounterRequest
  - `version` integer — The version number of the entity: - **Create entity:** Not valid for initial insertion of new entity - *do not use for Create*. On initial Create, version is set at 1 and listed in the response. - **Update Entity:** On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
  - `code` string — Code for the Counter. A unique short code to identify the Counter.
  - `productId` string — UUID of the product the Counter belongs to. *(Optional)* - if left blank, the Counter is Global. A Global Counter can be used to price Plans or Plan Templates belonging to any Product.
  - `name` string, required — Descriptive name for the Counter.
  - `unit` string, required — User defined label for units shown on Bill line items, and indicating to your customers what they are being charged for.

## Response `200`

Return the created Counter

- CounterResponse
  - `id` string, required — The UUID of the entity.
  - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
  - `dtCreated` string, date-time — The DateTime when this item was created *(in ISO-8601 format)*.
  - `dtLastModified` string, date-time — The DateTime when this item was last modified *(in ISO-8601 format)*.
  - `createdBy` string — The ID of the user who created this item.
  - `lastModifiedBy` string — The ID of the user who last modified this item.
  - `code` string — Code of the Counter. A unique short code to identify the Counter.
  - `productId` string — UUID of the product the Counter belongs to. *(Optional)* - if no `productId` is returned, the Counter is Global. A Global Counter can be used to price Plans or Plan Templates belonging to any Product.
  - `name` string — Name of the Counter.
  - `unit` string — Label for units shown on Bill line items, and indicating to customers what they are being charged for.

## Other responses

- `4XX` — Error message
- `5XX` — Error message

---

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