You can delete data using the DELETE method. To do this, enter the domain and ID in the URL.
If you wish to delete an underlying data, please also provide the subdomain with possibly the ID (if you do not provide an ID, all data from the subdomain will be deleted).
An example in PHP of how to remove all payments from an invoice:
$email = '[email protected]'; $password = '123456'; $p = curl_init('https://eenvoudigfactureren.be/api/v1/invoices/1001/payments?format=json'); curl_setopt($p, CURLOPT_USERPWD, $email . ':' . $password); curl_setopt($p, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_setopt($p, CURLOPT_RETURNTRANSFER, TRUE); $result = json_decode(curl_exec($p));
More info about the API? Read the useful articles below