Name | Type | Required | Data |
---|---|---|---|
username | Text varchar(50) | YES | Username |
password | Text varchar(100) | YES | Password |
user_token | Text | YES | Token provided |
car_id | Numeric (int 11) | YES | Car id |
$post = [
'username' => '',
'password' => '',
'car_id' => '263'
];
$ch = curl_init('https://api.rrr.lt/crm/deleteCar');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);
{"msg":"OK","status_code":"R200"}
Before car delete is checked if car has parts.
After car deleting purged all uploaded car photos.