Skip to main content

InvoicePost

Version: v8.1.0

Supporting model

A request/response or nested model — not a stored DynamoDB entity.

Overview​

InvoicePost model

Fields​

FieldTypeRequiredDefaultDescription
contact_idstr✅——
contact_namestr✅——
referencestr❌——
issue_datestr❌——
due_datestr❌——
sales_personstr❌——
sales_person_idstr❌——
sales_channelstr❌——
delivery_methodstr❌——
delivery_detailsstr❌——
line_amount_tax_typestr✅——
work_order_idstr❌——
work_order_display_idstr❌——
quote_idstr❌——
quote_display_idstr❌——
parts_trader_numberstr❌——
is_bulk_pricingbool✅——
line_itemsList[LineItem]✅——
brokered_toBrokeredTo❌—BrokeredTo model
dont_sync_to_xerobool❌False—
bulk_pricefloat❌——
notestr❌——
delivery_addressAddress❌—Address model
billing_addressAddress❌—Address model
statusstr❌DRAFT—
settlementInvoiceSettlement❌—Settlement options for invoice creation.

Embedded models​

Models embedded in the fields above — shown inline; they have no separate page.

LineItem — v2.1.0
FieldTypeRequiredDefaultDescription
item_typestr✅——
item_namestr✅——
descriptionstr✅——
unit_pricefloat❌——
tax_typestr❌——
quantityint❌——
accountAccount❌—Account model
tag_idstr❌——
part_idstr❌——
is_restockedbool❌False—
discountfloat❌——
tax_amountfloat❌——
line_amountfloat❌——
line_item_idstr❌——

Change history

  • v2.1.0 · 2025-04-17 · Olaniyi Ajayi · Field line_item_id became optional.; Field line_item_id default changed: None → Field(default_factory=lambda : str(uuid4())). (6db62f7db)
  • v2.0.0 · 2025-04-09 · Cian (shared account) · Field description type changed: Optional[str] → str (breaking).; Field description became required (breaking).; Field item_name type changed: Optional[str] → str (breaking).; Field item_name became required (breaking).; Field item_type type changed: Optional[str] → str (breaking).; Field item_type became required (breaking).; Field line_item_id type changed: Optional[str] → str (breaking).; Field line_item_id became required (breaking). (6c65e2d22)
  • v1.0.0 · 2025-03-15 · Olaniyi Ajayi · Initial version. (338416124)
Account — v5.0.0
FieldTypeRequiredDefaultDescription
account_codestr❌——
account_idstr✅——
account_namestr✅——

Change history

  • v5.0.0 · 2025-05-26 · Cian (shared account) · Field account_code type changed: str → Optional[str] (breaking).; Field account_code became optional. (509648ddf)
  • v4.0.0 · 2025-05-15 · Cian (shared account) · Field account_code type changed: Optional[str] → str (breaking).; Field account_code became required (breaking). (bdb212c0f)
  • v3.0.0 · 2025-05-09 · Cian (shared account) · Field account_code type changed: str → Optional[str] (breaking).; Field account_code became optional. (3a7865c16)
  • v2.0.0 · 2025-04-09 · Cian (shared account) · Field account_code type changed: Optional[str] → str (breaking).; Field account_code became required (breaking). (6c65e2d22)
  • v1.0.0 · 2025-03-15 · Olaniyi Ajayi · Initial version. (338416124)
BrokeredTo — v1.0.0
FieldTypeRequiredDefaultDescription
referencestr❌——
namestr❌——
address_line_1str❌——
citystr❌——
regionstr❌——
postal_codestr❌——
countrystr❌——

Change history

  • v1.0.0 · 2025-03-16 · Cian (shared account) · Initial version. (feca668a3)
Address — v1.0.0
FieldTypeRequiredDefaultDescription
address_line_1str❌——
address_line_2str❌——
attentionstr❌——
citystr❌——
countrystr❌——
postal_codestr❌——
regionstr❌——

Change history

  • v1.0.0 · 2025-03-15 · Olaniyi Ajayi · Initial version. (338416124)
InvoiceSettlement — v1.0.0
FieldTypeRequiredDefaultDescription
modeInvoiceSettlementMode (PAID)✅—Settlement mode for invoice creation.
paymentInvoiceSettlementPayment✅—Payment payload for paid invoice creation.

Change history

  • v1.0.0 · 2026-04-03 · Cian (shared account) · Initial version. (b0055dbb7)
InvoiceSettlementPayment — v1.1.0
FieldTypeRequiredDefaultDescription
amount_paidfloat✅——
accountPaymentAccount✅—Payment Account model
date_paidstr❌——
referencestr❌——
payment_typestr❌——

Change history

  • v1.1.0 · 2026-04-12 · Cian (shared account) · Added optional field payment_type. (86f7fd78b)
  • v1.0.0 · 2026-04-03 · Cian (shared account) · Initial version. (b0055dbb7)
