DELETE
Delete a payslip
Scope:
accounting:payrolls.writehttps://api.holded.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
stringrequiredPayslip ID (24-character hexadecimal ObjectId)
Request
python
import requests
url = "https://api.holded.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
204Resource deletedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Payslip not foundapplication/json409The accounting period of the payslip date is closedapplication/jsonobject
typestring
titlestring
statusinteger
detailstring
429Rate limit exceededapplication/json