{
"data": {
"invoice": {
"id": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"workspaceId": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"customerId": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"recurringInvoiceId": null,
"sourceModule": "invoicing",
"invoiceNumber": "string",
"invoiceCode": null,
"status": "draft",
"currency": "KES",
"subtotal": 500000,
"taxTotal": 500000,
"total": 500000,
"amountPaid": 500000,
"amountCredited": 500000,
"balanceDue": 500000,
"issueDate": "2026-07-06",
"dueDate": null,
"publicToken": "string",
"allowedChannels": null,
"allowedProviders": null,
"notes": null,
"pdfObjectKey": null,
"sentAt": null,
"writtenOffAt": null,
"writtenOffReason": null,
"metadata": null,
"createdAt": "2026-07-06T09:00:00.000Z",
"updatedAt": "2026-07-06T09:00:00.000Z",
"deletedAt": null
},
"customer": {
"id": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"workspaceId": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"name": "Acme Logistics Ltd",
"email": null,
"phone": null,
"taxPin": null,
"billingAddress": null,
"notes": null,
"contactId": null,
"metadata": null,
"createdAt": "2026-07-06T09:00:00.000Z",
"updatedAt": "2026-07-06T09:00:00.000Z",
"deletedAt": null
},
"lineItems": [
{
"id": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"workspaceId": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"invoiceId": "0f9a1c2e-3b4d-4e8f-9012-3456789abcde",
"description": "string",
"quantity": "string",
"unitPrice": 500000,
"taxRate": "string",
"taxAmount": 500000,
"lineTotal": 500000,
"sortOrder": 1,
"createdAt": "2026-07-06T09:00:00.000Z",
"updatedAt": "2026-07-06T09:00:00.000Z"
}
]
}
}