Skip to content

Close eligibility through a date: per check, a status, a reason and the outstanding items

GET
/v1/entities/{entity_id}/close-checks
curl --request GET \
--url 'https://example.com/v1/entities/example/close-checks?through=example'
entity_id
required
Entity Id

The entity this path is relative to

string

The entity this path is relative to

through
required
Through

The close date this would close through (YYYY-MM-DD)

string

The close date this would close through (YYYY-MM-DD)

override
Override

Check keys to preview an override of; the reason belongs on the close itself, not on a preview

Array<string>

Check keys to preview an override of; the reason belongs on the close itself, not on a preview

Successful Response

Media typeapplication/json
CloseChecks
object
entity_id
required
Entity Id
string
legal_name
required
Legal Name
string
base_currency
required
Base Currency
string
snapshot_seq
required
Snapshot Seq
integer
through
required
Through
string
window_start
required
Window Start
string
prior_through
required
Any of:
string
months
required
Months
Array<object>
object
key
additional properties
string
eligible
required
Eligible

Every check positively passed; a recorded override does NOT make this true

boolean
may_close
required
May Close

Nothing blocks: every check passed or a recorded override waives it

boolean
checks
required
Checks
Array<object>
CloseCheck
object
check
required
Check
string
title
required
Title
string
requirement
required
Requirement
string
status
required
Status

Pass | fail | unevaluable; only ‘pass’ is a positive answer

string
reason
required
Reason
string
blocking
required
Blocking
boolean
outstanding
required
Outstanding
Array<object>
CloseOutstanding

One specific thing that would have to change for a check to pass.

Amounts inside detail are integer micro strings, as everywhere else.

object
kind
required
Kind
string
message
required
Message
string
detail
required
Detail
object
key
additional properties
any
outstanding_truncated
required
Outstanding Truncated
integer
waiver
required
Any of:
CloseWaiver

An override, matched to the check it let through and to what that check found at that moment.

object
check
required
Check
string
through
required
Through
string
reason
required
Reason
string
actor
required
Any of:
string
status_at_close
required
Status At Close
string
reason_at_close
required
Reason At Close
string
outstanding_at_close
required
Outstanding At Close
integer
blocking_checks
required
Blocking Checks
Array<string>
unmatched_overrides
required
Unmatched Overrides

Overrides that name no currently-blocking check; a close would refuse them

Array<object>
CloseOverride

Close over one named blocking check: the check, and why. There is no id to pre-create and no wildcard.

An override is matched against the checks as the server has just evaluated them, so it can only name a failure that is real at this moment. A blanket bypass cannot be expressed. Each override is stored on the close record with the check’s status and outstanding count as they stood, the acting principal and this reason.

object
check
required
Check

The check key this override answers, e.g. ‘statement_coverage’

string
>= 1 characters
reason
required
Reason

Why this period is being closed with that check unsatisfied

string
>= 1 characters
lock
required
PeriodLock

The period lock as this evaluation read it. Its version is the expected_version a close or reopen sends back, so the answer to ‘would this close?’ carries what performing it needs

object
through
required
Any of:
string
version
required
Version

Pass this back as expected_version on the next close or reopen

integer
close_id
required
Any of:
string
links
required
Links
object
key
additional properties
string

Example generated

{
"entity_id": "example",
"legal_name": "example",
"base_currency": "example",
"snapshot_seq": 1,
"through": "example",
"window_start": "example",
"prior_through": "example",
"months": [
{
"additionalProperty": "example"
}
],
"eligible": true,
"may_close": true,
"checks": [
{
"check": "example",
"title": "example",
"requirement": "example",
"status": "example",
"reason": "example",
"blocking": true,
"outstanding": [
{
"kind": "example",
"message": "example",
"detail": {}
}
],
"outstanding_truncated": 1,
"waiver": {
"check": "example",
"through": "example",
"reason": "example",
"actor": "example",
"status_at_close": "example",
"reason_at_close": "example",
"outstanding_at_close": 1
}
}
],
"blocking_checks": [
"example"
],
"unmatched_overrides": [
{
"check": "example",
"reason": "example"
}
],
"lock": {
"through": "example",
"version": 1,
"close_id": "example"
},
"links": {
"additionalProperty": "example"
}
}

Bad Request

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Unauthorized

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Forbidden

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Not Found

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Conflict

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Precondition Failed

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Unprocessable Content

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Internal Server Error

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}

Service Unavailable

Media typeapplication/json
ErrorEnvelope
object
error
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
retryable
required
Retryable
boolean
details
required
Details
Array<object>
object
key
additional properties
any
request_id
Any of:
string
next_action
Any of:
object
key
additional properties
any

Example generated

{
"error": {
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
],
"request_id": "example",
"next_action": {}
}
}