---
id: object/codeunit/10537-gb
type: object
title: Codeunit 10537 "MTD Connection" (GB)
summary: Codeunit 10537 "MTD Connection" (GB) in the GB country layer. 9 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - gb layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 48afa5d43a2eefd39305d3b2fcdd1958dd32819d21fb8a6b800ad69918eac469
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/GB/UKMakingTaxDigital/app/src/Connection/MTDConnection.Codeunit.al
    title: src/Apps/GB/UKMakingTaxDigital/app/src/Connection/MTDConnection.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/gb
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10537
name: MTD Connection
namespace: null
app: UKMakingTaxDigital
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: GB
counts:
  fields: 0
  procedures: 21
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10537 "MTD Connection" (GB)

> Codeunit 10537 "MTD Connection" (GB) in the GB country layer. 9 public procedures. Introduced in BC29, still in BC30.

GB country layer · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/GB/UKMakingTaxDigital/app/src/Connection/MTDConnection.Codeunit.al) · facts from BC29

An object of the [GB localization](../../localizations/gb.md), not part of W1.

## Procedures

- `InvokeRequest_SubmitVATReturn(var ResponseJson: Text; var RequestJson: Text; var HttpError: Text; ResetFraudPreventionSessionHeaders: Boolean): Boolean` (internal)
- `InvokeRequest_RetrieveVATReturns(PeriodKey: Code[10]; var ResponseJson: Text; ShowMessage: Boolean; var HttpError: Text; ResetFraudPreventionSessionHeaders: Boolean): Boolean` (internal)
- `InvokeRequest_RetrieveVATReturnPeriods(StartDate: Date; EndDate: Date; var ResponseJson: Text; var HttpError: Text; OpenOAuthSetup: Boolean): Boolean` (internal)
- `InvokeRequest_RetrieveLiabilities(StartDate: Date; EndDate: Date; var ResponseJson: Text; var HttpError: Text): Boolean` (internal)
- `InvokeRequest_RetrievePayments(StartDate: Date; EndDate: Date; var ResponseJson: Text; var HttpError: Text): Boolean` (internal)
- `InvokeRequest_RefreshAccessToken(var HttpError: Text; ResetFraudPreventionSessionHeaders: Boolean): Boolean` (internal)
- `GetOAuthSetupCode(): Code[20]` (internal)
- `IsError404NotFound(ResponseJson: Text): Boolean` (internal)
- `IsError408Timeout(ResponseJson: Text): Boolean` (internal)

Plus 12 local procedures.

## Triggers

OnRun

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "MTD Connection")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A GB country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
