Get a specific employee's tax parameter setting
Changed onGet an employee’s tax parameter detail. The top-level value and effective_start are the value in force on as_of, today by default: what applies when. settings lists every recorded value that has not been deleted, newest effective_start first and, within one effective_start, newest created_at first: what changed. A tax parameter written more than once with the same effective_start lists every write. The entry with the latest created_at for an effective_start is the value in force from that date, and each earlier entry for that date was replaced at the created_at of the entry listed above it. Deleted values are not listed, including earlier values replaced by a form submission. For a tax parameter that is not effective dated, value is the current value and effective_start is null. Each entry in settings carries an actor object naming the party that wrote that value: check, partner, company, or employee. party classifies the actor, not the setting’s subject, so a company user who edits an employee-scoped setting reads as company. actor is null when the attribution cannot be recovered.
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID of the employee used to get the applicable tax parameter details.
ID of the tax parameter used to detail the values.
Query parameters
Date that selects the top-level value and effective_start: the value in force on this date. Defaults to today. Does not filter settings, which lists every recorded value. Ignored for a tax parameter that is not effective dated.
Response
200
Example response
{
"id": "spa_yqVxHQZb7aVPHrh16HRq",
"jurisdiction": "jur_mRpDYFyFSUD1ArZdrMis",
"value": "M",
"effective_start": "2021-03-15",
"settings": [
{
"value": "M",
"effective_start": "2021-03-15",
"created_at": "2021-03-16T10:41:27.385220Z",
"actor": {
"party": "employee"
}
}
]
}Changes
- info
endpoint added
- info