🧾 Invoices
Invoice creation, management, and tracking
List all invoices for an organization
Filter by client unique_id
Filter invoices from this invoice_date (YYYY-MM-DD)
Filter overdue invoices (true/false)
Search invoice_number or title
Filter by invoice status
Filter invoices up to this invoice_date (YYYY-MM-DD)
Lightweight version for list views.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
Subtotal + Total Tax Amount
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Unauthorized
Forbidden
GET /api/v1.0/organisation/{org_id}/invoices/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Accept: */*
[
{
"unique_id": "text",
"title": "text",
"invoice_number": "text",
"status": "draft",
"status_display": "text",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"currency": "text",
"client": {
"unique_id": "text",
"name": "text",
"entity_type": "individual"
},
"date_created": "2026-01-01T00:00:00.000Z"
}
]Create a new invoice
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
^-?\d{0,13}(?:\.\d{0,2})?$Client unique_id (required)
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
Calculated from line items
^-?\d{0,13}(?:\.\d{0,2})?$Total VAT/tax from all line items
^-?\d{0,13}(?:\.\d{0,2})?$Subtotal + Total Tax Amount
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Bad Request
Unauthorized
Forbidden
POST /api/v1.0/organisation/{org_id}/invoices/create/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 363
{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"paid_amount": "text",
"client_id": "text",
"items": [
{
"unique_id": "text",
"product_id": "text",
"service_id": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text"
}
]
}{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"status_display": "text",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"subtotal": "text",
"total_tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"currency": "text",
"client": {
"unique_id": "text",
"name": "text",
"entity_type": "individual"
},
"items": [
{
"unique_id": "text",
"item_name": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text",
"line_subtotal": "text",
"line_vat_amount": "text",
"line_total": "text"
}
],
"created_by": {
"unique_id": "text",
"full_name": "text"
},
"date_created": "2026-01-01T00:00:00.000Z",
"last_updated": "2026-01-01T00:00:00.000Z"
}Retrieve a specific invoice with full details
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
Calculated from line items
^-?\d{0,13}(?:\.\d{0,2})?$Total VAT/tax from all line items
^-?\d{0,13}(?:\.\d{0,2})?$Subtotal + Total Tax Amount
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Unauthorized
Forbidden
Not Found
GET /api/v1.0/organisation/{org_id}/invoices/{invoice_id}/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Accept: */*
{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"status_display": "text",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"subtotal": "text",
"total_tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"currency": "text",
"client": {
"unique_id": "text",
"name": "text",
"entity_type": "individual"
},
"items": [
{
"unique_id": "text",
"item_name": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text",
"line_subtotal": "text",
"line_vat_amount": "text",
"line_total": "text"
}
],
"created_by": {
"unique_id": "text",
"full_name": "text"
},
"date_created": "2026-01-01T00:00:00.000Z",
"last_updated": "2026-01-01T00:00:00.000Z"
}Update an existing invoice
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
^-?\d{0,13}(?:\.\d{0,2})?$Client unique_id (required)
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
Calculated from line items
^-?\d{0,13}(?:\.\d{0,2})?$Total VAT/tax from all line items
^-?\d{0,13}(?:\.\d{0,2})?$Subtotal + Total Tax Amount
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Bad Request
Unauthorized
Forbidden
Not Found
PUT /api/v1.0/organisation/{org_id}/invoices/{invoice_id}/update/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 363
{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"paid_amount": "text",
"client_id": "text",
"items": [
{
"unique_id": "text",
"product_id": "text",
"service_id": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text"
}
]
}{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"status_display": "text",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"subtotal": "text",
"total_tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"currency": "text",
"client": {
"unique_id": "text",
"name": "text",
"entity_type": "individual"
},
"items": [
{
"unique_id": "text",
"item_name": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text",
"line_subtotal": "text",
"line_vat_amount": "text",
"line_total": "text"
}
],
"created_by": {
"unique_id": "text",
"full_name": "text"
},
"date_created": "2026-01-01T00:00:00.000Z",
"last_updated": "2026-01-01T00:00:00.000Z"
}Update an existing invoice
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
^-?\d{0,13}(?:\.\d{0,2})?$Client unique_id (required)
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
Calculated from line items
^-?\d{0,13}(?:\.\d{0,2})?$Total VAT/tax from all line items
^-?\d{0,13}(?:\.\d{0,2})?$Subtotal + Total Tax Amount
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Bad Request
Unauthorized
Forbidden
Not Found
PATCH /api/v1.0/organisation/{org_id}/invoices/{invoice_id}/update/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 363
{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"paid_amount": "text",
"client_id": "text",
"items": [
{
"unique_id": "text",
"product_id": "text",
"service_id": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text"
}
]
}{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"status_display": "text",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"subtotal": "text",
"total_tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"currency": "text",
"client": {
"unique_id": "text",
"name": "text",
"entity_type": "individual"
},
"items": [
{
"unique_id": "text",
"item_name": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text",
"line_subtotal": "text",
"line_vat_amount": "text",
"line_total": "text"
}
],
"created_by": {
"unique_id": "text",
"full_name": "text"
},
"date_created": "2026-01-01T00:00:00.000Z",
"last_updated": "2026-01-01T00:00:00.000Z"
}Perform an action on an invoice using query parameter.
**Available Actions:**
- `send` - Mark a draft invoice as sent to the client
- `mark_as_paid` - Mark an invoice as fully paid
- `cancel` - Cancel an invoice
- `duplicate` - Create a duplicate of the invoice
- `record_payment` - Record a payment received for the invoice (requires `amount` parameter)
**Examples:**
- `/invoices/{id}/action?action=send`
- `/invoices/{id}/action?action=mark_as_paid`
- `/invoices/{id}/action?action=cancel`
- `/invoices/{id}/action?action=duplicate`
- `/invoices/{id}/action?action=record_payment&amount=1000.00`The action to perform on the invoice
Payment amount (required when action=record_payment)
Payment date in YYYY-MM-DD format (optional, defaults to today)
Comprehensive serializer for Invoice model.
draft- Draftsent- Sentviewed- Viewed by Clientpaid- Paidpartially_paid- Partially Paidoverdue- Overduecancelled- Cancelledrefunded- Refunded
Calculated from line items
^-?\d{0,13}(?:\.\d{0,2})?$Total VAT/tax from all line items
^-?\d{0,13}(?:\.\d{0,2})?$Subtotal + Total Tax Amount
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Bad Request - Invalid action or missing required parameters
Unauthorized
Forbidden
Not Found
GET /api/v1.0/organisation/{org_id}/invoices/{invoice_id}/action/?action=cancel HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Accept: */*
{
"unique_id": "text",
"title": "text",
"description": "text",
"invoice_number": "text",
"status": "draft",
"status_display": "text",
"invoice_date": "2026-01-01",
"due_date": "2026-01-01",
"subtotal": "text",
"total_tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"currency": "text",
"client": {
"unique_id": "text",
"name": "text",
"entity_type": "individual"
},
"items": [
{
"unique_id": "text",
"item_name": "text",
"quantity": "text",
"unit_price": "text",
"discount_percentage": "text",
"vat_rate": "text",
"currency": "text",
"line_subtotal": "text",
"line_vat_amount": "text",
"line_total": "text"
}
],
"created_by": {
"unique_id": "text",
"full_name": "text"
},
"date_created": "2026-01-01T00:00:00.000Z",
"last_updated": "2026-01-01T00:00:00.000Z"
}Last updated
