Delete a payslip
Scope: accounting:payrolls.write https://api.alladdin.com/api/v2/payslips/{payslipId}
Deletes a payslip (nómina). Draft payslips are deleted permanently; posted payslips reverse their ledger entries.
This deletes a PAYSLIP, NOT a salary record (registro salarial) — use DELETE /api/v2/salary-records/{id} for those. Never call this endpoint when the user asks to delete a salary record, and never call the salary-record endpoint when the user asks to delete a payslip.
Parameters
Path parameters
payslipId string required
Payslip ID (24-character hexadecimal ObjectId)
Request
import requests
url = "https://api.alladdin.com/api/v2/payslips/507f1f77bcf86cd799439011"
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 Payslip not found application/json 409 The accounting period of the payslip date is closed application/json object type string title string status integer detail string 429 Rate limit exceeded application/json
