Skip to main content
DELETE

Delete a payment

Scope:accounting:payments.write
https://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

paymentIdstringrequired

Payment 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 deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Payment not foundapplication/json
429Rate limit exceededapplication/json