curl -X GET https://kube.acho.io/service/general-ledger/bills/BILL-2024-001 \
-H "Authorization: jwt YOUR_TOKEN"
{
"bill_id": "BILL-2024-001",
"vendor_id": "a3-vendor-xxx",
"vendor_name": "Office Supplies Inc",
"ap_account_id": "a3-ap-account-xxx",
"tran_date": "2024-01-15",
"due_date": "2024-02-15",
"currency": "USD",
"exchange_rate": 1.0,
"memo": "Office supplies invoice",
"status": "Posted",
"posting_period_id": "a3-period-xxx",
"posting_period_name": "January 2024",
"subtotal": 500,
"tax_total": 50,
"total": 550,
"amount_paid": 0,
"amount_due": 550,
"is_overdue": false,
"days_until_due": 15,
"lines": [
{
"line_number": 1,
"account_id": "a3-expense-xxx",
"account_name": "Office Supplies Expense",
"description": "Office supplies",
"quantity": 10,
"rate": 50,
"amount": 500,
"tax_rate": 0.1,
"tax_amount": 50
}
],
"payments": [],
"approval_history": [
{
"action": "Submit for Approval",
"performed_by": "user_123",
"performed_at": "2024-01-15T11:00:00Z"
},
{
"action": "Approve",
"performed_by": "user_456",
"performed_at": "2024-01-15T14:00:00Z",
"comments": "Approved - invoice verified against PO"
}
],
"created_at": "2024-01-15T10:00:00Z",
"created_by": "user_123",
"posted_at": "2024-01-15T14:00:00Z"
}
Retrieve a specific vendor bill
curl -X GET https://kube.acho.io/service/general-ledger/bills/BILL-2024-001 \
-H "Authorization: jwt YOUR_TOKEN"
{
"bill_id": "BILL-2024-001",
"vendor_id": "a3-vendor-xxx",
"vendor_name": "Office Supplies Inc",
"ap_account_id": "a3-ap-account-xxx",
"tran_date": "2024-01-15",
"due_date": "2024-02-15",
"currency": "USD",
"exchange_rate": 1.0,
"memo": "Office supplies invoice",
"status": "Posted",
"posting_period_id": "a3-period-xxx",
"posting_period_name": "January 2024",
"subtotal": 500,
"tax_total": 50,
"total": 550,
"amount_paid": 0,
"amount_due": 550,
"is_overdue": false,
"days_until_due": 15,
"lines": [
{
"line_number": 1,
"account_id": "a3-expense-xxx",
"account_name": "Office Supplies Expense",
"description": "Office supplies",
"quantity": 10,
"rate": 50,
"amount": 500,
"tax_rate": 0.1,
"tax_amount": 50
}
],
"payments": [],
"approval_history": [
{
"action": "Submit for Approval",
"performed_by": "user_123",
"performed_at": "2024-01-15T11:00:00Z"
},
{
"action": "Approve",
"performed_by": "user_456",
"performed_at": "2024-01-15T14:00:00Z",
"comments": "Approved - invoice verified against PO"
}
],
"created_at": "2024-01-15T10:00:00Z",
"created_by": "user_123",
"posted_at": "2024-01-15T14:00:00Z"
}
jwt YOUR_TOKENcurl -X GET https://kube.acho.io/service/general-ledger/bills/BILL-2024-001 \
-H "Authorization: jwt YOUR_TOKEN"
{
"bill_id": "BILL-2024-001",
"vendor_id": "a3-vendor-xxx",
"vendor_name": "Office Supplies Inc",
"ap_account_id": "a3-ap-account-xxx",
"tran_date": "2024-01-15",
"due_date": "2024-02-15",
"currency": "USD",
"exchange_rate": 1.0,
"memo": "Office supplies invoice",
"status": "Posted",
"posting_period_id": "a3-period-xxx",
"posting_period_name": "January 2024",
"subtotal": 500,
"tax_total": 50,
"total": 550,
"amount_paid": 0,
"amount_due": 550,
"is_overdue": false,
"days_until_due": 15,
"lines": [
{
"line_number": 1,
"account_id": "a3-expense-xxx",
"account_name": "Office Supplies Expense",
"description": "Office supplies",
"quantity": 10,
"rate": 50,
"amount": 500,
"tax_rate": 0.1,
"tax_amount": 50
}
],
"payments": [],
"approval_history": [
{
"action": "Submit for Approval",
"performed_by": "user_123",
"performed_at": "2024-01-15T11:00:00Z"
},
{
"action": "Approve",
"performed_by": "user_456",
"performed_at": "2024-01-15T14:00:00Z",
"comments": "Approved - invoice verified against PO"
}
],
"created_at": "2024-01-15T10:00:00Z",
"created_by": "user_123",
"posted_at": "2024-01-15T14:00:00Z"
}