curl --request POST \
--url 'https://api.stateset.com/api/v1/gl/revalue' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"as_of_date": "2026-08-31T14:22:05Z",
"base_currency": "USD"
}'
{
"as_of_date": "2026-08-31T14:22:05Z",
"base_currency": "USD",
"journal_entry": {
"created_at": "2026-08-31T14:22:05Z",
"description": "Two-person tent, green — replacement for damaged pole set.",
"entry_date": "2026-08-31T14:22:05Z",
"entry_number": "string",
"entry_type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_balanced": true,
"lines": [
{
"account_id": null,
"account_name": null,
"account_number": null,
"credit_amount": null,
"currency": null,
"debit_amount": null,
"description": null,
"id": null,
"line_number": null
}
],
"period_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"posted_at": "2026-08-31T14:22:05Z",
"posted_by": "string",
"reversed_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reversing_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source": "string",
"status": "pending",
"total_credits": "string",
"total_debits": "string"
},
"lines": [
{
"account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account_name": "string",
"account_number": "string",
"adjustment": "string",
"carrying_value": "49.00",
"currency": "USD",
"foreign_balance": "49.00",
"rate": "string",
"revalued_value": "49.00",
"unrealized_gain_loss": "string"
}
],
"total_unrealized_gain_loss": "string"
}
Revalue a general ledger
Revalue a general ledger
POST
/
api
/
v1
/
gl
/
revalue
curl --request POST \
--url 'https://api.stateset.com/api/v1/gl/revalue' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"as_of_date": "2026-08-31T14:22:05Z",
"base_currency": "USD"
}'
{
"as_of_date": "2026-08-31T14:22:05Z",
"base_currency": "USD",
"journal_entry": {
"created_at": "2026-08-31T14:22:05Z",
"description": "Two-person tent, green — replacement for damaged pole set.",
"entry_date": "2026-08-31T14:22:05Z",
"entry_number": "string",
"entry_type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_balanced": true,
"lines": [
{
"account_id": null,
"account_name": null,
"account_number": null,
"credit_amount": null,
"currency": null,
"debit_amount": null,
"description": null,
"id": null,
"line_number": null
}
],
"period_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"posted_at": "2026-08-31T14:22:05Z",
"posted_by": "string",
"reversed_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reversing_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source": "string",
"status": "pending",
"total_credits": "string",
"total_debits": "string"
},
"lines": [
{
"account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account_name": "string",
"account_number": "string",
"adjustment": "string",
"carrying_value": "49.00",
"currency": "USD",
"foreign_balance": "49.00",
"rate": "string",
"revalued_value": "49.00",
"unrealized_gain_loss": "string"
}
],
"total_unrealized_gain_loss": "string"
}
Request body
RevalueRequest
string,null
Effective date in
YYYY-MM-DD format; must fall in an open period. Defaults to today (UTC).string,null
ISO-4217 base currency (e.g.
USD). Defaults to the store’s configured base currency.Response
RevaluationResponse
string
required
string
required
JournalEntryResponse,null
Show JournalEntryResponse
Show JournalEntryResponse
string
required
string
required
string
required
string
required
string
required
string
required
boolean
required
JournalEntryLineResponse[]
required
string
required
string,null
string,null
string,null
string,null
string
required
string
required
string
required
Decimal total credits as a string.
string
required
Decimal total debits as a string.
RevaluationLineResponse[]
required
Show RevaluationLineResponse
Show RevaluationLineResponse
string
required
string
required
string
required
string
required
revalued_value - carrying_value.string
required
Value currently carried on the books (base currency).
string
required
Account currency (differs from the base currency).
string
required
Outstanding balance in the account’s own currency.
string
required
Exchange rate used (1 account-currency unit in base units).
string
required
foreign_balance * rate rounded to base-currency precision.string
required
Unrealized FX gain (positive) or loss (negative) in base currency.
string
required
Status codes
| Code | Meaning |
|---|---|
200 | — |
400 | — |
422 | — |
curl --request POST \
--url 'https://api.stateset.com/api/v1/gl/revalue' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"as_of_date": "2026-08-31T14:22:05Z",
"base_currency": "USD"
}'
{
"as_of_date": "2026-08-31T14:22:05Z",
"base_currency": "USD",
"journal_entry": {
"created_at": "2026-08-31T14:22:05Z",
"description": "Two-person tent, green — replacement for damaged pole set.",
"entry_date": "2026-08-31T14:22:05Z",
"entry_number": "string",
"entry_type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_balanced": true,
"lines": [
{
"account_id": null,
"account_name": null,
"account_number": null,
"credit_amount": null,
"currency": null,
"debit_amount": null,
"description": null,
"id": null,
"line_number": null
}
],
"period_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"posted_at": "2026-08-31T14:22:05Z",
"posted_by": "string",
"reversed_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reversing_entry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source": "string",
"status": "pending",
"total_credits": "string",
"total_debits": "string"
},
"lines": [
{
"account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account_name": "string",
"account_number": "string",
"adjustment": "string",
"carrying_value": "49.00",
"currency": "USD",
"foreign_balance": "49.00",
"rate": "string",
"revalued_value": "49.00",
"unrealized_gain_loss": "string"
}
],
"total_unrealized_gain_loss": "string"
}
Last modified on August 31, 2026