hmrc / vat-api

Apache License 2.0
66 stars 17 forks source link

Invalid period key -VAT submission #916

Closed tuckerkhan closed 2 years ago

tuckerkhan commented 2 years ago

Hi,

We're trying to submit our data online and this period it is failing with error code 400 Bad request, PERIOD_KEY_INVALID code and message of "Invalid period key" but the period key is the same format as we always use of month and date.

This is the response from our submission: }, "Response": { "Error": { "code": "400", "name": "BadRequest", "description": "Bad Request" }, "Content": { "code": "PERIOD_KEY_INVALID", "message": "Invalid period key" } } }

Support request

You must read the information below before you submit a support request.

The MTD API team cannot help if your query is about:

For any of the above, you must contact the Software Developer Support Team directly at SDSTeam@hmrc.gov.uk. The SDS Team do not monitor this repository.

This repository is for technical queries relating to the VAT API. We can help with VAT-API technical queries only.

Common support questions and answers can be found on VAT API Wiki. You can also search for previous support questions here.

tuckerkhan commented 2 years ago

we believe we found the issue. HMRC migrated us from a old back end to their new main frame on the same day we created the period and we picked up the old main frame key. Change the NAV period key in code and sent to HMRC again and it worked it out.