Archive the company. This is a soft-delete: the company record is preserved and its archived_customer, archived_subcontractor, and archived_buyer_or_seller flags are set to true so it no longer appears in active lists.
Security
oAuth2ClientCredentials
DELETE
import requests
id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/companies/company/" + id
headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}
response = requests.delete(url, headers=headers)
if response.status_code == 204:
print("success")
else:
data = response.json()
print(data)