The Ledger Health Monitor object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: false
Default: false
Default: false
Default: 60
{
"id": "ledger-health-monitor_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enable_health_monitor": false,
"debit_credit_mismatch": false,
"general_and_payment_ledger_mismatch": false,
"monitor_for_last_x_days": 60
} /api/accounts/ledger-health-monitor/{id} Retrieve a ledger health monitor
Retrieves the details of an existing ledger health monitor. Supply the unique ledger health monitor ID that was returned from a previous request.
Path parameters
The identifier of the ledger health monitor to retrieve.
Returns
Returns the ledger health monitor object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/ledger-health-monitor/ledger-health-monitor_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "ledger-health-monitor_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enable_health_monitor": false,
"debit_credit_mismatch": false,
"general_and_payment_ledger_mismatch": false,
"monitor_for_last_x_days": 60
} /api/accounts/ledger-health-monitor List all ledger health monitors
Returns a list of ledger health monitors. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of ledger health monitor objects.
curl https://api.overplane.dev/api/accounts/ledger-health-monitor \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "ledger-health-monitor_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enable_health_monitor": false,
"debit_credit_mismatch": false,
"general_and_payment_ledger_mismatch": false,
"monitor_for_last_x_days": 60
}
],
"has_more": false,
"total": 1
} /api/accounts/ledger-health-monitor Create a ledger health monitor
Creates a new ledger health monitor object.
Body parameters
Default: false
Default: false
Default: false
Default: 60
Returns
Returns the newly created ledger health monitor object if the call succeeded.
curl https://api.overplane.dev/api/accounts/ledger-health-monitor \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "ledger-health-monitor_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enable_health_monitor": false,
"debit_credit_mismatch": false,
"general_and_payment_ledger_mismatch": false,
"monitor_for_last_x_days": 60
} /api/accounts/ledger-health-monitor/{id} Update a ledger health monitor
Updates the specified ledger health monitor by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the ledger health monitor to update.
Body parameters
Default: false
Default: false
Default: false
Default: 60
Returns
Returns the updated ledger health monitor object.
curl https://api.overplane.dev/api/accounts/ledger-health-monitor/ledger-health-monitor_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"enable_health_monitor":false,"debit_credit_mismatch":false}' {
"id": "ledger-health-monitor_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enable_health_monitor": false,
"debit_credit_mismatch": false,
"general_and_payment_ledger_mismatch": false,
"monitor_for_last_x_days": 60
} /api/accounts/ledger-health-monitor/{id} Delete a ledger health monitor
Permanently deletes a ledger health monitor. This cannot be undone.
Path parameters
The identifier of the ledger health monitor to delete.
Returns
Returns a confirmation that the ledger health monitor has been deleted.
curl https://api.overplane.dev/api/accounts/ledger-health-monitor/ledger-health-monitor_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "ledger-health-monitor_abc123",
"deleted": true
} Line items
Child objects that belong to this ledger health monitor. These are accessed via the parent's ID.
Ledger Health Monitor Company
Attributes
Endpoints
/api/accounts/ledger-health-monitor-company?parent_id={id} /api/accounts/ledger-health-monitor-company /api/accounts/ledger-health-monitor-company/{id} /api/accounts/ledger-health-monitor-company/{id} /api/accounts/ledger-health-monitor-company/reorder {
"id": "ledger-health-monitor-company_abc123",
"idx": 1,
"ledger_health_monitor_id": "ledger_health_monitor_id_example",
"company": "Example Corp"
}