hmrc / vat-api

Apache License 2.0
66 stars 17 forks source link

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

Open DavidPosude opened 3 months ago

DavidPosude commented 3 months ago

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:

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:

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 https://github.com/hmrc/vat-api/issues/893 https://github.com/hmrc/vat-api/issues/873

rbs-ben commented 2 months ago

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 commented 1 month ago

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