Skip to main content
Employee / Claims

Auto-build claims

Use this method to build approvals for Salary Packaged contracts when funds are available. A claim is created for each item where there is a surplus between the contract's posted receipts total and posted actual costs total (the GST inclusive Total of all posted Payments, Claims and Approvals). This method requires the EmployeeClaims:Create permission to be associated with your role.

POST
/sp/approvals/auto-build-claims
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
Audit-User-Idstringheader

(Optional) User Id to use for audit purposes. This header requires the Audit:UserIdOverride permission to be associated with your role.

Maximum string length: 5
Pattern: ^[1-9]{1}[0-9]*$

Body

application/x-www-form-urlencoded
build_onlyenum<string>default:no

Build-only mode. When yes, claims are created at pending with the pending-funds sub-status and the run stops before posting (no batch post). When no (default), the run builds and posts as before.

Available options: yes, no
client_idstring

Client Id

Maximum string length: 10
Pattern: ^[1-9]{1}[0-9]*$
disbursement_datestring

Single date in ISO format Y-m-d (e.g. 2026-07-21). Restricts the build to contracts linked to a regular pay run whose effective disbursement date (COALESCE(disbursement_date, billing_date)) equals this date. Ad-hoc pay runs are excluded.

Maximum string length: 10
pay_cycle_idstring

Pay Cycle Id

Maximum string length: 10
Pattern: ^[1-9]{1}[0-9]*$
pay_run_idstring

Pay Run Id. Restricts the build to contracts linked to this pay run (that is, contracts sharing the pay run's client and pay cycle).

Only regular pay runs are supported: an ad-hoc or non-existent pay_run_id is rejected with 422.

Takes precedence over disbursement_date and over any supplied client_id / pay_cycle_id.

A blank value is treated as not supplied. If a scope field is supplied but neither pay_run_id nor disbursement_date resolves to a usable value, the request is rejected with 422.

posting_class_idstring

Posting Class Id.

Required in build-and-post mode. Optional in build-only mode (build_only = yes), where it defaults from the auto_build_claims_class_default global control (resolved code to id). If no value is supplied and no control is configured, or the resolved class is not configured as an expense-approval class, a 422 is returned.

Maximum string length: 10
timezonestringdefault:UTC

Claims will be raised in the specified timezone.

The timezone value can be given in several formats, none of which are case sensitive:

  • As a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'.
  • As a string indicating an offset from UTC of the form [H]H:MM, prefixed with a + or -, such as '+10:00', '-6:00', or '+05:30'. A leading zero can optionally be used for hours values less than 10;
Maximum string length: 100
Pattern: ^[a-zA-Z0-9\/\:\+\-\_]+$

Response

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

Success

exceptionsobject
processed_contractsstring[]