web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

MTD - HMRC Obligation Request Error (403)

(0) ShareShare
ReportReport
Posted on by

Tax > Enquiries and Reports > Electronic Messages > Electronic Messages 

I'm having an issue when sending off a VAT obligation request through MTD. I get this error code: Exception at level 0 Message: The remote server returned an error: (403) Forbidden. Source: System Stack trace: at System.Net.HttpWebRequest.GetResponse() at Dynamics.AX.Application.EMCommonWebAPI.`getResponse(EMWebRequest _request) in xppSource://Source/RegulatorySe...

pastedimage1611679791690v1.png

Can anyone help with the above? 

I have the same question (0)
  • Suggested answer
    Sheela Ningappa Profile Picture
    on at

    Hi,

    Please create a new test user and try to retrieve.

    Regards,

    Sheela

  • Birgit Mikkelsen Profile Picture
    20 on at

    I have the same issue and have tried to create a new test user with no luck.

    Anyone with a hint of, what is missing?

    I have followed the documentation from MS line by line.

  • Craig Fraser Profile Picture
    15 on at

    I am seeing the same issue and suspect it is related to the settings on the Gov-Vendor-Public-IP line of ER MTD VAT WEB REQUEST HEADERS FORMAT. I think the KB Release video suggests this should be source IP for both Client and Vendor but this results in error.

    Does anybody have any advice on what the External Service End Points should be?  

  • Suggested answer
    Sheela Ningappa Profile Picture
    on at

    Hi,

    Firstly, on the internet explorer, search with “ api public ip address” and you get the below search results:

    Click on the link: Ipify and scroll to the down- we can find the IP address for IPv4

    Copy url- https://api.ipify.org and navigate to Electronic reporting>> Reporting configuration>>Select- MTD Web request headers format UK >>Configuration>>set up
     

    • Add- Gov-Client- Public- IP- On External service endpoint- paste the ip copied above “https://api.ipify.org
    • Add- Gov-Vendor-Public-Ip- On External service endpoint- paste the ip copied above “https://api.ipify.org
    • Set the state to completed
    • Save the form

    Thanks,

    Sheela

  • Craig Fraser Profile Picture
    15 on at

    Thanks for the prompt response Sheela. I have followed the instructions but still receive an error.

    Running action 'Test retrieve VAT obligations'

    Exception at level 0 Message: The remote server returned an error: (403) Forbidden. Source: System Stack trace: at System.Net.HttpWebRequest.GetResponse() at Dynamics.AX.Application.EMCommonWebAPI.`getResponse(EMWebRequest _request) in xppSource://Source/RegulatoryServices\AxClass_EMCommonWebAPI.xpp:line 94

    pastedimage1639498402785v1.png

    If the IP format above looks correct (not my actual IP) then perhaps my issue is elsewhere. I'll go back through the set up instructions again.

    Kind regards,

    Craig

  • Suggested answer
    Sheela Ningappa Profile Picture
    on at

    Hi Craig,

    Could you please log an issue with Microsoft, we will look into it.

    Thanks,

    Sheela

  • yuri94 Profile Picture
    on at

    Hi.

    Do you have solution about this issue?

    Thanks,

    Yuri

  • Suggested answer
    Shail Mekala Profile Picture
    17 on at

    Hi, 

    I had a smilier issue with an MTD VAT submission ERROR CODE 403. I have created a new test user, changed the Company TAX Code (Registration ID), and got the Authorisation code using the new TEST user login.

    This should resolve the issue.

    Regards

    Shail Mekala

      

  • Anthikala Profile Picture
    92 on at

    Hello, 

    Did anyone find out how to solve this issue? I also got the same error message.

  • Syed A Shahid Profile Picture
    25 on at

    I am having the similar issue, can anyone find the solution to this issue?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans