Skip to main content
Employee / Claims

Un-post a salary-packaged claim

Un-posts a salary-packaged claim (approval), replicating the legacy GUI un-post behaviour and additionally propagating the change to sp_employee_transactions in real time.

POST
/sp/approvals/unpost-claims/{approval_id}

The endpoint is available for approvals whose contract resolves to a posting map group of 'salary-packaged'.

The endpoint is idempotent: if the approval is already in the 'active' state (never posted, or already un-posted), a 200 response is returned with a no-op summary and zero rows updated, rather than an error. This permits safe retries after a transient failure.

This method requires the EmployeeClaims:UnPost permission to be associated with your role.

Authorizationstringheaderrequired

For accessing the API a valid token must be passed in all the queries in the 'Authorization' header.

A valid token is generated by the API and returned by the /authenticate method by supplying a valid username and password.

The following syntax must be used in the 'Authorization' header :

Bearer aaaaaa/bbbbbb.ccccccc.dddddd
approval_idstringrequired
Maximum string length: 10
Pattern: ^[1-9]{1}[0-9]*$

Response

application/vnd.catch-e-api.v1+json

Success

approval_idstring
branch_executedenum<string>
Available options: posted, history-only, no-op
fm_approvals_updatedinteger
fm_maintenance_updatedinteger
gl_transactions_soft_deletedinteger
previous_status_flagenum<string>
Available options: posted, history-only, active
sp_employee_transactions_updatedinteger