This version is in beta - expect some breaking changes.
Bulk Data File List API
|Available in Sandbox||Yes|
|Sandbox base URL||https://test-api.service.hmrc.gov.uk|
|Available in Production||Yes|
|Production base URL||https://api.service.hmrc.gov.uk|
The API lists the bulk data files available to download for a specific information type. For each file in list there will be a URL to download the file.
Available Information Type
|TARIFF-ANNUAL||Full extract of Taric3 and National Measures from database creation date to a certain point in time.||Full Taric3 data (excluding certain EU measures) and National Measures||Produced on 1st January every year at 00:30 and retained until 5th January the following year|
|TARIFF-DAILY||Delta of Taric3 and National Measures updates for that day. By the end of the month, there will be the number of files for the number of days in that month. The files will then be superseded by the monthly file in the next month.||Daily update of Taric3 data (excluding certain EU measures) and daily National Measures||Produced every day at 08:00 and retained until the 5th day of the following month|
|TARIFF-MONTHLY||Delta of Taric3 and National Measures updates for that month. A monthly file is a roll up of all the daily files for a month. By the end of each year, 12 monthly files will have been produced.||Monthly update of Taric3 data (excluding certain EU measures) and monthly National Measures||Produced on 1st day of the month at 21:00 and retained until the 5th January the following year|
When an API changes in a way that is backwards-incompatible, we increase the version number of the API. See our reference guide for more on versioning.
We use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:
- 200 to 299 if it succeeded, including code 202 if it was accepted by an API that needs to wait for further action
- 400 to 499 if it failed because of a client error by your application
- 500 to 599 if it failed because of an error on our server
Errors specific to each API are shown in the Endpoints section, under Response. See our reference guide for more on errors.
Testing the API
You can use the sandbox environment to test this API. Please note that due to the size of the files, we have been unable to integrate these to our sandbox environment, however this environment can be used to test your integration with the API.
Usage Scenario (Production Environment Only)
On the 1st of January each year, the download pattern you need to follow is as below:
- Download annual file
- Download daily deltas to present date
- Continue with daily deltas from then on
The monthly roll-up files will be required if you sign up in the months after the annual file is first available:
- Download annual file.
- Download monthly file/s.
- Download daily files for the current month to bring it all up to date.
- Follow the standard download cycle of consuming daily files.