Delete
This endpoint is used to delete a user. Pass the id of the user (from the response of the All User API) as a URL parameter i.e /user/{id of user}/delete
Authenticate User
Delete user.
POST
/user/{user_id}/delete
Headers
Name
Type
Description
secret-key*
user secret key
Authorization*
Token
{
"status": "Success",
"description": "User Deleted Successfully"
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apisandbox.fezdelivery.co/v1/user/23/delete',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'secret-key: {{Your Secret key}}'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated