# Assistance with iXBRL Micro-Accounts FormSubmission (FormIdentifier: 'Accounts') via XML Gateway

**URL:** <https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761>\
**Category:** Accounts\
**Created:** [July 9, 2025, 11:29am UTC](https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761 "2025-07-09T11:29:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CE.UK](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/c/ecb155/32.png) [@CE.UK](https://xmlforum.companieshouse.gov.uk/u/CE.UK)\
**Post date:** [July 9, 2025, 11:29am UTC](https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761/1 "2025-07-09T11:29:02Z")

</div>

I’m working on submitting Micro-Entity Accounts in iXBRL format to Companies House using the XML Gateway. I’d appreciate guidance on any schema nuances related to this form type.

**Schemas:**

```auto
http://xmlgw.companieshouse.gov.uk/v1-0/schema/Egov_ch-v2-0.xsd
http://xmlgw.companieshouse.gov.uk/v1-0/schema/forms/FormSubmission-v2-11.xsd

```

**Post:**

```auto
<?xml version="1.0" encoding="UTF-8"?>
<GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope"
                xmlns:gt="http://www.govtalk.gov.uk/CM/core"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope http://xmlgw.companieshouse.gov.uk/v1-0/schema/Egov_ch-v2-0.xsd">
  <EnvelopeVersion>2.0</EnvelopeVersion>
  <Header>
    <MessageDetails>
      <Class>Accounts</Class>
      <Qualifier>request</Qualifier>
      <Function>submit</Function>
      <TransactionID>ABC323456789DEF1</TransactionID>
      <GatewayTest>1</GatewayTest>
    </MessageDetails>
    <SenderDetails>
      <IDAuthentication>
        <SenderID>{{removed}}</SenderID>
        <Authentication>
          <Method>clear</Method>
          <Value>{{removed}}</Value>
        </Authentication>
      </IDAuthentication>
      <EmailAddress>accounts@test.com</EmailAddress>
    </SenderDetails>
  </Header>
  <GovTalkDetails>
    <Keys>
      <Key Type="FormType">Accounts</Key>
    </Keys>
    <TargetDetails>
      <Organisation>Companies House</Organisation>
    </TargetDetails>
  </GovTalkDetails>
  <Body>
    <FormSubmission xmlns="http://xmlgw.companieshouse.gov.uk/Header"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://xmlgw.companieshouse.gov.uk/Header http://xmlgw.companieshouse.gov.uk/v1-0/schema/forms/FormSubmission-v2-11.xsd">
      <FormHeader>
        <CompanyNumber>12357645</CompanyNumber>
        <CompanyType>EW</CompanyType>
        <CompanyName>TEST COMPANY LTD</CompanyName>
        <CompanyAuthenticationCode>{{removed}}</CompanyAuthenticationCode>
        <PackageReference>0012</PackageReference>
        <Language>EN</Language>
        <FormIdentifier>Accounts</FormIdentifier>
        <SubmissionNumber>AC0001</SubmissionNumber>
        <ContactName>Jane Doe</ContactName>
        <ContactNumber>01234567890</ContactNumber>
        <CustomerReference>IXBRLTEST001</CustomerReference>
      </FormHeader>
      <DateSigned>2025-07-09</DateSigned>
      <Form>
        <!-- Typically used for structured form XML such as BalanceSheet, but left empty for iXBRL file submission -->
      </Form>
      <Document>
        <Data>{{removed}}</Data>
        <Date>2025-07-09</Date>
        <Filename>micro-accounts.html</Filename>
        <ContentType>application/xml</ContentType>
        <Category>ACCOUNTS</Category>
      </Document>
    </FormSubmission>
  </Body>
</GovTalkMessage>

```

**Response:**

````auto
<GovTalkMessage xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope file:///home/xml/htdocs/XMLGW/schema/Egov_ch-v2-0.xsd"
	xmlns="http://www.govtalk.gov.uk/CM/envelope"
	xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
	xmlns:gt="http://www.govtalk.gov.uk/schemas/govtalk/core"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
	<EnvelopeVersion>1.0</EnvelopeVersion>
	<Header>
		<MessageDetails>
			<Class>Accounts</Class>
			<Qualifier>error</Qualifier>
			<TransactionID>ABC323456789DEF1</TransactionID>
			<GatewayTest>1</GatewayTest>
			<GatewayTimestamp>2025-07-09T12:23:05-00:00</GatewayTimestamp>
		</MessageDetails>
		<SenderDetails>
			<IDAuthentication>
				<SenderID>{{removed}}</SenderID>
				<Authentication>
					<Method>CHMD5</Method>
					<Value>{{removed}}</Value>
				</Authentication>
			</IDAuthentication>
			<EmailAddress>accounts@test.com</EmailAddress>
		</SenderDetails>
	</Header>
	<GovTalkDetails>
		<Keys/>
		<GovTalkErrors>
			<Error>
				<RaisedBy>Accounts</RaisedBy>
				<Number>502</Number>
				<Type>fatal</Type>
				<Text>Authorisation Failure</Text>
				<Location></Location>
			</Error>
		</GovTalkErrors>
	</GovTalkDetails>
	<Body></Body>
</GovTalkMessage>```
````

---

<div class="post-metadata">

**Author:** ![CE.UK](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/c/ecb155/32.png) [@CE.UK](https://xmlforum.companieshouse.gov.uk/u/CE.UK)\
**Post date:** [July 10, 2025, 9:26am UTC](https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761/2 "2025-07-10T09:26:22Z")

</div>

**Update:**  
Ignore – all working now. The issue was on my end: I mistakenly applied `strtolower` _before_ `md5`, instead of the correct order (`md5` first, then `strtolower`) when generating the authentication value.

---

<div class="post-metadata">

**Author:** ![CE.UK](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/c/ecb155/32.png) [@CE.UK](https://xmlforum.companieshouse.gov.uk/u/CE.UK)\
**Post date:** [July 13, 2025, 1:32pm UTC](https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761/3 "2025-07-13T13:32:40Z")

</div>

I’ve put together a PHP-based proof of concept that may be helpful to others working on submitting iXBRL filings to Companies House via the E-filing gateway. The project walks through constructing and posting the required XML envelopes, including base64-encoded iXBRL documents, in a step-by-step manner.

You can find the repository here:  
👉 `https://github.com/ibizara/CompaniesHouse-iXBRL`

It’s not a complete production-ready solution just yet, but it does demonstrate the core process from building to submitting the iXBRL documents. I’ll be expanding on it soon, but in the meantime, I hope it’s useful as a reference or starting point.

---

<div class="post-metadata">

**Author:** ![snicholas](https://xmlforum.companieshouse.gov.uk/user_avatar/xmlforum.companieshouse.gov.uk/snicholas/32/81_2.png) [@snicholas](https://xmlforum.companieshouse.gov.uk/u/snicholas)\
**Post date:** [July 18, 2025, 1:04pm UTC](https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761/4 "2025-07-18T13:04:39Z")

</div>

Yes, that does seem about right - 502 errors do indeed usually indicate an issue with the presenter ID / Authentication Value, or with their coding.

SDN

---

<div class="post-metadata">

**Author:** ![user41](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/u/aeb1de/32.png) [@user41](https://xmlforum.companieshouse.gov.uk/u/user41)\
**Post date:** [August 4, 2025, 7:35am UTC](https://xmlforum.companieshouse.gov.uk/t/assistance-with-ixbrl-micro-accounts-formsubmission-formidentifier-accounts-via-xml-gateway/1761/5 "2025-08-04T07:35:10Z")

</div>

Great, thank you. Very useful.
