# Sales order/sales invoice workflow

Source: https://developer.avalara.com/avatax-for-vat/yfd1369131120383/

# Sales order/sales invoice workflow

Understand how to align your integration and document types with your system's transaction lifecycle.

**Element type:** Required

**Endpoints/models used:** N/A

Your integration and relevant document types must mirror your underlying system workflow for a transaction lifecycle when creating sales orders and sales invoices. For example, in a quote-to-invoice workflow, before a payment has been processed and before the document is committed, call the `salesOrder` document type in the transaction. After the order turns into an invoice, change the document type to `salesInvoice`.