HMRC MTD VAT HTTP status 400 Bad Request

HMRC MTD VAT HTTP status 400 Bad Request

Symptoms:

When customer is attempting to submit or retrieve Making Tax Digital MTD VAT data to and from HMRC, customer may get error messages returned by HMRC. Andica MTD VAT software will read and display the messages.

One such error is: 
Your submission has not passed HMRC server validation. It has returned an error message:
400 (Bad Request) INVALID_DATE_RANGE
You have entered an invalid Start Date and End Date.

Cause: 

According to HMRC, there are several reasons for HTTP status 400 (Bad Request). A full list of HMRC's MTD VAT error messages is provided in a separate FAQ.

The INVALID_DATE_RANGE message most likely relates to Start Date and End Date provided at the time of Tax Year cration.

According to HMRC, if the Start Date and End Date provided is more than 366 days, when the software calls an API it receives a response with an HTTP status code of 400 (Bad Request) and an error code of INVALID_DATE_RANGE.

Solution:

Please correct the VAT Tax Year Start Date and End Date by Editing the Dates, it must be 366 days or less.

If the issue persists, you will need to contact HMRC's Online Services helpdesk on 0300 200 3701 and speak with their MTD VAT team to confirm the registration process. We cannot access HMRC systems to check what is wrong with your digital account and the clients MTD VAT registration.

MTD (Making Tax Digital) - A Guide to Error Messages

The following below error messages might occur when you are connecting to HMRC.

Software Message (Symptoms)
HMRC Error scenario
HMRC Error code
Cause
Solution
HMRC server has returned an error message:
HTTP status: 400 (Bad Request), Code: VRN_INVALID
You have entered an invalid VAT Registration Number.
Enter correct VAT Registration Number in Business Information and try the process again.
Invalid VRN
VRN_INVALID
You have entered an invalid VAT Registration Number.
Enter correct VAT Registration Number in Business Information and try the process again.
HMRC server has returned an error message:
HTTP status: 400 (Bad Request), Code: DATE_TO_INVALID
You have entered an invalid End Date.
End Date cannot be greater than today.
Enter correct date and try the process again.
Invalid date to
INVALID_DATE_TO
You have entered an invalid End Date.
End Date cannot be greater than today. Enter correct date and try the process again.
HMRC server has returned an error message:
HTTP status: 400 (Bad Request), Code: DATE_FROM_INVALID
You have entered an invalid Start Date.
Enter correct date and try the process again.
Invalid date from
INVALID_DATE_FROM
You have entered an invalid Start Date.
Enter correct date and try the process again.
HMRC server has returned an error message:
HTTP status: 400 (Bad Request), Code: DATE_RANGE_INVALID
You have entered an invalid Start Date and End Date.
Enter correct date and try the process again.
Invalid date range, must be 366 days or less
INVALID_DATE_RANGE
You have entered an invalid Start Date and End Date.
Enter correct date and try the process again.
HMRC server has returned an error message:
HTTP status: 400 (Bad Request), Code: INVALID_STATUS
The VAT obligation statuses(O = Open or F = Fulfilled) is Invalid.
Invalid status
INVALID_STATUS
The VAT obligation statuses(O = Open or F = Fulfilled) is Invalid.
Check the VAT obligation statuses(O = Open or F = Fulfilled) and process again.
HMRC server has returned an error message:
HTTP status: 400 (Bad Request), Code: PERIOD_KEY_INVALID
Your software has provided the invalid Period Key for the VAT Period. Please contact your software provider for further help.
Invalid period key
PERIOD_KEY_INVALID
Your software has provided the invalid Period Key for the VAT Period.
Please contact your software provider for further help.
This information has been returned by HMRC Server.
Your submission has not passed HMRC server validation. It has returned an error message:
Error code:INVALID_REQUEST
Description: You have made the invalid request for the VAT period.
Invalid request
INVALID_REQUEST
You have made the invalid request for the VAT period.
Please contact your software provider for further help.

