The Ledger Merge 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.
{
"id": "ledger-merge_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"company": "Example Corp",
"status": "draft",
"root_type": "root_type_example",
"account_name": "account_name_example"
} /api/accounts/ledger-merge/{id} Retrieve a ledger merge
Retrieves the details of an existing ledger merge. Supply the unique ledger merge ID that was returned from a previous request.
Path parameters
The identifier of the ledger merge to retrieve.
Returns
Returns the ledger merge object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/ledger-merge/ledger-merge_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "ledger-merge_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"company": "Example Corp",
"status": "draft",
"root_type": "root_type_example",
"account_name": "account_name_example"
} /api/accounts/ledger-merge List all ledger merges
Returns a list of ledger merges. 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 merge objects.
curl https://api.overplane.dev/api/accounts/ledger-merge \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "ledger-merge_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"company": "Example Corp",
"status": "draft",
"root_type": "root_type_example",
"account_name": "account_name_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/ledger-merge Create a ledger merge
Creates a new ledger merge object.
Body parameters
Returns
Returns the newly created ledger merge object if the call succeeded.
curl https://api.overplane.dev/api/accounts/ledger-merge \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"account":"account_example","company":"Example Corp","root_type":"root_type_example","account_name":"account_name_example"}' {
"id": "ledger-merge_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"company": "Example Corp",
"status": "draft",
"root_type": "root_type_example",
"account_name": "account_name_example"
} /api/accounts/ledger-merge/{id} Update a ledger merge
Updates the specified ledger merge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the ledger merge to update.
Body parameters
Returns
Returns the updated ledger merge object.
curl https://api.overplane.dev/api/accounts/ledger-merge/ledger-merge_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"account":"account_example","company":"Example Corp"}' {
"id": "ledger-merge_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"company": "Example Corp",
"status": "draft",
"root_type": "root_type_example",
"account_name": "account_name_example"
} /api/accounts/ledger-merge/{id} Delete a ledger merge
Permanently deletes a ledger merge. This cannot be undone.
Path parameters
The identifier of the ledger merge to delete.
Returns
Returns a confirmation that the ledger merge has been deleted.
curl https://api.overplane.dev/api/accounts/ledger-merge/ledger-merge_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "ledger-merge_abc123",
"deleted": true
} Line items
Child objects that belong to this ledger merge. These are accessed via the parent's ID.
Ledger Merge Accounts
Attributes
Endpoints
/api/accounts/ledger-merge-accounts?parent_id={id} /api/accounts/ledger-merge-accounts /api/accounts/ledger-merge-accounts/{id} /api/accounts/ledger-merge-accounts/{id} /api/accounts/ledger-merge-accounts/reorder {
"id": "ledger-merge-accounts_abc123",
"idx": 1,
"ledger_merge_id": "ledger_merge_id_example",
"account": "account_example",
"merged": false,
"account_name": "account_name_example"
}