# VAT invoices

## VAT invoice prerequisite

Order is placed on a site/location that will generate a VAT Invoice (DR Ireland Entity).

## VAT invoice flow

Whenever a VAT invoice created event is generated for an order, the app consumes this webhook event and stamps the Invoice File Id on the custom field “DR VAT Invoice File Id” available on the CC Order object. To download the VAT Invoice for an Order, the Customer must follow the steps below:

1. Log in to the Storefront.
2. The customer can view all his/her Orders by going to My Account and then My Orders.\
   &#x20;<img src="/files/-MSoHqOWLuMiwKklmlEC" alt="" data-size="original">&#x20;
3. Click the `Order Number` link to open the order for which you need to download the VAT Invoice. Click the `View VAT Invoice` link to download the VAT Invoice file.\ <img src="/files/-MSoIBwqqV0cBKkJXvFI" alt="" data-size="original"> <br>

{% hint style="info" %}
**Note:** The VAT Invoice link is available only on orders for which the VAT Invoice File Id is generated and stamped on the CC Order.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/salesforce-b2b/2.1.0/appendix/vat-invoices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