PaymentAccount — v5.0.0
FieldTypeRequiredDefaultDescription
codestr❌——
namestr✅——
account_idstr✅——

Change history

  • v5.0.0 · 2025-05-26 · Cian (shared account) · Field code type changed: str → Optional[str] (breaking).; Field code became optional. (579cb1f46)
  • v4.0.0 · 2025-05-15 · Cian (shared account) · Field code type changed: Optional[str] → str (breaking).; Field code became required (breaking). (bdb212c0f)
  • v3.0.0 · 2025-05-09 · Cian (shared account) · Field code type changed: str → Optional[str] (breaking).; Field code became optional. (3a7865c16)
  • v2.0.0 · 2025-04-09 · Cian (shared account) · Field code type changed: Optional[str] → str (breaking).; Field code became required (breaking). (6c65e2d22)
  • v1.0.0 · 2025-03-15 · Olaniyi Ajayi · Initial version. (338416124)

APIs / Triggers​

TriggerEndpoint / SourceDetailHandler
EventEventBridgeSalesChannelWorkOrderCreated, WorkOrderCreatedsrc/invoice/invoice_handle_sales_channel_work_order_created.py

Change history​

v8.1.0 · 2026-04-03 · Cian (shared account) · b0055dbb7

Add paid invoice settlement flow with ordered Xero payment sync

  • Added optional field settlement.
v8.0.0 · 2026-04-02 · Cian (shared account) · 36cb79ec0

Remove payment_type fields from Invoice models and related classes

  • Removed field invoice_payment_type (breaking).
v7.1.0 · 2026-03-19 · Cian (shared account) · 0a1de5dd0

Add invoice defaults API and migrate tenant default fields

  • Added optional field invoice_payment_type.
v7.0.0 · 2025-07-30 · Cian (shared account) · 687639e18

fx

  • Removed field is_approved (breaking).
v6.2.0 · 2025-07-29 · Cian (shared account) · 383059805

fx

  • Added optional field quote_display_id.
  • Added optional field quote_id.
v6.1.0 · 2025-07-28 · Cian (shared account) · 0eb204368

fx

  • Added optional field billing_address.
  • Added optional field bulk_price.
  • Added optional field delivery_address.
  • Added optional field note.
  • Added optional field status.
v6.0.0 · 2025-07-28 · Cian (shared account) · de984fc8a

fx

  • Removed field billing_address (breaking).
  • Removed field bulk_price (breaking).
  • Removed field cash_sale_email (breaking).
  • Removed field cash_sale_name (breaking).
  • Removed field cash_sale_phone (breaking).
  • Removed field delivery_address (breaking).
  • Removed field note (breaking).
  • Removed field status (breaking).
v5.2.0 · 2025-07-28 · Olaniyi Ajayi · b9e8b55fb

fx

  • Field status became optional.
  • Field status default changed: None → 'DRAFT'.
v5.1.0 · 2025-07-28 · Cian (shared account) · 6290ff81b

fx

  • Added optional field billing_address.
  • Added required field status.
v5.0.0 · 2025-07-27 · Olaniyi Ajayi · 34f0c89db

credit note put updated

  • Removed field billing_address (breaking).
v4.3.0 · 2025-07-27 · Cian (shared account) · eecb0225a

fx

  • Added optional field billing_address.
v4.2.0 · 2025-07-25 · Olaniyi Ajayi · 5e7e7d403

fx

  • Added optional field delivery_address.
v4.1.0 · 2025-07-25 · Olaniyi Ajayi · 13b90e91e

fx

  • Added optional field cash_sale_email.
  • Added optional field cash_sale_name.
  • Added optional field cash_sale_phone.
v4.0.0 · 2025-07-25 · Olaniyi Ajayi · 2713a806c

fx

  • Removed field delivery_address (breaking).
v3.0.0 · 2025-07-25 · Cian (shared account) · acbaa1ec4

fx

  • Removed field notes (breaking).
  • Added optional field delivery_address.
  • Added optional field note.
v2.0.0 · 2025-07-25 · Olaniyi Ajayi · 2789fcc2c

fx

  • Removed field note (breaking).
  • Added optional field notes.
v1.3.0 · 2025-07-25 · Cian (shared account) · 3ddba29c9

fx

  • Added optional field note.
v1.2.0 · 2025-07-25 · Olaniyi Ajayi · f18cf1eda

fx

  • Added optional field bulk_price.
v1.1.0 · 2025-05-13 · Cian (shared account) · ddd450713

fx

  • Added required field contact_name.
v1.0.0 · 2025-03-16 · Cian (shared account) · feca668a3

models

  • Initial version.

Generated from dismantly-backend/Microservices/Invoice/dependencies/models.py. Do not edit by hand.

Models last synced: 2026-06-23 13:21 UTC