Skip to main content

InvoiceModel

Version: v1.0.0

Stored entity

Partition key pk, sort key sk

Overview​

Xero Invoice model for validation

Fields​

FieldTypeRequiredDefaultDescription
pkstr✅——
skstr✅——
tenant_idstr✅——
invoice_idstr✅——
typestr✅——
statusstr✅——
errorstr❌——
updated_atstr✅——
created_atstr✅——
xero_invoice_idstr❌——
line_item_mappingdict❌——

APIs / Triggers​

TriggerEndpoint / SourceDetailHandler
StreamDynamoDB streamtable items where type = XERO_CONTACTsrc/xero_opensearch_sync.py
EventEventBridgeInvoicePaymentCreated, InvoicePaymentXeroSyncRequestedsrc/payment/xero_payment_post.py
EventEventBridgeInvoicePaymentDeletedsrc/payment/xero_payment_delete.py
EventEventBridgeInvoiceCashRefundDeletedsrc/cash_refund/xero_cash_refund_delete.py
EventEventBridgeInvoiceCashRefundCreated, InvoiceCashRefundXeroSyncRequestedsrc/cash_refund/xero_cash_refund_post.py
EventEventBridgeInvoiceCreditAllocatedsrc/credit/xero_credit_allocate.py
EventEventBridgeInvoiceEmailedsrc/invoice/xero_invoice_mark_as_emailed.py
EventEventBridgeInvoiceCreditDeallocatedsrc/credit/xero_credit_deallocation.py
EventEventBridgeInvoiceCreated, XeroInvoiceCreateRetriedsrc/invoice/xero_invoice_post.py
EventEventBridgeInvoiceVoidedsrc/invoice/xero_invoice_void.py
EventEventBridgeInvoiceDeletedsrc/invoice/xero_invoice_delete.py
EventEventBridgeInvoiceApprovedsrc/invoice/xero_invoice_approve.py
EventEventBridgeInvoiceWithPaymentUpdatedsrc/invoice/xero_invoice_with_payment_update.py
EventEventBridgeInvoiceWithoutPaymentUpdatedsrc/invoice/xero_invoice_without_payment_update.py
EventEventBridgeInvoiceCreditCreatedsrc/credit/xero_credit_post.py
EventEventBridgeInvoiceCreditDeletedsrc/credit/xero_credit_delete.py
APIPOST /newxero/SyncAccountsToXero—src/account/xero_account_sync_account_to_xero.py
EventEventBridgeContactCreated, XeroContactCreateRetriedsrc/contact/xero_contact_post.py
EventEventBridgeContactUpdatedsrc/contact/xero_contact_put.py
EventEventBridgeContactArchivedsrc/contact/xero_contact_archive.py
EventEventBridgeXeroWebHookContactCreatedsrc/contact/xero_contact_created_web_hook.py
APIGET /newxero/contact/dismantly—src/contact/xero_get_only_dismantly_contacts.py
APIPOST /newxero/search—src/contact/xero_contact_search.py
APIGET /newxero/totals—src/contact/xero_contact_totals.py
APIGET /newxero/contact/xero—src/contact/xero_get_only_xero_contacts.py
APIPOST /newxero/contact/reconcile—src/contact/xero_reconcile_contacts.py
EventEventBridgeXeroWebHookContactUpdatedsrc/contact/xero_contact_updated_web_hook.py
EventEventBridgeXeroWebHookInvoiceUpdatedsrc/invoice/xero_invoice_updated_web_hook.py
APIGET /newxero/account—src/account/xero_account_status_get.py
APIGET /newxero/contact—src/contact/xero_contact_status_get.py
APIPOST /newxero/invoice/validate—src/invoice/xero_invoice_validate.py
APIGET /newxero/contact/validate—src/contact/xero_contact_put_validate.py
APIGET /newxero/contact/validateAttributes—src/contact/xero_contact_validate.py
APIGET /newxero/contact/validate/email—src/contact/xero_contact_validate_email.py
APIGET /newxero/payment—src/payment/xero_payment_status_get.py
APIGET /newxero/cashRefund—src/cash_refund/xero_cash_refund_status_get.py
APIGET /newxero/invoice—src/invoice/xero_invoice_status_get.py
APIPOST /newxero/invoice/invoices—src/invoice/xero_invoice_get_invoices.py
APIGET /newxero/invoice/pdf—src/invoice/xero_invoice_pdf_get.py
APIPUT /newxero/invoice/email—src/invoice/xero_invoice_email.py
APIGET /newxero/credit—src/credit/xero_credit_status_get.py
EventEventBridgeInvoiceAccountCreatedsrc/account/xero_account_post.py
EventEventBridgeInvoiceAccountUpdatedsrc/account/xero_account_put.py
EventEventBridgeInvoiceAccountArchivedsrc/account/xero_account_archive.py
EventEventBridgeInvoiceAccountRestoredsrc/account/xero_account_restore.py
EventEventBridgeXeroWebhookPaymentsEventsrc/xero_process_payments.py

Change history​

v1.0.0 · 2025-12-23 · Olaniyi Ajayi · 2917b804f

Add new validation workflows for Xero microservice, including functions for fetching tenants, tenant records, and generating final reports. Implement state machines with error handling and pagination in ASL definitions for invoice, payment, credit note, and contact validations.

  • Initial version.

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

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