Here, you can learn how to reactivate a person who is in INACTIVE
status. We will reactivate a private person, Rhys Davey, who was inactivated previously, but has now returned as a client.
The personId of Rhys Davey who we want to reactivate isID-3204
.
Since the person returned as a client, the reason can be set as OTHER.
The reactivation is effective from June 15th 2023. The date format: YYYY-MM-DD.
The by default processReason-s for private and legal persons:
ERROR,
OTHER.
To reactivate a person, make the following API call.
https://person-api.sandbox.tuumplatform.com/api/v1/persons/ID-3204/reactivate/start
Below is an example request body of the API call to inactivate a person.
{
"processReason": "OTHER",
"processDate": "2023-06-15"
}
curl --location 'https://person-api.sandbox.tuumplatform.com/api/v1/persons/ID-3204/reactivate/start' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTGF1cmEgVCIsImVtcGxveWVlSWQiOiJJRC0xMDU0IiwidGVuYW50Q29kZSI6Ik1CIiwiZXhwaXJ5RFRpbWUiOiIyMDI1LTAzLTA1VDE1OjEwOjE4IiwiZXhwIjoxNzQxMTg3NDE4LCJyb2xlcyI6WyJBRE1JTiJdfQ.gnVRav5NmpZapS3uGMLt69xADsYdEPiGGOjXnt1jqyY' \
--header 'x-channel-code: SYSTEM' \
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data '{
"processReason": "OTHER",
"processDate": "2023-06-15"
}'
Below you find an example response body to the API call above.
The person's status is changed to PENDING
. The person can be activated with Activate person endpoint.
.../persons/ID-3204/reactivate/start
"processReason": "OTHER"
"processDate": "2023-06-15"