Filing

Filings

Filings track VAT return periods by country and company, each with a lifecycle status that determines whether you can import transaction data.

A filing represents a VAT return period for a specific country and company. Each filing has a start date, end date, due date, and a FilingStatus. The status determines what you can do with the filing in the VAT return cycle.

Note:

For definitions of key terms used on this page, see API concepts .

Filing statuses

Status Meaning Can you import transactions?
Preparation The period is open and ready for data. This is the initial state of a return. Yes
In Progress Sovos is processing the filing submission. No
Complete The period has ended. The filing moves to Complete when you click Mark as complete in VAT Filing. The API returns 400. No
Important:

The resultFilesUrl field is always included in the filing response, regardless of status. Files are only available when the filing reaches Complete status. Calling this link while the filing is in Preparation or In Progress returns 404.

Expected files by filing status

The files available for a filing depend on its current status. Use this section to know which files to expect at each stage.

Preparation
No files are available yet. The filing period is open and waiting for transaction data.
In Progress

These files are available:

  • initial_values.json

  • detailed_report.csv

  • detailed_report.json

  • A draft report PDF named {countryCode}_{reportName}_{companyCode}_{dueDate}_{timestamp}_draft.pdf

Note:

excluded_source_entries.json is only available when there are transactions not included in the report. manual_adjustments.csv and manual_adjustments_details.json are only available when there are manual adjustments for the filing.

Complete

These files are available:

  • final_values.json

  • submitted_source_entries.json

  • A final report PDF named {countryCode}_{reportName}_{companyCode}_{dueDate}_{timestamp}.pdf

  • A final report spreadsheet named {countryCode}_{reportName}_{companyCode}_{dueDate}_{timestamp}.xlsx

  • A final report XML file, named {countryCode}_{reportName}_{companyCode}_{dueDate}_{timestamp}.xml, for countries that require XML submissions

  • tax_pack.zip

Use Get filing result files to download these files.

Note:

Whether you get a PDF, XLSX, or XML deliverable depends on your company's country configuration. Not every country requires every format.

Tip:

Draft PDFs use a _draft suffix. Final PDFs don't include this suffix.

Filing status lifecycle

A filing moves through three stages:

  1. Preparation moves to In Progress automatically after your transaction import completes.

  2. In Progress moves to Complete when you click Mark as complete in VAT Filing.

Corrections and resubmissions

The External Partner API doesn't support these actions for a Complete filing:

  • Reopening the filing

  • Correcting the filing

  • Amending the filing

  • Sending supplementary returns for the filing

If you need to change data after a filing reaches the Complete status, start a new return for a new filing period instead. If you need more information about how to handle a change, contact Sovos.

Note:

See Best practices for more information about checking filing status before importing.

List VAT filings

GET /v1/indirect-tax/vat-filing/filings

Use this endpoint to get all VAT filing periods for a company, with options to filter by country, date range, or return type.

Step 1 - Send a GET request with the appropriate query parameters
All query parameters are optional.
Note:

See the Date and timestamps page for more information about date formatting.

See the complete list of query parameters in the Filing filters section.

Step 2 - Review the response

A successful request returns a list of filing periods and pagination details.

Example response (200):

JSON
{
  "success": true,
  "status": 200,
  "message": "OK",
  "timestamp": 1776333600000,
  "uuid": "7c9e2f1a-4b3d-5e6f-7890-abcdef123456",
  "data": {
    "items": [
      {
        "id": "911",
        "country": "Hungary",
        "countryCode": "HU",
        "dueDate": "2019-03-12",
        "startDate": "2019-01-01",
        "endDate": "2019-03-31",
        "companyId": "078be7d7-a1c0-44f8-a2ca-5b23b370d245",
        "reportType": "VAT",
        "reportName": "HU VAT return Q1",
        "importProfileId": "078be7d7-a1c0-44f8-a2ca-5b23b370d243",
        "status": "Preparation",
        "resultFilesUrl": "https://api.sovos.com/v1/indirect-tax/vat-filing/filings/911/result-files"
      }
    ],
    "pageState": {
      "page": 1,
      "perPage": 50,
      "totalPages": 3,
      "totalEntries": 120
    }
  },
  "errors": []
}
Important:

