Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Response when submitting a VAT Return on the sandbox environment #1015

Open
1 of 2 tasks
DavidPosude opened this issue Apr 4, 2024 · 2 comments
Open
1 of 2 tasks

Comments

@DavidPosude
Copy link

DavidPosude commented Apr 4, 2024

Bug report

You must read the information below before you submit a bug report.

The MTD API team cannot help if your bug report is about:

  • Fraud Prevention Headers
  • Issues relating to OAuth2
  • Subscribing or registering to use the API Platform, MTD enrolment, de-enrolment, registration for VAT, Beta services, etc.
  • Issues integrating with the API Platform (e.g. setting up an application/access)
  • Code examples in a given programming language
  • Business-related questions or processes pre MTD
  • Scheduled maintenance windows and days
  • Onboarding (e.g. registering, obtaining keys)
  • Performance metrics

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 bug reports relating to VAT API code in this repository only.

Fill in the sections below to submit your bug report:

  • Documentation
  • API

Describe the bug
A clear and concise description of what the bug is.

When submitting a VAT Return to the sandbox environment the response is 500: internal server error using an organization user

To Reproduce
Steps to reproduce the behavior:

Submit a VAT Return to the sandbox environment

Expected behavior
A clear and concise description of what you expected to happen.

A 201 response with the success info

Screenshots / Requests / Responses
If applicable, add screenshots to help explain your problem.

The below is the request

curl --location 'https://test-api.service.hmrc.gov.uk/organisations/vat/730809834/returns' \
--header 'Content-Type: application/json' \
--header 'Accept: application/vnd.hmrc.1.0+json' \
--header 'Authorization: Bearer VALID_TOKEN' \
--data '{
  "periodKey": "A001",
  "vatDueSales": 105.5,
  "vatDueAcquisitions": -100.45,
  "totalVatDue": 5.05,
  "vatReclaimedCurrPeriod": 105.15,
  "netVatDue": 100.1,
  "totalValueSalesExVAT": 300,
  "totalValuePurchasesExVAT": 300,
  "totalValueGoodsSuppliedExVAT": 3000,
  "totalAcquisitionsExVAT": 3000,
  "finalised": true
}'

And the response received

{
    "code": "INTERNAL_SERVER_ERROR",
    "message": "An internal server error occurred"
}

Additional context
Add any other context about the problem here.

The VRN I'm using is 730809834, I am able to retrieve the obligations fine so I believe the authorization is working,
I've read through the related bugs but nothing suggested has helped #893 #873

@rbs-ben
Copy link

rbs-ben commented May 9, 2024

We are getting the same issue. Can this be looked at please (particularly given the recent changes made to the supported cipher suites which include the advice "If you can continue to test successfully, you don’t need to take any further action"; currently, we can't test successfully...)

@sx0309
Copy link

sx0309 commented May 29, 2024

We are getting the same issue,Please help to see how to solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants