Expense
Version: v1.0.0
Supporting model
A request/response or nested model — not a stored DynamoDB entity.
Overview
Expense model
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
expense_id | str | ❌ | — | — |
part_purchase_id | str | ✅ | — | — |
contact | str | ✅ | — | — |
contact_id | str | ✅ | — | — |
date | str | ❌ | — | — |
expense_type | str | ❌ | — | — |
expense_type_id | str | ❌ | — | — |
reference | str | ❌ | — | — |
line_items | List[ExpenseLineItem] | ✅ | — | — |
total_expense | float | ✅ | — | — |
paid_status | str | ❌ | NOT_PAID | — |
payment_id | str | ❌ | — | — |
payment_display_id | str | ❌ | — | — |
allocate_all_expenses | bool | ❌ | False | — |
Embedded models
Models embedded in the fields above — shown inline; they have no separate page.
ExpenseLineItem — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
amount | float | ✅ | — | — |
line_item_percentage | float | ✅ | — | — |
line_item_id | str | ❌ | — | — |
Change history
v1.0.0· 2025-04-22 · Cian (shared account) · Initial version. (71ac3af7c)
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /newpartPurchases/expense | — | src/expenses/part_purchases_expense_post.py |
Change history
v1.0.0 · 2025-04-22 · Cian (shared account) · 71ac3af7c
detatch
- Initial version.
Generated from
dismantly-backend/Microservices/PartPurchases/dependencies/models.py. Do not edit by hand.