The Repost Accounting Ledger 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: draft
Default: false
{
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
} /api/accounts/repost-accounting-ledger/{id} Retrieve a repost accounting ledger
Retrieves the details of an existing repost accounting ledger. Supply the unique repost accounting ledger ID that was returned from a previous request.
Path parameters
The identifier of the repost accounting ledger to retrieve.
Returns
Returns the repost accounting ledger object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger/repost-accounting-ledger_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
} /api/accounts/repost-accounting-ledger List all repost accounting ledgers
Returns a list of repost accounting ledgers. 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 repost accounting ledger objects.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
}
],
"has_more": false,
"total": 1
} /api/accounts/repost-accounting-ledger Create a repost accounting ledger
Creates a new repost accounting ledger object.
Body parameters
Default: draft
Default: false
Returns
Returns the newly created repost accounting ledger object if the call succeeded.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
} /api/accounts/repost-accounting-ledger/{id} Update a repost accounting ledger
Updates the specified repost accounting ledger by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the repost accounting ledger to update.
Body parameters
Default: draft
Default: false
Returns
Returns the updated repost accounting ledger object.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger/repost-accounting-ledger_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
} /api/accounts/repost-accounting-ledger/{id} Delete a repost accounting ledger
Permanently deletes a repost accounting ledger. This cannot be undone.
Path parameters
The identifier of the repost accounting ledger to delete.
Returns
Returns a confirmation that the repost accounting ledger has been deleted.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger/repost-accounting-ledger_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "repost-accounting-ledger_abc123",
"deleted": true
} /api/accounts/repost-accounting-ledger/{id}/submit Submit a repost accounting ledger
Submits a draft repost accounting ledger, transitioning its status from draft to submitted.
Path parameters
The identifier of the repost accounting ledger to act on.
Returns
Returns the repost accounting ledger object with updated status.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger/repost-accounting-ledger_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
} /api/accounts/repost-accounting-ledger/{id}/cancel Cancel a repost accounting ledger
Cancels a submitted repost accounting ledger, transitioning its status to cancelled.
Path parameters
The identifier of the repost accounting ledger to act on.
Returns
Returns the repost accounting ledger object with updated status.
curl https://api.overplane.dev/api/accounts/repost-accounting-ledger/repost-accounting-ledger_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "repost-accounting-ledger_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"delete_cancelled_entries": false
} Line items
Child objects that belong to this repost accounting ledger. These are accessed via the parent's ID.
Repost Accounting Ledger Items
Attributes
Endpoints
/api/accounts/repost-accounting-ledger-items?parent_id={id} /api/accounts/repost-accounting-ledger-items /api/accounts/repost-accounting-ledger-items/{id} /api/accounts/repost-accounting-ledger-items/{id} /api/accounts/repost-accounting-ledger-items/reorder {
"id": "repost-accounting-ledger-items_abc123",
"idx": 1,
"repost_accounting_ledger_id": "repost_accounting_ledger_id_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example"
}