DELETE
Delete a payment
Scope:
accounting:payments.writehttps://api.holded.com/api/v2/payments/{paymentId}Permanently deletes a payment method. You cannot delete a payment method that is currently set as default on contacts or documents. Consider archiving the payment method instead if you want to stop using it but preserve existing references.
Parameters
Path parameters
paymentId
stringrequiredPayment ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/payments/{paymentId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.delete(url, headers=headers)
print(response.json())Responses
Success responses
204Resource deletedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Payment not foundapplication/json429Rate limit exceededapplication/json