Skip to main content
POST
/
records
/
{id}
/
mark_overdue
Mark a record as overdue
curl --request POST \
  --url https://api.endclose.com/v1/records/{id}/mark_overdue \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "reconciliation_id": 123,
  "overdue_at": "2023-11-07T05:31:56Z"
}
'
{
  "amount": 123,
  "direction": "credit",
  "date": "2023-12-25",
  "data_stream_key": "<string>",
  "id": 123,
  "decimal_places": 2,
  "description": "<string>",
  "metadata": {},
  "status": "reconciled",
  "external_id": "<string>",
  "matched_records": [
    {
      "id": 123,
      "amount": 123,
      "decimal_places": 2,
      "direction": "credit",
      "description": "<string>",
      "date": "2023-12-25",
      "external_id": "<string>",
      "data_stream_key": "<string>",
      "reconciliation_id": 123,
      "reconciliation_name": "<string>"
    }
  ],
  "days_unreconciled": 123
}

Documentation Index

Fetch the complete documentation index at: https://endclose.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

The unique identifier of the record

Body

application/json
reconciliation_id
integer
required

ID of the reconciliation the record should be marked overdue in

overdue_at
string<date-time>

When the record should be considered overdue. Defaults to the current time.

Response

Record marked overdue

amount
integer
required

The monetary amount in cents (e.g., 1234 = $12.34)

direction
enum<string>
required
Available options:
credit,
debit
date
string<date>
required
data_stream_key
string
required
id
integer
decimal_places
integer
default:2

Number of decimal places for this currency (2 for USD)

description
string
metadata
object
status
enum<string>

Derived from reconciliation matches. Read-only.

Available options:
reconciled,
unreconciled
external_id
string
matched_records
object[]

Records matched with this record via reconciliation

days_unreconciled
integer | null

Number of days since the record's date. Null when the record is reconciled.