Order confirmation / invoice notification email
Edit on GitHubSpryker does not generate, validate, or assume legal responsibility for invoices or credit notes by default. The seller remains the invoice issuer and is responsible for the document’s tax and legal compliance, including its format under applicable national e-invoicing mandates.
Through this feature, invoices can be generated and sent to the customer’s email when they place an order in the shop. Before you rely on it, consider the following:
- The emailed document is not a structured e-invoice and does not comply with the EU ViDA EN 16931, XRechnung, or ZUGFeRD requirements.
- It is not persisted in the Back Office or on the Storefront; the only retention path is a BCC copy.
- It requires a project-level template; none is shipped by default.
- Product options and mixed tax rates are not fully represented, so the document should not be relied upon for tax-relevant purposes.
Sellers subject to a mandate must generate compliant invoices and credit notes in their ERP or via a certified e-invoicing provider. Order data can be retrieved from Spryker to feed that system through the Orders data export and the Storefront API.
To let buyers and Back Office users open this emailed invoice as a page they can save as PDF, use the Order invoice documents feature. It shows the same document on demand; it does not make the email compliant.
Invoice generation
Invoices can be generated and sent to the customer’s email every time they place an order in the shop.
You can send a hidden copy of the invoice to yourself or your employees. Keep in mind that sending the hidden copy to yourself is the only way to keep invoices for your reference, as the generated invoices are not saved in the Back Office or on the Storefront.
You can generate an invoice only once the order has acquired the confirmed state. The invoice generation and sending are triggered in the Back Office by initiating the invoice-generate event on the View Order page. For details about how a Back Office user initiates events for orders, see Change the state of order items. After generating the invoice, the OMS state of the order changes to exported.
You can use the default OMS states to be displayed on the Order Details pages on the Storefront or set custom states so they make more sense for the Storefront users. For details about how to set the custom states for orders on the Storefront, see Display custom names for order item states on the Storefront.
By default, the invoice can be generated only for the whole order (not for individual order items) and only once. However, on the project level, you can set up a configuration that forces the repeated invoice generation by running a console command. For details, see Email invoices using BCC.
Invoice template
The invoice template is not provided out of the box and needs to be added in the SalesInvoiceConfig.php file. Otherwise, an exception is thrown, and the invoice is not generated.
Check out the example of the Spryker invoice template:

In the generated invoice template, the following data is not hardcoded:
- Customer billing address
- Invoice creation date
- Invoice number
- All order data in the table
All other text is hardcoded. This text is glossary keys, and you can change them for your project as you want.
Keep in mind that a bundled product always has a 0-tax rate. However, all of the bundled items are represented separately in the invoice and can have their own tax rates, which are reflected in the invoice. For example, in the preceding image, Sony Bundle is the bundled product with a 0% tax rate, and Sony HDR-AS20, Sony SmartWatch 3, Sony Xperia Z3 Compact are its bundled items with their tax rates.
Current constraints
- Product options are not fully supported in the generated invoice. If product options have one tax rate and the product itself another, the tax rate difference is not reflected in the invoice. The invoice shows prices that already include tax rates of products and product options.
- PDF files of the invoices are not generated.
Related Business User documents
| BACK OFFICE USER GUIDES |
|---|
| Trigger the invoice notification email in the Back Office |
Thank you!
For submitting the form