...
Check that declaration request with such ID exists in the system (is_active = true)
In case of error - return 404
Check that declaration request belongs to the same legal entity as the user
In case of error - return 403
Processing
Change declaration request
Change entity status in IL_DB.declaration_request to REJECTED
Set updated_at - now() (Get current date-time)
Set updated_by - user_id (Extract user from token)
Response structure
Expand | ||
---|---|---|
| ||
|
Post-processing processes
Change declaration request
...
Change entity status in IL_DB.declaration_request to REJECTED
...
Set updated_at - now() (Get current date-time)
...
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
201 | Response |
|
401 | Access token validation failed | |
403 |
| |
404 |
|