---
title: "Create new Billing Metrics"
method: POST
path: "/v2/billing_metrics/create"
tags: ["Billing Metric"]
---

# Create new Billing Metrics

`POST /v2/billing_metrics/create`

Create Billing Metrics.

## Request body

- BillingMetrics
  - `sys_id` string — The Sys ID of the metric
  - `source_sys_id` string — Specifies the source metrics. Only system metrics can have an empty source and cannot be removed.
  - `created_on` string, date-time — Created on
  - `created_by` string — Username who created the Billing Metrics.
  - `updated_on` string, date-time — Updated on
  - `updated_by` string — Username who updated the Billing Metrics.
  - `name` string, required — Name of the billing metrics
  - `billing_metric_type` 'margin_savings' | 'native_cost' | 'rate' | 'system_cost' | 'true_cost' | 'usage', required — Types of Billing Metric.
  - `category` 'Customer' | 'Dimension' | 'Distributor' | 'Partner' — Categories of Billing Metric.

## Response `200`

Success

- BillingMetrics
  - `sys_id` string — The Sys ID of the metric
  - `source_sys_id` string — Specifies the source metrics. Only system metrics can have an empty source and cannot be removed.
  - `created_on` string, date-time — Created on
  - `created_by` string — Username who created the Billing Metrics.
  - `updated_on` string, date-time — Updated on
  - `updated_by` string — Username who updated the Billing Metrics.
  - `name` string, required — Name of the billing metrics
  - `billing_metric_type` 'margin_savings' | 'native_cost' | 'rate' | 'system_cost' | 'true_cost' | 'usage', required — Types of Billing Metric.
  - `category` 'Customer' | 'Dimension' | 'Distributor' | 'Partner' — Categories of Billing Metric.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.net/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/versions/bf2cdf20826d/schema)
