Reject Verify Calls

Server Calls for Rejecting a Verified a User#

1. Get Auth Token#

POST {{user_server_url}}/v2/oauth2/oauth/token?scope=SCOPE_TENANT_ADMIN&grant_type=client_credentials

curl --location --request POST '{{user_server_url}}/v2/oauth2/oauth/token?scope=SCOPE_TENANT_ADMIN&grant_type=client_credentials' \
--header 'Authorization: Basic {{auth_credentials}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw ''

2. Get User Data by UserID#

GET {{gmi_server_url}}/v2/gmiserver/person?userId={{user_id}}

curl --location --request GET '{{gmi_server_url}}/v2/gmiserver/person?userId={{user_id}}' \
--header 'authorization: Bearer {{token}}'

3. Get Messages for User#

GET {{gmi_server_url}}/v2/gmiserver/tenant/{tenant_code}/person/{person_uuid}/app/{app_code}/message

curl --location --request GET '{{gmi_server_url}}/v2/gmiserver/tenant/{tenant_code}/person/{person_uuid}/app/{app_code}/message' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'GMI-URL: {{gmi-url}}' \
--header 'GMI-SIGN: {{gmi-sign}}' \
--data-raw ''

4. Reject the Verification for the User#

POST {{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/person/{{person_uuid}}/app/{{app_code}}/message/{{message_uuid}}/reject

curl --location --request POST '{{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/person/{{person_uuid}}/app/{{app_code}}/message/{{message_uuid}}/reject' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'GMI-URL: {{gmi-url}}' \
--header 'GMI-SIGN: {{gmi-sign}}' \
--data-raw '{
"rejectionInfo":"{{rejection_info}}"
}'