User Offboarding flow - Online Cashback

An user offboarding request can be submitted, which results in a PUT request on the Partner API’s in order to trigger the required flow.

Users in state OFFBOARDING won't be able to earn new online cashback reward.

After all pending transactions in the users wallet are resolved and the wallet balance is paid out, all sensitive data is cleaned and the user status is set to CLOSED.

Picture

Activate offboarding flow for user

Update the user status to OFFBOARDING by executing a request to PUT {{base_url}}/users/v1/users/{{userId}}/status.

Provide the id recieved on user creation as {{userId}} in the request path.

Sample request:

--header 'Authorization: Bearer <access_token>' 
--header 'Content-Type: application/json'
--data-raw '{
"status": "OFFBOARDING"
}

Sample response:

{ 
"data": {
"user": {
"id": "469d13b6-c0ee-451d-a758-dbf77a6fe368",
"partnerUserId": "962b1134-04b6-43fe-b685-91f3acd5b9b7",
"locale": "es-ES",
"status": "OFFBOARDING",
"createdAt": "2022-06-13T12:22:57.644693Z",
"updatedAt": "2022-06-13T12:23:57.644693Z",
"referralCode": "<string>"
}
}
}