Submit a VAT return to HMRC via the Making Tax Digital API

domain: tax.service.gov.uk · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Complete the OAuth 2.0 authorization flow against https://api.service.hmrc.gov.uk/oauth/authorize to obtain an access token with the 'write:vat' scope on behalf of the VAT-registered business
  2. GET https://api.service.hmrc.gov.uk/organisations/vat/{vrn}/obligations?status=O to retrieve open obligation periods, noting each obligation's 'start', 'end', and 'due' dates
  3. Aggregate the nine VAT return box values (box1 through box9) for the obligation period from the client's accounting records
  4. POST to https://api.service.hmrc.gov.uk/organisations/vat/{vrn}/returns with a JSON body containing 'periodKey' and the nine box fields as decimal numbers
  5. Store the 'formBundleNumber' from the success response as the legal submission reference and confirm the obligation status changes to 'F' (fulfilled)

Known gotchas

Related routes

File UK Making Tax Digital VAT returns via the HMRC API
api.service.hmrc.gov.uk · 6 steps · unrated
Submit the Final Declaration to HMRC via the Making Tax Digital for Income Tax API to complete a customer's Self Assessment tax year
developer.service.hmrc.gov.uk · 6 steps · unrated
Submit a quarterly update to HMRC via the Making Tax Digital for Income Tax API
developer.service.hmrc.gov.uk · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans