Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
DELETE

Delete a salary record

Scope: accounting:payrolls.write https://api.alladdin.com/api/v2/salary-records/{salaryRecordId}

Draft records are deleted permanently. Posted records reverse their ledger entries.

Parameters

Path parameters

salaryRecordId string required

Salary record ID (24-character hexadecimal ObjectId)

Request

python
import requests

url = "https://api.alladdin.com/api/v2/salary-records/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 Salary record not found application/json 409 The accounting period of the salary record date is closed application/json object type string title string status integer detail string 429 Rate limit exceeded application/json

← PreviousDownload a salary record PDF →