Skip to main content
POST
JavaScript

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Body

application/json

Request body for creating a new custom currency

id
string
required

The unique identifier for the new custom currency

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$
displayName
string
required

The display name of the custom currency

Maximum string length: 64
symbol
string

The symbol used to represent the custom currency

Maximum string length: 64
description
string

Description of the currency

Maximum string length: 255
units
UnitsRequest · object

Singular and plural unit labels for a custom currency. Both fields are required when supplied.

metadata
object

Additional metadata to attach to the custom currency

Response

The newly created custom currency object.

Response object

data
CustomCurrency · object
required

A custom currency used to denominate credit-based entitlements and pricing