ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This process is designed to verify declarations with the offline verification by NHS admin. 

Authorize

    1. Verify the validity of access token
    2. Check user scope declaration:verify in order to perform this action
      1. In case error - return 401 error

Validate transition

Validate transitionю Allowed transitions:

pending_verification → active

pending_verification → closed

Check is_active = true

If not passed, Returne Error 403 message "Invalid transition"


Update Declaration status

$declaration.status = active

$declaration.updated_by = user_id

$declaration.updated_at = timestamp

  • No labels