How to: Create Templates for Telematic VAT Statements in XML File Format

In order to submit VAT statements electronically, you must create templates to generate the required files. You can submit files in text format and in XML format. This procedure describes how to create templates for XML files.

For more information, see the Spanish Tax Agency website.

To create a template for VAT statements in XML file format

  1. In the Search box, enter VAT Statement, and then choose the appropriate link.

  2. Select the required VAT statement, and then, on the Actions tab, choose Telematic VAT, and then choose Design XML file.

  3. In the XML Transference Format window, fill in the fields as described in the following table.

    Important

    The values for the fields are determined by the tax authorities. For more information, see the Spanish Tax Agency website.

    Field Description

    VAT Statement Name

    Specify the VAT statement name that this template is for.

    No.

    Specify the field number in the text file.

    Line Type

    Specify whether the VAT statement line type is an XML element or an XML attribute.

    Indentation Level

    Specify the indentation level for the label. This level is used to format the XML file.

    Parent Line No.

    Specify the line number of the parent line that the current line is indented under.

    Value Type

    Specify the subtype of the field.

    The subtype specifies if the line must show only the integer part of an amount, the decimal part, or the full amount.

    Description

    Specify the text that you want to appear on the label.

    Value

    Specify the value for the label.

    Box

    Specify the box number from which to retrieve the data.

    Ask

    Specifies if the Value field can be changed before you create the XML file.

    Exists Amount

    Select to include the existing amount.

  4. Repeat the previous step for additional lines in the VAT statement.

  5. Choose the OK button.

This creates the template. Now, you can create a file that you can then submit to the tax authorities.

See Also

Tasks

How to: Export VAT Statements in XML Format
How to: Create Templates for Telematic VAT Statements in Text File Format

Reference

AEAT Transference Format XML