Obtain HMRC Authorization
If this is the first time you are submitting to HMRC or if your access token has expired, you must login to the HMRC website with your personal/company credentials and give DPS authorization to interact with your data and HMRC. This authorization is completed using the OAuth 2.0 protocol from HMRC.
Note that HMRC authorization can be done before or after you have signed up for the MTD VAT service.
You grant DPS the authority to interact with HMRC on your behalf for a set of functions or "API scopes". When you grant permission, DPS receives an authorization code that can be used to gain an OAuth access token for that user and also a refresh token. The access token expires periodically and must be refreshed. After 18 months, the access token fully expires and you must grant authority again.
When you select the Retrieve VAT Obligation button in DPS and you do not have proper authorization, the HMRC Authorization dialog box displays.
To obtain HMRC authorization:
- On the HMRC Authorization dialog box, click HMRC Login Link.
- Complete the steps listed on the HMRC site.
- When you receive your HMRC authorization code, copy it to the clipboard.
- On the HMRC Authorization dialog box, paste the value into the HMRC Authorization Code field.
- Click Get/Refresh Token.