💳 Bills
Accounts payable and bill management
List all bills for an organization
Filter bills from this bill_date (YYYY-MM-DD)
Filter overdue bills (true/false)
Search bill_number, supplier_invoice_number, or bill title
Filter by bill status
Filter bills up to this bill_date (YYYY-MM-DD)
Filter by vendor unique_id
Lightweight version for list views.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\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}/bills/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Accept: */*
[
{
"unique_id": "text",
"title": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"status_display": "text",
"vendor": {
"unique_id": "text",
"name": "text"
},
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"is_overdue": true,
"date_created": "2026-01-01T00:00:00.000Z"
}
]Create a new bill
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Bad Request
Unauthorized
Forbidden
POST /api/v1.0/organisation/{org_id}/bills/create/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 361
{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"vendor_id": "text",
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"document": "binary"
}{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"status_display": "text",
"vendor": {
"unique_id": "text",
"name": "text"
},
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"paid_date": "2026-01-01T00:00:00.000Z",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"payment_percentage": "text",
"is_overdue": true,
"document": "https://example.com",
"document_url": "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 bill with full details
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Unauthorized
Forbidden
Not Found
GET /api/v1.0/organisation/{org_id}/bills/{bill_id}/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Accept: */*
{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"status_display": "text",
"vendor": {
"unique_id": "text",
"name": "text"
},
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"paid_date": "2026-01-01T00:00:00.000Z",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"payment_percentage": "text",
"is_overdue": true,
"document": "https://example.com",
"document_url": "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 bill
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Bad Request
Unauthorized
Forbidden
Not Found
PUT /api/v1.0/organisation/{org_id}/bills/{bill_id}/update/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 361
{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"vendor_id": "text",
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"document": "binary"
}{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"status_display": "text",
"vendor": {
"unique_id": "text",
"name": "text"
},
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"paid_date": "2026-01-01T00:00:00.000Z",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"payment_percentage": "text",
"is_overdue": true,
"document": "https://example.com",
"document_url": "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 bill
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Bad Request
Unauthorized
Forbidden
Not Found
PATCH /api/v1.0/organisation/{org_id}/bills/{bill_id}/update/ HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 361
{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"vendor_id": "text",
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"document": "binary"
}{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"status_display": "text",
"vendor": {
"unique_id": "text",
"name": "text"
},
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"paid_date": "2026-01-01T00:00:00.000Z",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"payment_percentage": "text",
"is_overdue": true,
"document": "https://example.com",
"document_url": "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 a bill using query parameter.
**Available Actions:**
- `mark_received` - Mark a pending bill as received
- `approve` - Approve a received bill for payment
- `mark_paid` - Mark an approved bill as fully paid
- `mark_partially_paid` - Mark a bill as partially paid
- `mark_disputed` - Mark a bill as disputed
- `mark_cancelled` - Mark a bill as cancelled
- `record_payment` - Record a payment made for the bill (requires `amount` parameter)
**Examples:**
- `/bills/{id}/action?action=mark_received`
- `/bills/{id}/action?action=approve`
- `/bills/{id}/action?action=mark_paid`
- `/bills/{id}/action?action=record_payment&amount=500.00`The action to perform on the bill
Payment amount (required when action=record_payment)
Payment date in YYYY-MM-DD format (optional, defaults to today)
Comprehensive serializer for Bill model.
received- Receivedapproved- Approved for Paymentpaid- Paidpartially_paid- Partially Paidoverdue- Overduedisputed- Disputedcancelled- Cancelled
^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,13}(?:\.\d{0,2})?$^-?\d{0,3}(?:\.\d{0,2})?$Scanned bill document (PDF, image)
Bad Request - Invalid action or invalid state transition
Unauthorized
Forbidden
Not Found
GET /api/v1.0/organisation/{org_id}/bills/{bill_id}/action/?action=approve HTTP/1.1
Host: skhokho.ai
Authorization: Basic username:password
Accept: */*
{
"unique_id": "text",
"title": "text",
"description": "text",
"notes": "text",
"bill_number": "text",
"supplier_invoice_number": "text",
"status": "received",
"status_display": "text",
"vendor": {
"unique_id": "text",
"name": "text"
},
"bill_date": "2026-01-01",
"due_date": "2026-01-01",
"received_date": "2026-01-01",
"paid_date": "2026-01-01T00:00:00.000Z",
"subtotal": "text",
"tax_rate": "text",
"tax_amount": "text",
"total_amount": "text",
"paid_amount": "text",
"remaining_amount": "text",
"payment_percentage": "text",
"is_overdue": true,
"document": "https://example.com",
"document_url": "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
