HMRC Making Tax Digital (MTD) Integration Guide UK (2025)

πŸ›οΈ HMRC MTDπŸ’· VAT & ITSAπŸ”’ UK GDPRπŸ“‹ API ComplianceπŸ†“ Free Consultation
June 202511 min readClickMasters FinTech/GovTech Team

Direct Answer

HMRC Making Tax Digital (MTD) mandates that UK businesses use compatible software to keep digital tax records and submit returns via HMRC's API. MTD for VAT is mandatory for all VAT-registered businesses (from April 2022). MTD for Income Tax Self Assessment (ITSA) is being phased in from April 2026. ClickMasters builds HMRC MTD-compatible integrations for accounting, ERP, and FinTech software.

MTD Mandation Timeline

Note: MTD rollout dates have changed multiple times β€” always verify current mandation dates on HMRC's website (gov.uk/make-tax-digital). This guide reflects the MTD programme as of June 2025.

MTD PhaseWho It Applies ToMandation DateHMRC API
MTD for VAT (Phase 1)VAT-registered businesses, taxable turnover >Β£85KApril 2019MTD VAT API v1
MTD for VAT (Phase 2)All VAT-registered businesses (any turnover)April 2022MTD VAT API v1
MTD for ITSA (Phase 1)Self-employed income or property income >Β£50KApril 2026MTD ITSA API (in pilot)
MTD for ITSA (Phase 2)Self-employed income or property income >Β£30KApril 2027MTD ITSA API
MTD for Corporation TaxUK companiesNot yet confirmedIn development

MTD for VAT β€” API Integration

MTD VAT API EndpointMethodDescription
/organisations/vat/{vrn}/obligationsGETRetrieve VAT obligations (open/fulfilled periods)
/organisations/vat/{vrn}/returnsPOSTSubmit VAT return (9 box values)
/organisations/vat/{vrn}/returns/{periodKey}GETRetrieve submitted return
/organisations/vat/{vrn}/liabilitiesGETRetrieve VAT liabilities
/organisations/vat/{vrn}/paymentsGETRetrieve VAT payments

MTD HMRC OAuth 2.0 Flow

Authorisation endpoint: https://api.service.hmrc.gov.uk/oauth/authorize

Token endpoint: https://api.service.hmrc.gov.uk/oauth/token

Required scope for MTD VAT: write:vat (submit) + read:vat (retrieve)

HMRC access tokens expire after 4 hours β€” refresh tokens last 18 months

HMRC requires HTTPS redirect URIs β€” no HTTP in production

Fraud Prevention Headers: HMRC requires 7 device and session headers on every MTD API call (Gov-Client-Device-ID, Gov-Client-User-IDs, Gov-Vendor-Version, etc.)

HMRC uses a standard OAuth 2.0 Authorization Code flow with HMRC-specific requirements:

HMRC Fraud Prevention Headers

HeaderDescriptionExample Value
Gov-Client-Device-IDUnique device identifier (UUID, persisted)xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Gov-Client-User-IDsOS username (for desktop software)os=ALICE123
Gov-Client-User-AgentDevice/OS informationWindows/10.0 (Build 19045)
Gov-Client-TimezoneTimezone of client deviceUTC+01:00
Gov-Vendor-VersionYour software name and versionMyAccounting=1.2.3
Gov-Client-Connection-MethodHow the call originatesWEB_APP_VIA_SERVER
Gov-Client-Window-SizeBrowser window dimensions (web apps)1920x1080

UK GDPR for MTD Integrations

VAT return data: retain for 6 years (VAT record-keeping obligation) β€” UK GDPR storage limitation must not delete earlier than 6 years.

HMRC OAuth tokens: store securely (AWS Secrets Manager or equivalent) β€” never in database plain text.

Refresh token exposure: a stolen refresh token gives HMRC API access for 18 months β€” treat as highly sensitive credential.

Access to VAT return data: restrict to the authorised business user β€” no sharing between tenants in multi-tenant accounting software.

MTD integrations process financial personal data β€” tax returns contain turnover, VAT amounts, and business details that may identify individuals. UK GDPR basis: contract performance (software processing tax data on behalf of the user). Key obligations:

Frequently Asked Questions

Common questions about hmrc making tax digital (mtd) integration guide uk (2025).

MTD for Income Tax Self Assessment (ITSA) requires self-employed and landlord taxpayers to submit quarterly income/expense summaries (instead of one annual Self Assessment). Software must support: quarterly update submissions (4 per tax year), End of Period Statement (EOPS) at year-end, and Final Declaration (replacing SA100). API documentation is available in HMRC's Developer Hub sandbox environment.

HMRC provides a sandbox environment (test.api.service.hmrc.gov.uk) with test VAT numbers and test OAuth credentials. HMRC also provides a stateful sandbox (test organisations that accumulate obligations). To go live: HMRC requires a production credentials application (describe the software, number of users, and provide test evidence), then production credentials are issued. Government Gateway testing accounts are separate from sandbox.

About the Author

ClickMasters FinTech/GovTech Team HMRC MTD integration specialists ClickMasters has built HMRC MTD for VAT integrations for UK accounting, ERP, and FinTech software.

Free HMRC MTD Integration Consultation ClickMasters...

Free HMRC MTD Integration Consultation ClickMasters will design your MTD integration architecture. Free 45-minute call. β†’ clickmasterssoftwaredevelopmentcompany.co.uk/contact/

Book a Free Consultation