Delete a payment
Scope: accounting:payments.write https://api.alladdin.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 string required
Payment ID (24-char hex ObjectId)
Request
import requests
url = "https://api.alladdin.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
204 Resource deleted
Error responses
401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Payment not found application/json 429 Rate limit exceeded application/json
