Name | Type | Required | Data |
---|---|---|---|
username | Text varchar(50) | YES | Username |
password | Text varchar(100) | YES | Password |
user_token | Text | YES | Token provided |
part_id | Numeric (int 11) | YES | Car id |
$post = [
'username' => '',
'password' => '',
'part_id' => '36630'
];
$ch = curl_init('https://api.rrr.lt/crm/deletePart');
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 delete is checked if part belong to order.
After part deleting purged all uploaded part photos, part removed from Ebay.