Currencies

Crane Ledger provides comprehensive multi-currency support, allowing organizations to track transactions and maintain accounts in multiple currencies. The system supports ISO 4217 standard currency codes and enables real-time currency conversion for reporting and analysis.

Currency Management

The Currency Object

GET/currencies/:id
Auth required
{
  "id": "cur_usd",
  "code": "USD",
  "name": "US Dollar",
  "symbol": "$",
  "decimal_places": 2,
  "is_active": true,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z"
}

Attributes

AttributeTypeDescription
idstringUnique identifier with cur_ prefix
codestringISO 4217 currency code (e.g., "USD", "EUR", "GBP")
namestringFull currency name
symbolstringCurrency symbol (e.g., "$", "€", "£")
decimal_placesintegerNumber of decimal places (typically 2)
is_activebooleanWhether the currency is active for new transactions
created_atdatetimeWhen the currency was created
updated_atdatetimeWhen the currency was last updated

List Currencies

GET/currencies
Auth required

Returns a list of all currencies supported by the system, including both standard ISO currencies and any custom currencies configured for your organization.

Query Parameters

ParameterTypeDescription
is_activebooleanFilter by active status (default: true)
limitintegerNumber of results (default: 20, max: 100)
offsetintegerPagination offset

Response

{
  "object": "list",
  "data": [
    {
      "id": "cur_usd",
      "code": "USD",
      "name": "US Dollar",
      "symbol": "$",
      "decimal_places": 2,
      "is_active": true,
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    },
    {
      "id": "cur_eur",
      "code": "EUR",
      "name": "Euro",
      "symbol": "€",
      "decimal_places": 2,
      "is_active": true,
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    },
    {
      "id": "cur_gbp",
      "code": "GBP",
      "name": "British Pound",
      "symbol": "£",
      "decimal_places": 2,
      "is_active": true,
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "has_more": false,
  "total_count": 3
}

Get Currency

GET/currencies/:id
Auth required

Retrieves the details of a specific currency by its ID.

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe currency ID (e.g., "cur_usd")

Response

{
  "id": "cur_usd",
  "code": "USD",
  "name": "US Dollar",
  "symbol": "$",
  "decimal_places": 2,
  "is_active": true,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z"
}

Create Currency

POST/currencies
Auth required
1 credits

Creates a new custom currency for your organization. This is useful for cryptocurrencies, local currencies, or specialized financial instruments.

Request Body

ParameterTypeRequiredDescription
codestringYesUnique currency code (3-10 characters)
namestringYesFull currency name
symbolstringNoCurrency symbol (defaults to code)
decimal_placesintegerNoDecimal places (default: 2, max: 8)

Response

{
  "id": "cur_btc",
  "code": "BTC",
  "name": "Bitcoin",
  "symbol": "₿",
  "decimal_places": 8,
  "is_active": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Update Currency

PUT/currencies/:id
Auth required
1 credits

Updates an existing currency. Note that the currency code cannot be changed after creation.

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe currency ID to update

Request Body

ParameterTypeDescription
namestringUpdated currency name
symbolstringUpdated currency symbol
decimal_placesintegerUpdated decimal places
is_activebooleanActive status

Response

{
  "id": "cur_btc",
  "code": "BTC",
  "name": "Bitcoin (Legacy)",
  "symbol": "₿",
  "decimal_places": 8,
  "is_active": false,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T11:45:00Z"
}

Currency Best Practices

Currency Code Standards

  • Use ISO 4217 codes for fiat currencies (USD, EUR, GBP, JPY, etc.)
  • Use common abbreviations for cryptocurrencies (BTC, ETH, ADA, etc.)
  • Keep codes to 3-6 characters for readability
  • Avoid spaces or special characters in codes

Decimal Places

  • Fiat currencies: Typically 2 decimal places (USD, EUR, GBP)
  • Cryptocurrencies: Often 8-18 decimal places depending on precision needs
  • Precious metals: Usually 4-6 decimal places for troy ounces

Multi-Currency Accounting

  • Set your organization's base currency during setup
  • Use exchange rates for converting between currencies in reports
  • Maintain separate accounts for each currency when needed
  • Consider currency risk in financial planning

Need help?

Create a free account to access our support portal. Once signed in, use the Support tab in your dashboard to submit a support ticket — our team typically responds within 24 hours.