---
title: "Create custom currency"
method: POST
path: "/api/v1/credits/custom-currencies"
tags: ["Custom currencies"]
---

# Create custom currency

`POST /api/v1/credits/custom-currencies`

## Request

- Base URL: `https://api.stigg.io`
- URL: `https://api.stigg.io/api/v1/credits/custom-currencies`
- Auth: API key in header `X-API-KEY`

Creates a new custom currency in the environment.

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Request body

- CreateCustomCurrencyRequestDto: Request body for creating a new custom currency
  - `id` string, required: The unique identifier for the new custom currency
  - `displayName` string, required: The display name of the custom currency
  - `symbol` string: The symbol used to represent the custom currency
  - `description` string: Description of the currency
  - `units` object: Singular and plural unit labels for a custom currency. Both fields are required when supplied.
    - `singular` string, required: Singular form of the unit label
    - `plural` string, required: Plural form of the unit label
  - `metadata` object: Additional metadata to attach to the custom currency

## Response `201`

The newly created custom currency object.

- CustomCurrencyResponseDto: Response object
  - `data` object, required: A custom currency used to denominate credit-based entitlements and pricing
    - `id` string, required: The unique identifier for the custom currency
    - `displayName` string, required: The display name of the custom currency
    - `symbol` string, nullable, required: The symbol used to represent the custom currency
    - `description` string, nullable, required: Description of the currency
    - `units` object, nullable, required: Singular and plural unit labels for a custom currency
      - `singular` string, nullable, required: Singular form of the unit label
      - `plural` string, nullable, required: Plural form of the unit label
    - `metadata` object, required: Metadata associated with the entity
    - `createdAt` string, date-time, required: Timestamp of when the record was created
    - `updatedAt` string, date-time, required: Timestamp of when the record was last updated
    - `archivedAt` string, date-time, nullable, required: Timestamp of when the record was deleted

## Other responses

- `400`: bad request.
- `401`: User is not authenticated.
- `403`: User is not allowed to access this resource.
- `409`: CustomCurrency conflict error.
- `429`: Too many requests.

## Changes

- **2026-07-26** `b876edd1a4fc`: 5 warning, 1 info
  - added the new `CreditOveragePriceCurrencyNotFound` enum value to the `code` response property for the response status `400`
  - added the new `InvalidCreditOverageBillingModel` enum value to the `code` response property for the response status `400`
  - added the new `InvoicePreviewNotAvailableForDraftContract` enum value to the `code` response property for the response status `400`
  - added the new `OveragePriceNotSupportedOnAddon` enum value to the `code` response property for the response status `400`
  - …2 more
- **2026-07-11** `58bb216ff8ce`: 1 warning
  - added the new `GovernanceNotEnabled` enum value to the `code` response property for the response status `403`
- **2026-06-17** `7296f9e4b654`: 1 warning
  - added the new `InvoicePreviewNotAvailableForDraftContract` enum value to the `code` response property for the response status `409`
- **2026-06-08** `3acd63d6c861`: 2 info
  - added the new optional `header` request parameter `X-ACCOUNT-ID`
  - added the new optional `header` request parameter `X-ENVIRONMENT-ID`
- **2026-06-04** `4fa87d66426d`: 1 warning
  - added the new `PricingModelNotSupportedByBillingIntegration` enum value to the `code` response property for the response status `400`

[Operation history](https://skmtc.dev/stiggio/apis/stigg-api/changes/api/v1/credits/custom-currencies/post.md)

---

[API](https://skmtc.dev/stiggio/apis/stigg-api.md) - [All operations](https://skmtc.dev/stiggio/apis/stigg-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stiggio/apis/stigg-api/revisions/3e2c8cfcd035?raw)
