curl -X GET https://kube.acho.io/service/general-ledger/invoices/INV-2024-001 \
-H "Authorization: jwt YOUR_TOKEN"
{
"invoice_id": "INV-2024-001",
"customer_id": "a3-customer-xxx",
"customer_name": "Acme Corp",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-01-15",
"due_date": "2024-02-15",
"currency": "USD",
"status": "Sent",
"subtotal": 4000,
"tax_total": 400,
"total": 4400,
"amount_paid": 0,
"amount_due": 4400,
"is_overdue": false,
"lines": [
{
"line_number": 1,
"account_id": "a3-revenue-xxx",
"account_name": "Consulting Revenue",
"description": "Consulting - January 2024",
"quantity": 40,
"rate": 100,
"amount": 4000,
"tax_rate": 0.1,
"tax_amount": 400
}
],
"payments": [],
"created_at": "2024-01-15T10:00:00Z"
}
Retrieve a specific customer invoice
curl -X GET https://kube.acho.io/service/general-ledger/invoices/INV-2024-001 \
-H "Authorization: jwt YOUR_TOKEN"
{
"invoice_id": "INV-2024-001",
"customer_id": "a3-customer-xxx",
"customer_name": "Acme Corp",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-01-15",
"due_date": "2024-02-15",
"currency": "USD",
"status": "Sent",
"subtotal": 4000,
"tax_total": 400,
"total": 4400,
"amount_paid": 0,
"amount_due": 4400,
"is_overdue": false,
"lines": [
{
"line_number": 1,
"account_id": "a3-revenue-xxx",
"account_name": "Consulting Revenue",
"description": "Consulting - January 2024",
"quantity": 40,
"rate": 100,
"amount": 4000,
"tax_rate": 0.1,
"tax_amount": 400
}
],
"payments": [],
"created_at": "2024-01-15T10:00:00Z"
}
jwt YOUR_TOKENcurl -X GET https://kube.acho.io/service/general-ledger/invoices/INV-2024-001 \
-H "Authorization: jwt YOUR_TOKEN"
{
"invoice_id": "INV-2024-001",
"customer_id": "a3-customer-xxx",
"customer_name": "Acme Corp",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-01-15",
"due_date": "2024-02-15",
"currency": "USD",
"status": "Sent",
"subtotal": 4000,
"tax_total": 400,
"total": 4400,
"amount_paid": 0,
"amount_due": 4400,
"is_overdue": false,
"lines": [
{
"line_number": 1,
"account_id": "a3-revenue-xxx",
"account_name": "Consulting Revenue",
"description": "Consulting - January 2024",
"quantity": 40,
"rate": 100,
"amount": 4000,
"tax_rate": 0.1,
"tax_amount": 400
}
],
"payments": [],
"created_at": "2024-01-15T10:00:00Z"
}