Settings

Organization settings control various aspects of how Crane Ledger behaves for your organization. Settings include defaults, preferences, and configuration options that affect all operations.

The Setting Object

GET/organizations/:organization_id/settings/:key
Auth required

Settings are key-value pairs that control organization behavior:

{
  "key": "default_currency",
  "value": "CUR_USD",
  "description": "Default currency for new transactions",
  "data_type": "string",
  "is_system": false,
  "updated_at": "2024-01-15T10:30:00Z"
}

Attributes

AttributeTypeDescription
keystringSetting key identifier
valueanySetting value (string, number, boolean, object)
descriptionstringHuman-readable description
data_typeenumstring, number, boolean, object
is_systembooleanWhether this is a system-controlled setting
updated_atdatetimeWhen the setting was last updated

List Settings

GET/organizations/:organization_id/settings
Auth required

Returns a list of all organization settings.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID

Query Parameters

ParameterTypeDescription
limitintegerNumber of results (default: 20, max: 100)
offsetintegerPagination offset

Response

{
  "object": "list",
  "data": [
    {
      "key": "default_currency",
      "value": "CUR_USD",
      "description": "Default currency for new transactions",
      "data_type": "string",
      "updated_at": "2024-01-15T10:30:00Z"
    },
    {
      "key": "fiscal_year_start",
      "value": "01-01",
      "description": "Fiscal year start month and day",
      "data_type": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    },
    {
      "key": "invoice_number_prefix",
      "value": "INV-",
      "description": "Prefix for invoice numbers",
      "data_type": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "has_more": false,
  "total_count": 3
}

Get Setting

GET/organizations/:organization_id/settings/:key
Auth required

Retrieves the value of a specific setting.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID
keystringYesThe setting key

Response

{
  "key": "default_currency",
  "value": "CUR_USD",
  "description": "Default currency for new transactions",
  "data_type": "string",
  "updated_at": "2024-01-15T10:30:00Z"
}

Update Setting

PUT/organizations/:organization_id/settings/:key
Auth required
1 credits

Updates the value of a specific setting.

Path Parameters

ParameterTypeRequiredDescription
organization_idstringYesThe organization ID
keystringYesThe setting key

Request Body

ParameterTypeRequiredDescription
valueanyYesNew setting value

Response

{
  "key": "default_currency",
  "value": "CUR_EUR",
  "description": "Default currency for new transactions",
  "data_type": "string",
  "updated_at": "2024-01-20T14:30:00Z"
}

Common Settings

Financial Settings

Setting KeyTypeDescriptionDefault
default_currencystringDefault currency for transactionsOrganization base currency
fiscal_year_startstringFiscal year start (MM-DD)"01-01"
multi_currency_enabledbooleanEnable multi-currency featurestrue

Document Settings

Setting KeyTypeDescriptionDefault
invoice_number_prefixstringInvoice number prefix"INV-"
bill_number_prefixstringBill number prefix"BILL-"
invoice_due_daysnumberDefault invoice due days30
bill_due_daysnumberDefault bill due days30

Tax Settings

Setting KeyTypeDescriptionDefault
default_sales_tax_idstringDefault sales tax ratenull
tax_inclusive_pricingbooleanShow prices with tax includedfalse
tax_calculation_methodstringTax calculation method"exclusive"

Workflow Settings

Setting KeyTypeDescriptionDefault
auto_post_transactionsbooleanAuto-post transactionsfalse
require_approvalsbooleanRequire approvals for large transactionsfalse
approval_thresholdnumberApproval threshold amount10000

Integration Settings

Setting KeyTypeDescriptionDefault
webhook_urlstringWebhook endpoint URLnull
api_rate_limitnumberAPI rate limit per hour1000
export_formatstringDefault export format"csv"

Appearance Settings

Setting KeyTypeDescriptionDefault
timezonestringOrganization timezone"UTC"
date_formatstringDate display format"YYYY-MM-DD"
number_formatstringNumber formatting locale"en-US"

Notification Settings

Setting KeyTypeDescriptionDefault
email_notificationsbooleanEnable email notificationstrue
invoice_overdue_remindersbooleanSend overdue reminderstrue
payment_receiptsbooleanSend payment confirmationstrue

Setting Management Best Practices

Configuration Strategy

  • Review settings during initial setup
  • Document custom configurations
  • Test setting changes in development first
  • Maintain backup of working configurations

Change Management

  • Update settings during maintenance windows
  • Communicate changes to team members
  • Monitor impact of setting changes
  • Have rollback procedures ready

Security Considerations

  • Limit who can modify sensitive settings
  • Audit setting changes regularly
  • Use appropriate permission levels
  • Validate setting values before saving

Performance Impact

  • Some settings may affect system performance
  • Monitor resource usage after changes
  • Cache setting values appropriately
  • Consider setting update frequency

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.