# Document workflow with posting process

Source: https://developer.avalara.com/products/communications/integration-guides/communications-integration/kys3587129933060/

Guide: Communications

# Document workflow with posting process

1.  After an order is entered onto your site, call the [CalculateTaxes API](https://developer.avalara.com/api-reference/communications/v2/methods/Tax%20Calculation/CalculateTaxes/) with a blank/null invoice number (`invn`). This will get you a tax calculation based on the location and T/S pairs.
2.  Review the order entry, then call the [CalculateTaxes API](https://developer.avalara.com/api-reference/communications/v2/methods/Tax%20Calculation/CalculateTaxes/) again, this time including an invoice number (`invn`) to create an invoice.
3.  Review your policy for posting to the general ledger, then post the transaction.
4.  Once posted, run the [Commit API](https://developer.avalara.com/api-reference/communications/v2/methods/Tax%20Calculation/Commit/) with the document code of the order that you want to commit, and set `cmmt` to `true` (default).