# Sales order/sales invoice workflow

Source: https://developer.avalara.com/marketplace-integration-guide/transactions/certification-requirements/sales-order-invoice-workflow/

**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`.