curl -X GET https://kube.acho.io/service/general-ledger/accounting-periods/a3UM4R8nYh33A6hgda/unposted-entries \
-H "Authorization: jwt YOUR_TOKEN"
{
"period_id": "a3UM4R8nYh33A6hgda",
"period_name": "January 2024",
"total_unposted": 8,
"by_document_type": {
"journal_entries": {
"draft": [
{
"id": "JE-2024-001",
"memo": "Office supplies",
"amount": 500.00,
"created_at": "2024-01-15T10:00:00Z"
}
],
"pending_approval": [
{
"id": "JE-2024-002",
"memo": "Payroll adjustment",
"amount": 1500.00,
"created_at": "2024-01-20T14:00:00Z"
}
],
"on_hold": [],
"approved": []
},
"bills": {
"draft": [
{
"id": "BILL-2024-001",
"vendor": "Office Supplies Inc",
"amount": 750.00,
"due_date": "2024-02-15"
}
],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"invoices": {
"draft": [],
"pending_approval": [
{
"id": "INV-2024-001",
"customer": "Acme Corp",
"amount": 4400.00,
"due_date": "2024-02-15"
}
],
"on_hold": [],
"approved": []
},
"bill_payments": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"invoice_payments": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"credit_memos": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
}
},
"summary": {
"by_status": {
"draft": 2,
"pending_approval": 2,
"on_hold": 0,
"approved": 0
}
}
}
Get all unposted documents in an accounting period
curl -X GET https://kube.acho.io/service/general-ledger/accounting-periods/a3UM4R8nYh33A6hgda/unposted-entries \
-H "Authorization: jwt YOUR_TOKEN"
{
"period_id": "a3UM4R8nYh33A6hgda",
"period_name": "January 2024",
"total_unposted": 8,
"by_document_type": {
"journal_entries": {
"draft": [
{
"id": "JE-2024-001",
"memo": "Office supplies",
"amount": 500.00,
"created_at": "2024-01-15T10:00:00Z"
}
],
"pending_approval": [
{
"id": "JE-2024-002",
"memo": "Payroll adjustment",
"amount": 1500.00,
"created_at": "2024-01-20T14:00:00Z"
}
],
"on_hold": [],
"approved": []
},
"bills": {
"draft": [
{
"id": "BILL-2024-001",
"vendor": "Office Supplies Inc",
"amount": 750.00,
"due_date": "2024-02-15"
}
],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"invoices": {
"draft": [],
"pending_approval": [
{
"id": "INV-2024-001",
"customer": "Acme Corp",
"amount": 4400.00,
"due_date": "2024-02-15"
}
],
"on_hold": [],
"approved": []
},
"bill_payments": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"invoice_payments": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"credit_memos": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
}
},
"summary": {
"by_status": {
"draft": 2,
"pending_approval": 2,
"on_hold": 0,
"approved": 0
}
}
}
jwt YOUR_TOKENcurl -X GET https://kube.acho.io/service/general-ledger/accounting-periods/a3UM4R8nYh33A6hgda/unposted-entries \
-H "Authorization: jwt YOUR_TOKEN"
{
"period_id": "a3UM4R8nYh33A6hgda",
"period_name": "January 2024",
"total_unposted": 8,
"by_document_type": {
"journal_entries": {
"draft": [
{
"id": "JE-2024-001",
"memo": "Office supplies",
"amount": 500.00,
"created_at": "2024-01-15T10:00:00Z"
}
],
"pending_approval": [
{
"id": "JE-2024-002",
"memo": "Payroll adjustment",
"amount": 1500.00,
"created_at": "2024-01-20T14:00:00Z"
}
],
"on_hold": [],
"approved": []
},
"bills": {
"draft": [
{
"id": "BILL-2024-001",
"vendor": "Office Supplies Inc",
"amount": 750.00,
"due_date": "2024-02-15"
}
],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"invoices": {
"draft": [],
"pending_approval": [
{
"id": "INV-2024-001",
"customer": "Acme Corp",
"amount": 4400.00,
"due_date": "2024-02-15"
}
],
"on_hold": [],
"approved": []
},
"bill_payments": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"invoice_payments": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
},
"credit_memos": {
"draft": [],
"pending_approval": [],
"on_hold": [],
"approved": []
}
},
"summary": {
"by_status": {
"draft": 2,
"pending_approval": 2,
"on_hold": 0,
"approved": 0
}
}
}
| Field | Type | Description |
|---|---|---|
total_unposted | number | Total count of unposted documents |
by_document_type | object | Unposted documents grouped by type and status |
summary.by_status | object | Count of documents by status |