{"section":"tracks","requestedLocale":"en","requestedSlug":"invoicing-an-order","locale":"en","slug":"invoicing-an-order","path":"docs/en/tracks/vtex-modules-getting-started/orders/invoicing-an-order.md","branch":"main","content":"Entering the invoice in the order is a required step for its status to change to `Invoiced` - a sign that the order has been successfully completed. Remember that once an order is read as invoiced by the system, this status cannot be changed.\n\nYou can invoice orders in two ways:\n- __Manually:__ In the *VTEX Admin > Orders > All Orders*, click the order and then click the `Invoice` button. Learn more in [How to manually invoice an order](/en/docs/tutorials/how-to-manually-invoice-an-order).\n- __Via API:__ If you have an ERP integration, use the [Order invoice notification request](https://developers.vtex.com/vtex-rest-api/reference/invoice).\n\n## Changing the order status to Invoiced\n\nOnly after reaching the total order value will the status change to `Invoiced`, that is, when the order's value matches the invoiced amount. There are three scenarios for invoicing, depending on the order's situation:\n\n- __Unchanged order:__ you must enter an invoice with an amount equivalent to the total value.  \n- __Changed order > discounting the amount > followed by a separate invoice:__ you must insert an invoice with the amount remaining after the change. The invoice can be [partial](/en/docs/tracks/partial-invoices), or complete, if it contains all the amount remaining after the change.  \n- __Order with partial invoice > followed by change with discount:__ you must make a [change](/en/docs/tutorials/changing-items-from-a-complete-order), discounting the remaining amount. To do this, calculate the total amount, minus the partial invoice amount.\n\n## Invoice\n\nThe invoice requires attention to the following points:\n- __Invoice Number__: This number must be unique per invoice per order. If you enter two invoices with the same number, the system will understand it as a change of invoice.\n- __Tracking Number__: This number, along with the tracking URL, enables tracking of the delivery by the customer through emails that are sent with each change to that tracking.\n- __Password__: This is the access key for the NF-e (electronic invoice) consultation on the internet. This field must be filled in for electronic invoice cases only.\n\nWhen the URL and tracking code are entered, with each delivery status update the customer will receive an email notifying them that the delivery has advanced.\n\nConversation Tracker - the system that manages emails exchanged with the customer - depends on entering some value in this field. If you do not have a tracking number, simply enter any value to activate the notification system.\n\nYou can also enter the invoice via the[ Orders API](https://developers.vtex.com/vtex-rest-api/reference/invoice)."}