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

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:

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:

<?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:

<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>```

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.