curl --request POST \
--url 'https://api.stateset.com/api/v1/gl/revalue' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"as_of_date": null,
"base_currency": null
}'
{
"as_of_date": "string",
"base_currency": "string",
"journal_entry": null,
"lines": [
{
"account_id": "string",
"account_name": "string",
"account_number": "string",
"adjustment": "string",
"carrying_value": "string",
"currency": "string",
"foreign_balance": "string",
"rate": "string",
"revalued_value": "string",
"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 YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"as_of_date": null,
"base_currency": null
}'
{
"as_of_date": "string",
"base_currency": "string",
"journal_entry": null,
"lines": [
{
"account_id": "string",
"account_name": "string",
"account_number": "string",
"adjustment": "string",
"carrying_value": "string",
"currency": "string",
"foreign_balance": "string",
"rate": "string",
"revalued_value": "string",
"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.Responses
RevaluationResponse
ErrorBody
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/gl/revalue' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"as_of_date": null,
"base_currency": null
}'
{
"as_of_date": "string",
"base_currency": "string",
"journal_entry": null,
"lines": [
{
"account_id": "string",
"account_name": "string",
"account_number": "string",
"adjustment": "string",
"carrying_value": "string",
"currency": "string",
"foreign_balance": "string",
"rate": "string",
"revalued_value": "string",
"unrealized_gain_loss": "string"
}
],
"total_unrealized_gain_loss": "string"
}
⌘I