The resultFilesUrl field is always included in the filing response, regardless of status. Files are only available once the filing reaches Complete status. Calling this link while the filing is in Preparation or In Progress returns 404

Note:

See the API reference.

Response codes

200
Returns a list of filings and pagination state.
401
Unauthorized.
403
Forbidden.
404
No filings match the filters, or the company has no filings.
500
Server error.

Get a filing

GET /v1/indirect-tax/vat-filing/filings/{filingId}

Use this endpoint to view a single filing by its ID.

Step 1 - Send a GET request with the required path parameter
Parameter Type Example Description
filingId string 911

The filing ID. This parameter is a plain string, not a UUID.

Use the value from the id field in a filing record.

Step 2 - Review the response

Example response (200):

JSON
{
  "success": true,
  "status": 200,
  "message": "OK",
  "timestamp": 1776333600000,
  "uuid": "8d0f3a2b-5c4e-6f70-8901-bcdef2345678",
  "data": {
    "id": "911",
    "country": "Hungary",
    "countryCode": "HU",
    "dueDate": "2019-03-12",
    "startDate": "2019-01-01",
    "endDate": "2019-03-31",
    "companyId": "078be7d7-a1c0-44f8-a2ca-5b23b370d245",
    "reportType": "VAT",
    "reportName": "HU VAT return Q1",
    "importProfileId": "078be7d7-a1c0-44f8-a2ca-5b23b370d243",
    "status": "Complete",
    "resultFilesUrl": "https://api.sovos.com/v1/indirect-tax/vat-filing/filings/911/result-files"
  },
  "errors": []
}
Important:

The resultFilesUrl field is always included in the filing response, regardless of status. Files are only available once the filing reaches Complete status. Calling this link while the filing is in Preparation or In Progress returns 404

Response codes

200
Returns the filing.
401
Unauthorized.
403
Forbidden.
404
Filing not found, or not visible to your token.
500
Server error.
Note:

See the API reference.

Get filing result files

Important:

Download links expire 10 minutes after the API returns them.

GET /v1/indirect-tax/vat-filing/filings/{filingId}/result-files

Use this endpoint to get time-limited download links for the result files attached to a specific filing ID.

Note:

For more information on time-limited links, see API concepts .

Step 1 - Send a GET request with the required path parameter
Parameter Type Example Description
filingId string 911 The filing ID. This parameter is a plain string, not a UUID. Use the value from the id field in a filing record.
Step 2 - Download each result file from its access link before the expiration date

To download a file, send a GET request to its accessUrl before the expirationDate passes. Each file has its own link and expiration.

Example response (200):

JSON
{
  "success": true,
  "status": 200,
  "message": "OK",
  "timestamp": 1776333600000,
  "uuid": "9e1a4b3c-6d5f-7081-9012-cdef34567890",
  "data": {
    "filingId": "911",
    "companyId": "078be7d7-a1c0-44f8-a2ca-5b23b370d245",
    "files": [
      {
        "name": "filing-result.xml",
        "accessUrl": "https://s3.amazonaws.com/bucket/prefix/filing-result.xml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600",
        "expirationDate": 1776337200000
      },
      {
        "name": "validation-report.pdf",
        "accessUrl": "https://s3.amazonaws.com/bucket/prefix/validation-report.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600",
        "expirationDate": 1776337200000
      }
    ]
  },
  "errors": []
}

The result files are available once the filing is Complete. Sovos deletes result files 30 days after the filing reaches Complete.

Note:

For more information about checking filing status before importing, see Best practices.

Response codes

200
Returns a list of files with download URLs.
401
Unauthorized.
403
Forbidden.
404
No result files exist for this filing, or the filing isn't visible to your token.
500
Server error.
Note:

See the API reference.