The following below are the HMRC's MTD VAT error messages which occurs when you are submitting a VAT Return.

Software Message (Symptoms)
HMRC Error scenario
HMRC Error code
Cause
Solution
This information has been returned by HMRC Server.
Your submission has not passed HMRC server validation. It has returned an error message: Error code:VAT_TOTAL_VALUE
Description: The Box 3 Value should be equal to the sum of Box 1 and Box 2 value.
Please enter the correct value in Box 3 and Submit the VAT Return again.
totalVatDue should be equal to the sum of vatDueSales and vatDueAcquisitions
VAT_TOTAL_VALUE
The Box 3 Value should be equal to the sum of Box 1 and Box 2 value.
Please enter the correct value in Box 3 and Submit the VAT Return again.
This information has been returned by HMRC Server.
Your submission has not passed HMRC server validation. It has returned an error message: Error code:VAT_NET_VALUE
Description: The Box 5 value should be the difference between the Box 3 and Box 4 value.
Please enter the correct value in Box 5 and Submit the VAT Return again.
netVatDue should be the difference between the largest and the smallest values among totalVatDue and vatReclaimedCurrPeriod
VAT_NET_VALUE
The Box 5 value should be the difference between the Box 3 and Box 4 value.
Please enter the correct value in Box 5 and Submit the VAT Return again.
This information has been returned by HMRC Server.
Your submission has not passed HMRC server validation. It has returned an error message: Error code:INVALID_NUMERIC_VALUE
Description: You have entered the incorrect numeric value in VAT Return.
Please enter the correct numneric value and submit the VAT Return again.
Please provide a numeric field
INVALID_NUMERIC_VALUE
You have entered the incorrect numeric value in VAT Return.
Please enter the correct numeric value and submit the VAT Return again.
This information has been returned by HMRC Server.
Your submission has not passed HMRC server validation. It has returned an error message: Error code:INVALID_MONETARY_AMOUNT
Description: You have entered the incorrect Monetary value in VAT Return.
Please enter the correct Monetary value and submit the VAT Return again.
The monetary amount is invalid
INVALID_MONETARY_AMOUNT
You have entered the incorrect Monetary value in VAT Return.
Please enter the correct Monetary value and submit the VAT Return again.
The value must be between -9999999999999.99 and 9999999999999.99
or The value must be between 0.00 and 99999999999.99
or The value must be in pounds (no pence) between -9999999999999 and 9999999999999.
    • Related Articles

    • HMRC MTD VAT HTTP status 401 Unauthorized

      Symptoms: When customer is attempting to submit or retrieve Making Tax Digital MTD VAT data to and from HMRC, customer may get error messages returned by HMRC. Andica MTD VAT software will read and display the messages. One such error is: Your ...
    • HMRC Message HTTP status 404 (Not Found)

      Symptoms: When customer is attempting to retrieve Making Tax Digital MTD VAT data to and from HMRC, customer may get a message in the MTD VAT software: HMRC server has returned an error message: HTTP status: 404 (Not Found), Code: NOT_FOUND No data ...
    • HMRC Message HTTP status 403 (Forbidden)

      Symptoms: When customer is attempting to submit or retrieve Making Tax Digital MTD VAT data to and from HMRC, customer may get a message in the MTD VAT software: HMRC server has returned an error message:  HTTP status: 403 (Forbidden), Code: ...
    • HMRC Message HTTP status 500 (Internal Server Error)

      Symptoms: HMRC server has returned an error message: HTTP status: 500(Internal Server Error), Code: INTERNAL_SERVER_ERROR Internal server error. Or The remote server returned an error: (500) Internal Server Error. This issue is not caused by Andica ...
    • HMRC MTD VAT Digital Re-Authorisation

      An MTD VAT Registered Business or an Agent must give Andica MTD VAT software permission to interact with their data on HMRC MTD system. This is a standard practice required by HMRC. You will need to authorise the software before you can send VAT ...