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

Update MPI test

n/n testDescriptioninputsexpected resultstep by step scriptactual result
1update mpi with valid tokensigned person jsonperson is updated

sing-in

update mpi

200
2update other mpi signed person json403
403
3update mpi with expired token
401 "The access token expired"
401
4update mpi with different tax_id in user and person
403 "person is incorrect and could not be updated"
403
5try to change tax_id, first or and last name 
409 $.tax_id($.first_name...) could not be changed
200, but first or and last name are not changed 
6enter phone number that is not verified
422 - authentication number is not verified
 "description": "The phone number is not verified."
7sign update with invalid DS, different tax_id
409 (Person that loged in, person that is changed and person that sign should be the same)
409
8do not sign update



9set "process_disclosure_data_consent"=false



10change mpi w/o Cabinet



11change w/o necessary scopes ( scope "person:write")
403 - "Your scope does not allow to access this resource. Missing allowances: person:write"
403
12update inactive person
409
422 - "message": "Person is not active"
13update blocked person
401

14enter incorrect dictionary data 
422 - value is not allowed in enum
422
15change authentication number
422 - OFFLINE method could not be used in cabinet 
422
16enter incorrect address
422
422
17enter only one type of address
422
422
18update mpi with incorrect birth day
422
422

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