Skip to main content

Overview

The Valuations API allows you to create and update account valuations (also called reconciliations). Valuations are used to set or update the balance of an account at a specific date, particularly useful for manual accounts or correcting balances.

Get a valuation

curl -X GET https://api.sure.app/v1/valuations/12345 \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Retrieve a specific valuation by ID.

Path parameters

id
integer
required
Valuation entry ID

Response

id
integer
Unique identifier for the valuation entry
date
string
Date of the valuation (YYYY-MM-DD)
amount
string
Account balance at this date formatted as currency string
currency
string
Three-letter ISO currency code
notes
string
Additional notes about the valuation
kind
string
Valuation type: reconciliation, opening_anchor, or current_anchor
account
object
Account information
created_at
string
ISO 8601 timestamp
updated_at
string
ISO 8601 timestamp
{
  "id": 12345,
  "date": "2024-01-31",
  "amount": "$5,432.10",
  "currency": "USD",
  "notes": "Month-end reconciliation",
  "kind": "reconciliation",
  "account": {
    "id": 1,
    "name": "Chase Checking",
    "account_type": "depository"
  },
  "created_at": "2024-01-31T23:00:00Z",
  "updated_at": "2024-01-31T23:00:00Z"
}

Understanding valuations

Reconciliation entries

Valuations (reconciliations) serve to:
  1. Set account balance: Establish the correct balance at a specific date
  2. Balance adjustments: The system automatically creates an adjustment entry to reconcile the difference between the calculated balance and the target balance
  3. Historical accuracy: Maintain accurate historical balances for reporting and analysis

Valuation types

The kind field indicates the purpose of the valuation:
KindDescription
reconciliationManual balance reconciliation created by user
opening_anchorOpening balance when account was created
current_anchorCurrent balance anchor (system-managed)

How reconciliation works

When you create a valuation:
  1. The system calculates the account’s current balance up to the specified date
  2. It compares this calculated balance with your target amount
  3. An adjustment entry is automatically created for the difference
  4. The account balance is now reconciled to your target amount

Best practices

  • Regular reconciliation: Create valuations monthly to keep accounts accurate
  • Match statements: Use balances from bank/credit card statements
  • Add notes: Document why you’re making the reconciliation
  • Date precision: Use the statement date for accuracy

Error responses

error
string
Error code identifier
message
string
Human-readable error description
errors
array
Detailed validation error messages
{
  "error": "unauthorized",
  "message": "Invalid or missing API key"
}

Build docs developers (and LLMs) love