401 Unauthorized message shows up in the Back End if the filing cant be performed as a result of allowable actions. #25112
Labels
bug
Something isn't working
Entities - Olga
A label to filter on the tickets for the Entities based team that Olga is PO for.
Priority2
Describe the bug in the current situation
When API Users perform a filing with a valid authorization and if the filling cant be performed as a result of the allowable actions then the API throws a 401 error confusing the users
Steps to reproduce the behavior:
https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0884207/filings {POOST}
Payload:
{"filing":{"header":{"name":"putBackOff","date":"2025-01-02","certifiedBy":""},"business":{"identifier":"BC0884207","legalType":"BC","legalName":"0884207 B.C. LTD.","foundingDate":"2024-12-17T21:19:19.704468+00:00"},"putBackOff":{"details":"detail","courtOrder":{"effectOfOrder":"planOfArrangement","fileNumber":"123456789"}}}}
Expected behavior
The response message should return 403? To be confirmed before making any changes
Screenshots/ Visual Reference/ Source
The text was updated successfully, but these errors were encountered: